summaryrefslogtreecommitdiffstats
path: root/indexlib/memvector.tcc
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-04-05 13:42:49 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-04-05 13:42:49 -0500
commitd53e057f92fb74a6655f33388d2ffcbc7954489d (patch)
tree58e08f26c5316b1b3f72003b7afc38956f609df6 /indexlib/memvector.tcc
parent6b96e6cfbbd5637c59445f98f3cb31990533a1bf (diff)
downloadtdepim-d53e057f92fb74a6655f33388d2ffcbc7954489d.tar.gz
tdepim-d53e057f92fb74a6655f33388d2ffcbc7954489d.zip
Fix typos.
Diffstat (limited to 'indexlib/memvector.tcc')
-rw-r--r--indexlib/memvector.tcc10
1 files changed, 5 insertions, 5 deletions
diff --git a/indexlib/memvector.tcc b/indexlib/memvector.tcc
index 792c389c3..0acfef58c 100644
--- a/indexlib/memvector.tcc
+++ b/indexlib/memvector.tcc
@@ -9,7 +9,7 @@ memvector<T>::memvector( std::string fname ):
data_( new mmap_manager( fname ) )
{
if ( !data_->size() ) {
- data_->resize( byte_io::byte_lenght<unsigned>() );
+ data_->resize( byte_io::byte_length<unsigned>() );
byte_io::write<unsigned>( data_->rw_base( 0 ), 0 );
}
}
@@ -31,7 +31,7 @@ void memvector<T>::resize( size_type n_s ) {
if ( size() >= n_s ) return;
using namespace byte_io;
- data_->resize( n_s * byte_lenght<value_type>() + byte_lenght<unsigned>() );
+ data_->resize( n_s * byte_length<value_type>() + byte_length<unsigned>() );
iterator p_end = end();
write<unsigned>( data_->rw_base( 0 ), n_s );
while ( p_end != end() ) {
@@ -45,10 +45,10 @@ void memvector<T>::insert( const_iterator where, const value_type v ) {
assert( !( where < begin() ) );
assert( where <= end() );
const unsigned to_idx = where.raw() - data_->ronly_base( 0 );
- data_->resize( ( size() + 1 ) * byte_io::byte_lenght<value_type>() + byte_io::byte_lenght<unsigned>() );
+ data_->resize( ( size() + 1 ) * byte_io::byte_length<value_type>() + byte_io::byte_length<unsigned>() );
unsigned char* to = data_->rw_base( to_idx );
// make space:
- std::memmove( to + byte_io::byte_lenght<value_type>(), to, end().raw() - to );
+ std::memmove( to + byte_io::byte_length<value_type>(), to, end().raw() - to );
byte_io::write<value_type>( to, v );
byte_io::write<unsigned>( data_->rw_base( 0 ), size() + 1 );
}
@@ -68,7 +68,7 @@ void memvector<T>::erase( iterator where ) {
template <typename T>
void memvector<T>::clear() {
- data_->resize( byte_io::byte_lenght<uint32_t>() );
+ data_->resize( byte_io::byte_length<uint32_t>() );
byte_io::write<uint32_t>( data_->rw_base( 0 ), 0 );
}