Lines Matching defs:charT

75 template <class charT, class traits = string_char_traits<charT>,
84 charT* data () { return reinterpret_cast<charT *>(this + 1); }
85 charT& operator[] (size_t s) { return data () [s]; }
87 charT* grab () { if (selfish) return clone (); atomic_add((__haiku_int32*) &ref, 1); return data (); }
90 charT* grab () { if (selfish) return clone (); ++ref; return data (); }
130 charT* clone ();
132 inline void copy (size_t, const charT *, size_t);
133 inline void move (size_t, const charT *, size_t);
134 inline void set (size_t, const charT, size_t);
151 typedef charT& reference;
152 typedef const charT& const_reference;
153 typedef charT* pointer;
154 typedef const charT* const_pointer;
166 const charT* data () const
175 { return (npos - 1)/sizeof (charT); } // XXX
190 basic_string (const charT* s, size_type n)
192 basic_string (const charT* s)
194 basic_string (size_type n, charT c)
207 void swap (basic_string &s) { charT *d = dat; dat = s.dat; s.dat = d; }
212 basic_string& append (const charT* s, size_type n)
214 basic_string& append (const charT* s)
216 basic_string& append (size_type n, charT c)
226 void push_back(charT __c)
232 basic_string& assign (const charT* s, size_type n)
234 basic_string& assign (const charT* s)
236 basic_string& assign (size_type n, charT c)
246 basic_string& operator= (const charT* s)
248 basic_string& operator= (charT c)
253 basic_string& operator+= (const charT* s)
255 basic_string& operator+= (charT c)
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)
267 iterator insert(iterator p, charT c)
271 iterator insert(iterator p, size_type n, charT c)
284 { return replace (pos, n, (size_type)0, (charT)0); }
287 replace (__o, 1, (size_type)0, (charT)0); selfish ();
291 replace (__o, l-f, (size_type)0, (charT)0);selfish ();
298 basic_string& replace (size_type pos, size_type n1, const charT* s,
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)
309 basic_string& replace (iterator i1, iterator i2, const charT* s)
311 basic_string& replace (iterator i1, iterator i2, size_type n, charT c)
323 static charT eos () { return traits::eos (); }
328 charT operator[] (size_type pos) const
354 const charT* c_str () const
356 static const charT null_str[1] = {0};
359 void resize (size_type n, charT c);
364 size_type copy (charT* s, size_type n, 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;
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;
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
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
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;
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;
415 int compare (const charT* s, size_type pos, size_type n) const;
417 // There is no 'strncmp' equivalent for charT pointers.
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
449 static size_type _find (const charT* ptr, charT c, size_type xpos, size_type len);
453 charT *dat;
457 template <class charT, class traits, class Allocator> template <class InputIterator>
458 basic_string <charT, traits, Allocator>& basic_string <charT, traits, Allocator>::
461 template <class charT, class traits, class Allocator>
462 basic_string <charT, traits, Allocator>& basic_string <charT, traits, Allocator>::
497 template <class charT, class traits, class Allocator>
498 inline basic_string <charT, traits, Allocator>
499 operator+ (const basic_string <charT, traits, Allocator>& lhs,
500 const basic_string <charT, traits, Allocator>& rhs)
502 basic_string <charT, traits, Allocator> _str (lhs);
507 template <class charT, class traits, class Allocator>
508 inline basic_string <charT, traits, Allocator>
509 operator+ (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
511 basic_string <charT, traits, Allocator> _str (lhs);
516 template <class charT, class traits, class Allocator>
517 inline basic_string <charT, traits, Allocator>
518 operator+ (charT lhs, const basic_string <charT, traits, Allocator>& rhs)
520 basic_string <charT, traits, Allocator> _str (1, lhs);
525 template <class charT, class traits, class Allocator>
526 inline basic_string <charT, traits, Allocator>
527 operator+ (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
529 basic_string <charT, traits, Allocator> _str (lhs);
534 template <class charT, class traits, class Allocator>
535 inline basic_string <charT, traits, Allocator>
536 operator+ (const basic_string <charT, traits, Allocator>& lhs, charT rhs)
538 basic_string <charT, traits, Allocator> str (lhs);
543 template <class charT, class traits, class Allocator>
545 operator== (const basic_string <charT, traits, Allocator>& lhs,
546 const basic_string <charT, traits, Allocator>& rhs)
551 template <class charT, class traits, class Allocator>
553 operator== (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
558 template <class charT, class traits, class Allocator>
560 operator== (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
565 template <class charT, class traits, class Allocator>
567 operator!= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
572 template <class charT, class traits, class Allocator>
574 operator!= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
579 template <class charT, class traits, class Allocator>
581 operator< (const basic_string <charT, traits, Allocator>& lhs,
582 const basic_string <charT, traits, Allocator>& rhs)
587 template <class charT, class traits, class Allocator>
589 operator< (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
594 template <class charT, class traits, class Allocator>
596 operator< (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
601 template <class charT, class traits, class Allocator>
603 operator> (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
608 template <class charT, class traits, class Allocator>
610 operator> (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
615 template <class charT, class traits, class Allocator>
617 operator<= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
622 template <class charT, class traits, class Allocator>
624 operator<= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
629 template <class charT, class traits, class Allocator>
631 operator>= (const charT* lhs, const basic_string <charT, traits, Allocator>& rhs)
636 template <class charT, class traits, class Allocator>
638 operator>= (const basic_string <charT, traits, Allocator>& lhs, const charT* rhs)
643 template <class charT, class traits, class Allocator>
645 operator!= (const basic_string <charT, traits, Allocator>& lhs,
646 const basic_string <charT, traits, Allocator>& rhs)
651 template <class charT, class traits, class Allocator>
653 operator> (const basic_string <charT, traits, Allocator>& lhs,
654 const basic_string <charT, traits, Allocator>& rhs)
659 template <class charT, class traits, class Allocator>
661 operator<= (const basic_string <charT, traits, Allocator>& lhs,
662 const basic_string <charT, traits, Allocator>& rhs)
667 template <class charT, class traits, class Allocator>
669 operator>= (const basic_string <charT, traits, Allocator>& lhs,
670 const basic_string <charT, traits, Allocator>& rhs)
676 template <class charT, class traits, class Allocator> istream&
677 operator>> (istream&, basic_string <charT, traits, Allocator>&);
678 template <class charT, class traits, class Allocator> ostream&
679 operator<< (ostream&, const basic_string <charT, traits, Allocator>&);
680 template <class charT, class traits, class Allocator> istream&
681 getline (istream&, basic_string <charT, traits, Allocator>&, charT delim = '\n');