Home | History | Annotate | Download | only in ext

Lines Matching refs:_Rep

48    *                                        [_Rep]
56 * you cast it to a pointer-to-_Rep and subtract 1 to get a
62 * a single @a add instruction: _Rep::_M_refdata(), and
64 * block of raw bytes and with room enough and constructs a _Rep
68 * not the _Rep is so that the debugger can see the string
70 * the _Rep for the debugger to use, so users can check the actual
73 * Note that the _Rep object is a POD so that you can have a
74 * static <em>empty string</em> _Rep object already @a constructed before
77 * destroy the empty-string _Rep object.
96 // _Rep: string representation
109 struct _Rep
124 typedef typename _Alloc::template rebind<_Rep>::other _Rep_alloc_type;
148 static _Rep*
159 : public _Rep
173 // npos = sizeof(_Rep) + (m * sizeof(_CharT)) + sizeof(_CharT)
174 // + sizeof(_Rep) - 1
177 // m = ((npos - 2 * sizeof(_Rep) + 1) / sizeof(_CharT)) - 1
179 enum { _S_max_size = (((static_cast<size_type>(-1) - 2 * sizeof(_Rep)
189 _Rep*
191 { return &((reinterpret_cast<_Rep*>(_M_data()))[-1]); }
370 typename __rc_string_base<_CharT, _Traits, _Alloc>::_Rep*
371 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
378 std::__throw_length_error(__N("__rc_string_base::_Rep::_S_create"));
418 // null char_type() element, plus enough for the _Rep data structure,
419 // plus sizeof(_Rep) - 1 to upper round to a size multiple of
420 // sizeof(_Rep).
423 + 2 * sizeof(_Rep) - 1);
432 __size = (__capacity + 1) * sizeof(_CharT) + 2 * sizeof(_Rep) - 1;
435 // NB: Might throw, but no worries about a leak, mate: _Rep()
437 _Rep* __place = _Rep_alloc_type(__alloc).allocate(__size / sizeof(_Rep));
438 _Rep* __p = new (__place) _Rep;
445 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
449 + 2 * sizeof(_Rep) - 1);
450 _Rep_alloc_type(__a).deallocate(this, __size / sizeof(_Rep));
455 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
460 _Rep* __r = _Rep::_S_create(__requested_cap, _M_info._M_capacity,
525 _Rep* __r = _Rep::_S_create(__len, size_type(0), __a);
534 _Rep* __another = _Rep::_S_create(__len + 1, __len, __a);
570 _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a);
591 _Rep* __r = _Rep::_S_create(__n, size_type(0), __a);
658 _Rep* __r = _Rep::_S_create(_M_length() + __len2 - __len1,
684 _Rep* __r = _Rep::_S_create(__new_size, _M_capacity(),