Lines Matching defs:_CharT

58 template<class _CharT, class _Alloc>
59 _Rope_iterator<_CharT, _Alloc>::_Rope_iterator(rope<_CharT,_Alloc>* __r, size_t __pos)
60 : _Rope_iterator_base<_CharT,_Alloc>(__r->_M_tree_ptr._M_data, __pos),
63 template<class _CharT, class _Alloc>
64 _Rope_iterator<_CharT, _Alloc>::_Rope_iterator(rope<_CharT,_Alloc>& __r, size_t __pos):
65 _Rope_iterator_base<_CharT,_Alloc>(__r._M_tree_ptr._M_data, __pos),
70 _Rope_iterator_base<_CharT, _Alloc>* __x = this;
75 template<class _CharT, class _Alloc>
76 void _Rope_RopeRep<_CharT, _Alloc>::_M_free_c_string() {
77 _CharT* __cstr = _M_c_string;
89 template <class _CharT, class _Alloc>
90 void _Rope_iterator_base<_CharT,_Alloc>::_S_setbuf(
91 _Rope_iterator_base<_CharT,_Alloc>& __x) {
98 typedef _Rope_RopeLeaf<_CharT, _Alloc> _RopeLeaf;
109 typedef _Rope_RopeFunction<_CharT, _Alloc> _RopeFunction;
110 char_producer<_CharT>* __fn = __STATIC_CAST(const _RopeFunction*, __leaf)->_M_fn;
135 template <class _CharT, class _Alloc>
136 void _Rope_iterator_base<_CharT,_Alloc>::_S_setcache(
137 _Rope_iterator_base<_CharT,_Alloc>& __x) {
207 template <class _CharT, class _Alloc>
208 void _Rope_iterator_base<_CharT,_Alloc>::_S_setcache_for_incr(
209 _Rope_iterator_base<_CharT,_Alloc>& __x) {
269 template <class _CharT, class _Alloc>
270 void _Rope_iterator_base<_CharT,_Alloc>::_M_incr(size_t __n) {
285 template <class _CharT, class _Alloc>
286 void _Rope_iterator_base<_CharT,_Alloc>::_M_decr(size_t __n) {
298 template <class _CharT, class _Alloc>
299 void _Rope_iterator<_CharT,_Alloc>::_M_check() {
315 template <class _CharT, class _Alloc>
316 void _Rope_RopeRep<_CharT,_Alloc>::_M_free_tree() {
320 typedef _Rope_RopeLeaf<_CharT, _Alloc> _RopeLeaf;
322 _STLP_STD::_Destroy(__l); // ->_Rope_RopeLeaf<_CharT,_Alloc>::~_Rope_RopeLeaf();
329 typedef _Rope_RopeConcatenation<_CharT, _Alloc> _RopeConcatenation;
338 typedef _Rope_RopeFunction<_CharT, _Alloc> _RopeFunction;
347 typedef _Rope_RopeSubstring<_CharT, _Alloc> _RopeSubstring;
358 # define __RopeLeaf__ _Rope_RopeLeaf<_CharT,_Alloc>
359 # define __RopeRep__ _Rope_RopeRep<_CharT,_Alloc>
360 # define _RopeLeaf _Rope_RopeLeaf<_CharT,_Alloc>
361 # define _RopeRep _Rope_RopeRep<_CharT,_Alloc>
364 # define __RopeLeaf__ _STLP_TYPENAME_ON_RETURN_TYPE rope<_CharT,_Alloc>::_RopeLeaf
365 # define __RopeRep__ _STLP_TYPENAME_ON_RETURN_TYPE rope<_CharT,_Alloc>::_RopeRep
368 template <class _CharT, class _Alloc>
369 void rope<_CharT, _Alloc>::_M_throw_out_of_range() const {
375 template <class _CharT, class _Alloc>
377 rope<_CharT,_Alloc>::_S_leaf_concat_char_iter (
378 _RopeLeaf* __r, const _CharT* __iter, size_t __len) {
380 _CharT* __new_data = __r->_M_size.allocate(_S_rounded_up_size(__old_len + __len));
394 template <class _CharT, class _Alloc>
395 void _Terminate_RopeLeaf(_Rope_RopeLeaf<_CharT,_Alloc> *__r,
401 template <class _CharT, class _Alloc>
402 void _Terminate_RopeLeaf(_Rope_RopeLeaf<_CharT,_Alloc> *__r,
411 template <class _CharT, class _Alloc>
413 rope<_CharT,_Alloc>::_S_destr_leaf_concat_char_iter (_RopeLeaf* __r, const _CharT* __iter, size_t __len) {
441 template <class _CharT, class _Alloc>
443 rope<_CharT,_Alloc>::_S_tree_concat (_RopeRep* __left, _RopeRep* __right) {
472 template <class _CharT, class _Alloc>
474 rope<_CharT,_Alloc>::_S_concat_char_iter (_RopeRep* __r,
475 const _CharT*__s, size_t __slen) {
515 template <class _CharT, class _Alloc>
517 rope<_CharT,_Alloc>::_S_destr_concat_char_iter(
518 _RopeRep* __r, const _CharT* __s, size_t __slen) {
575 template <class _CharT, class _Alloc>
577 rope<_CharT,_Alloc>::_S_concat_rep(_RopeRep* __left, _RopeRep* __right) {
619 template <class _CharT, class _Alloc>
621 rope<_CharT,_Alloc>::_S_substring(_RopeRep* __base,
669 const _CharT* __section = __l->_M_data + __start;
697 _CharT* __section = __base->_M_size.allocate(_S_rounded_up_size(__result_len));
718 template<class _CharT>
719 class _Rope_flatten_char_consumer : public _Rope_char_consumer<_CharT> {
721 _CharT* _M_buf_ptr;
723 _Rope_flatten_char_consumer(_CharT* __buffer) {
727 bool operator() (const _CharT* __leaf, size_t __n) {
734 template<class _CharT>
735 class _Rope_find_char_char_consumer : public _Rope_char_consumer<_CharT> {
737 _CharT _M_pattern;
740 _Rope_find_char_char_consumer(_CharT __p)
743 bool operator() (const _CharT* __leaf, size_t __n) {
755 template<class _CharT, class _Traits>
756 // Here _CharT is both the stream and rope character type.
757 class _Rope_insert_char_consumer : public _Rope_char_consumer<_CharT> {
759 typedef basic_ostream<_CharT,_Traits> _Insert_ostream;
760 typedef _Rope_insert_char_consumer<_CharT,_Traits> _Self;
770 bool operator() (const _CharT* __leaf, size_t __n);
774 template<class _CharT, class _Traits>
775 bool _Rope_insert_char_consumer<_CharT, _Traits>::operator()
776 (const _CharT* __leaf, size_t __n) {
784 template <class _CharT, class _Alloc, class _CharConsumer>
786 _Rope_RopeRep<_CharT, _Alloc> * __r,
788 typedef _Rope_RopeRep<_CharT, _Alloc> _RopeRep;
789 typedef _Rope_RopeConcatenation<_CharT,_Alloc> _RopeConcatenation;
790 typedef _Rope_RopeLeaf<_CharT,_Alloc> _RopeLeaf;
791 typedef _Rope_RopeFunction<_CharT,_Alloc> _RopeFunction;
827 _CharT* __buffer = __r->get_allocator().allocate(__len);
844 template<class _CharT, class _Traits>
845 inline void _Rope_fill(basic_ostream<_CharT, _Traits>& __o, streamsize __n) {
850 template<class _CharT, class _Traits, class _Alloc>
851 basic_ostream<_CharT, _Traits>& _S_io_get(basic_ostream<_CharT, _Traits>& __o,
852 const rope<_CharT, _Alloc>& __r, const __true_type& /*_IsBasicCharType*/) {
856 _Rope_insert_char_consumer<_CharT, _Traits> __c(__o);
872 template<class _CharT, class _Traits, class _Alloc>
873 basic_ostream<_CharT, _Traits>& _S_io_get(basic_ostream<_CharT, _Traits>& __o,
874 const rope<_CharT, _Alloc>& __r, const __false_type& /*_IsBasicCharType*/) {
877 _Rope_insert_char_consumer<_CharT, _Traits> __c(__o);
888 template<class _CharT, class _Traits, class _Alloc>
889 basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __o,
890 const rope<_CharT, _Alloc>& __r) {
891 typedef typename _IsIntegral<_CharT>::_Ret _Char_Is_Integral;
896 template <class _CharT, class _Alloc>
897 _CharT* rope<_CharT,_Alloc>::_S_flatten(_RopeRep* __r,
899 _CharT* __buffer) {
900 _Rope_flatten_char_consumer<_CharT> __c(__buffer);
905 template <class _CharT, class _Alloc>
906 size_t rope<_CharT,_Alloc>::find(_CharT __pattern, size_t __start) const {
907 _Rope_find_char_char_consumer<_CharT> __c(__pattern);
916 template <class _CharT, class _Alloc>
917 _CharT*
918 rope<_CharT,_Alloc>::_S_flatten(_Rope_RopeRep<_CharT, _Alloc>* __r, _CharT* __buffer) {
926 _CharT* __rest = _S_flatten(__left, __buffer);
951 // This needs work for _CharT != char
952 template <class _CharT, class _Alloc>
953 void rope<_CharT,_Alloc>::_S_dump(_RopeRep* __r, int __indent) {
987 if (sizeof(_CharT) == 1) {
990 _CharT __buffer[__max_len + 1];
994 __buffer[__prefix->_M_size._M_data] = _STLP_DEFAULT_CONSTRUCTED(_CharT);
1016 template <class _CharT, class _Alloc>
1018 rope<_CharT,_Alloc>::_S_min_len[__ROPE_DEPTH_SIZE] __ROPE_TABLE_BODY;
1025 template <class _CharT, class _Alloc>
1026 __RopeRep__* rope<_CharT,_Alloc>::_S_balance(_RopeRep* __r) {
1059 template <class _CharT, class _Alloc>
1061 rope<_CharT,_Alloc>::_S_add_to_forest(_RopeRep* __r, _RopeRep** __forest)
1077 template <class _CharT, class _Alloc>
1079 rope<_CharT,_Alloc>::_S_add_leaf_to_forest(_RopeRep* __r, _RopeRep** __forest)
1121 template <class _CharT, class _Alloc>
1122 _CharT
1123 rope<_CharT,_Alloc>::_S_fetch(_RopeRep* __r, size_type __i)
1125 _CharT* __cstr = __r->_M_c_string;
1154 _CharT __result;
1168 template <class _CharT, class _Alloc>
1169 _CharT*
1170 rope<_CharT,_Alloc>::_S_fetch_ptr(_RopeRep* __r, size_type __i)
1225 template <class _CharT, class _Alloc>
1227 rope<_CharT,_Alloc>::_S_compare (const _RopeRep* __left,
1267 template <class _CharT, class _Alloc>
1268 _Rope_char_ref_proxy<_CharT, _Alloc>&
1269 _Rope_char_ref_proxy<_CharT, _Alloc>::operator= (_CharT __c) {
1273 _CharT* __ptr = _My_rope::_S_fetch_ptr(__old, _M_pos);
1294 template <class _CharT, class _Alloc>
1295 _Rope_char_ptr_proxy<_CharT, _Alloc>
1296 _Rope_char_ref_proxy<_CharT, _Alloc>::operator& () const {
1297 return _Rope_char_ptr_proxy<_CharT, _Alloc>(*this);
1300 template<class _CharT, class _Alloc>
1301 _CharT rope<_CharT,_Alloc>::_S_empty_c_str[1] = { _CharT() };
1305 template <class _CharT, class _Alloc>
1306 const size_t rope<_CharT, _Alloc>::npos;
1309 template<class _CharT, class _Alloc>
1310 const _CharT* rope<_CharT,_Alloc>::c_str() const {
1313 _S_empty_c_str[0] = _STLP_DEFAULT_CONSTRUCTED(_CharT);
1316 _CharT* __old_c_string = _M_tree_ptr._M_data->_M_c_string;
1319 _CharT* __result = _STLP_CREATE_ALLOCATOR(allocator_type,(const allocator_type&)_M_tree_ptr, _CharT).allocate(__s + 1);
1322 __old_c_string = __STATIC_CAST(_CharT*, _Atomic_swap_ptr(__REINTERPRET_CAST(void* _STLP_VOLATILE*, &(_M_tree_ptr._M_data->_M_c_string)),
1329 _STLP_CREATE_ALLOCATOR(allocator_type,(const allocator_type&)_M_tree_ptr, _CharT).deallocate(__old_c_string, __s + 1);
1334 template<class _CharT, class _Alloc>
1335 const _CharT* rope<_CharT,_Alloc>::replace_with_c_str() {
1337 _S_empty_c_str[0] = _STLP_DEFAULT_CONSTRUCTED(_CharT);
1340 _CharT* __old_c_string = _M_tree_ptr._M_data->_M_c_string;
1345 _CharT* __result = _M_tree_ptr.allocate(_S_rounded_up_size(__s));
1357 template<class _CharT,class _Alloc>
1358 void _Rope_rotate(_Rope_iterator<_CharT,_Alloc> __first,
1359 _Rope_iterator<_CharT,_Alloc> __middle,
1360 _Rope_iterator<_CharT,_Alloc> __last) {
1363 rope<_CharT,_Alloc>& __r(__first.container());
1364 rope<_CharT,_Alloc> __prefix = __r.substr(0, __first.index());
1365 rope<_CharT,_Alloc> __suffix =
1367 rope<_CharT,_Alloc> __part1 =
1369 rope<_CharT,_Alloc> __part2 =