Lines Matching refs:size_type

149   typedef size_t size_type;
159 static const size_type npos = static_cast<size_type>(-1);
168 size_type length () const
170 size_type size () const
172 size_type capacity () const
174 size_type max_size () const
188 basic_string (const basic_string& _str, size_type pos, size_type n = npos)
190 basic_string (const charT* s, size_type n)
194 basic_string (size_type n, charT c)
209 basic_string& append (const basic_string& _str, size_type pos = 0,
210 size_type n = npos)
212 basic_string& append (const charT* s, size_type n)
216 basic_string& append (size_type n, charT c)
229 basic_string& assign (const basic_string& str, size_type pos = 0,
230 size_type n = npos)
232 basic_string& assign (const charT* s, size_type n)
236 basic_string& assign (size_type n, charT c)
258 basic_string& insert (size_type pos1, const basic_string& str,
259 size_type pos2 = 0, size_type n = npos)
261 basic_string& insert (size_type pos, const charT* s, size_type n)
263 basic_string& insert (size_type pos, const charT* s)
265 basic_string& insert (size_type pos, size_type n, charT c)
268 { size_type __o = p - ibegin ();
271 iterator insert(iterator p, size_type n, charT c)
272 { size_type __o = p - ibegin ();
283 basic_string& erase (size_type pos = 0, size_type n = npos)
284 { return replace (pos, n, (size_type)0, (charT)0); }
286 { size_type __o = p - begin();
287 replace (__o, 1, (size_type)0, (charT)0); selfish ();
290 { size_type __o = f - ibegin();
291 replace (__o, l-f, (size_type)0, (charT)0);selfish ();
296 basic_string& replace (size_type pos1, size_type n1, const basic_string& str,
297 size_type pos2 = 0, size_type n2 = npos);
298 basic_string& replace (size_type pos, size_type n1, const charT* s,
299 size_type n2);
300 basic_string& replace (size_type pos, size_type n1, const charT* s)
302 basic_string& replace (size_type pos, size_type n1, size_type n2, charT c);
303 basic_string& replace (size_type pos, size_type n, charT c)
307 basic_string& replace (iterator i1, iterator i2, const charT* s, size_type n)
311 basic_string& replace (iterator i1, iterator i2, size_type n, charT c)
328 charT operator[] (size_type pos) const
335 reference operator[] (size_type pos)
338 reference at (size_type pos)
343 const_reference at (size_type pos) const
359 void resize (size_type n, charT c);
360 void resize (size_type n)
362 void reserve (size_type) { }
364 size_type copy (charT* s, size_type n, size_type pos = 0) const;
366 size_type find (const basic_string& str, size_type pos = 0) const
368 size_type find (const charT* s, size_type pos, size_type n) const;
369 size_type find (const charT* _s, size_type pos = 0) const
371 size_type find (charT c, size_type pos = 0) const;
373 size_type rfind (const basic_string& str, size_type pos = npos) const
375 size_type rfind (const charT* s, size_type pos, size_type n) const;
376 size_type rfind (const charT* s, size_type pos = npos) const
378 size_type rfind (charT c, size_type pos = npos) const;
380 size_type find_first_of (const basic_string& str, size_type pos = 0) const
382 size_type find_first_of (const charT* s, size_type pos, size_type n) const;
383 size_type find_first_of (const charT* s, size_type pos = 0) const
385 size_type find_first_of (charT c, size_type pos = 0) const
388 size_type find_last_of (const basic_string& str, size_type pos = npos) const
390 size_type find_last_of (const charT* s, size_type pos, size_type n) const;
391 size_type find_last_of (const charT* s, size_type pos = npos) const
393 size_type find_last_of (charT c, size_type pos = npos) const
396 size_type find_first_not_of (const basic_string& str, size_type pos = 0) const
398 size_type find_first_not_of (const charT* s, size_type pos, size_type n) const;
399 size_type find_first_not_of (const charT* s, size_type pos = 0) const
401 size_type find_first_not_of (charT c, size_type pos = 0) const;
403 size_type find_last_not_of (const basic_string& str, size_type pos = npos) const
405 size_type find_last_not_of (const charT* s, size_type pos, size_type n) const;
406 size_type find_last_not_of (const charT* s, size_type pos = npos) const
408 size_type find_last_not_of (charT c, size_type pos = npos) const;
410 basic_string substr (size_type pos = 0, size_type n = npos) const
415 int compare (const charT* s, size_type pos, size_type n) const;
416 int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
420 int compare (size_type pos, size_type n, const basic_string& str) const
422 int compare (size_type pos, size_type n, const charT* s) const
424 int compare (size_type pos, size_type n, const charT* s, size_type n2) const
426 int compare (const charT* s, size_type pos = 0) const
448 void alloc (size_type size, bool save);
449 static size_type _find (const charT* ptr, charT c, size_type xpos, size_type len);
450 inline bool check_realloc (size_type s) const;
466 const size_type len = length ();
467 size_type pos = i1 - ibegin ();
468 size_type n1 = i2 - i1;
469 size_type n2 = j2 - j1;