Home | History | Annotate | Download | only in ext

Lines Matching defs:_Rep

46    *                                        [_Rep]
54 * you cast it to a pointer-to-_Rep and subtract 1 to get a
60 * a single "add" instruction: _Rep::_M_refdata(), and
62 * block of raw bytes and with room enough and constructs a _Rep
66 * not the _Rep is so that the debugger can see the string
68 * the _Rep for the debugger to use, so users can check the actual
71 * Note that the _Rep object is a POD so that you can have a
72 * static "empty string" _Rep object already "constructed" before
75 * destroy the empty-string _Rep object.
94 // _Rep: string representation
107 struct _Rep
122 typedef typename _Alloc::template rebind<_Rep>::other _Rep_alloc_type;
146 static _Rep*
157 : public _Rep
171 // npos = sizeof(_Rep) + (m * sizeof(_CharT)) + sizeof(_CharT)
172 // + sizeof(_Rep) - 1
175 // m = ((npos - 2 * sizeof(_Rep) + 1) / sizeof(_CharT)) - 1
177 enum { _S_max_size = (((static_cast<size_type>(-1) - 2 * sizeof(_Rep)
187 _Rep*
189 { return &((reinterpret_cast<_Rep*>(_M_data()))[-1]); }
356 typename __rc_string_base<_CharT, _Traits, _Alloc>::_Rep*
357 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
364 std::__throw_length_error(__N("__rc_string_base::_Rep::_S_create"));
404 // null char_type() element, plus enough for the _Rep data structure,
405 // plus sizeof(_Rep) - 1 to upper round to a size multiple of
406 // sizeof(_Rep).
409 + 2 * sizeof(_Rep) - 1);
418 __size = (__capacity + 1) * sizeof(_CharT) + 2 * sizeof(_Rep) - 1;
421 // NB: Might throw, but no worries about a leak, mate: _Rep()
423 _Rep* __place = _Rep_alloc_type(__alloc).allocate(__size / sizeof(_Rep));
424 _Rep* __p = new (__place) _Rep;
431 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
435 + 2 * sizeof(_Rep) - 1);
436 _Rep_alloc_type(__a).deallocate(this, __size / sizeof(_Rep));
441 __rc_string_base<_CharT, _Traits, _Alloc>::_Rep::
446 _Rep* __r = _Rep::_S_create(__requested_cap, _M_info._M_capacity,
511 _Rep* __r = _Rep::_S_create(__len, size_type(0), __a);
520 _Rep* __another = _Rep::_S_create(__len + 1, __len, __a);
556 _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a);
577 _Rep* __r = _Rep::_S_create(__n, size_type(0), __a);
644 _Rep* __r = _Rep::_S_create(_M_length() + __len2 - __len1,
670 _Rep* __r = _Rep::_S_create(__new_size, _M_capacity(),