Lines Matching defs:size_type
59 typedef size_t size_type;
62 static const size_type npos; // = -1;
80 init( static_cast<size_type>( strlen(copy) ));
85 TIXML_EXPLICIT TiXmlString ( const char * str, size_type len) : rep_(0)
99 return assign( copy, (size_type)strlen(copy));
111 return append(suffix, static_cast<size_type>( strlen(suffix) ));
134 size_type length () const { return rep_->size; }
137 size_type size () const { return rep_->size; }
143 size_type capacity () const { return rep_->capacity; }
147 const char& at (size_type index) const
154 char& operator [] (size_type index) const
161 size_type find (char lookup) const
167 size_type find (char tofind, size_type offset) const
173 if (*p == tofind) return static_cast< size_type >( p - c_str() );
191 void reserve (size_type cap);
193 TiXmlString& assign (const char* str, size_type len);
195 TiXmlString& append (const char* str, size_type len);
206 void init(size_type sz) { init(sz, sz); }
207 void set_size(size_type sz) { rep_->str[ rep_->size = sz ] = '\0'; }
213 size_type size, capacity;
217 void init(size_type sz, size_type cap)
226 const size_type bytesNeeded = sizeof(Rep) + cap;
227 const size_type intsNeeded = ( bytesNeeded + sizeof(int) - 1 ) / sizeof( int );