|
Public Types |
typedef uchar_t | value_type |
typedef ptrdiff_t | difference_type |
typedef uchar_t | const_reference |
typedef const uchar_t * | const_pointer |
typedef MNRefProxy | reference |
typedef MNPtrProxy | pointer |
typedef reverse_iterator<
MNRopeConstIterator > | const_reverse_iterator |
typedef reverse_iterator<
MNRopeConstIterator, value_type,
const_reference, difference_type > | const_reverse_iterator |
typedef reverse_iterator<
iterator > | reverse_iterator |
typedef reverse_iterator<
iterator, value_type, reference,
difference_type > | reverse_iterator |
Public Member Functions |
void | apply_to_pieces (size_t __begin, size_t __end, MNRopeCharConsumer &__c) const |
bool | empty () const |
int | compare (const MNRope &__y) const |
| MNRope (const uchar_t *__s) |
| MNRope (const uchar_t *__s, size_t __len) |
| MNRope (const uchar_t *__s, const uchar_t *__e) |
| MNRope (uchar_t __c) |
| MNRope (size_t __n, uchar_t __c) |
| MNRope () |
| MNRope (MNRopeCharProducer *__fn, size_t __len, bool __delete_fn) |
| Construct a rope from a function that can compute its members.
|
| MNRope (const MNRope &__x) |
| MNRope (MNRopeRep *__t) |
| ~MNRope () |
MNRope & | operator= (const MNRope &__x) |
void | clear () |
void | push_back (uchar_t __x) |
void | pop_back () |
uchar_t | back () const |
void | push_front (uchar_t __x) |
void | pop_front () |
uchar_t | front () const |
void | balance () |
void | copy (uchar_t *__buffer) const |
size_t | copy (size_t __pos, size_t __n, uchar_t *__buffer) const |
void | dump () |
const uchar_t * | c_str () const |
const uchar_t * | replace_with_c_str () |
void | delete_c_str () |
uchar_t | operator[] (size_t __pos) const |
uchar_t | at (size_t __pos) const |
size_t | size () const |
size_t | length () const |
size_t | max_size () const |
MNRope & | append (const uchar_t *__iter, size_t __n) |
MNRope & | append (const uchar_t *__c_string) |
MNRope & | append (const uchar_t *__s, const uchar_t *__e) |
MNRope & | append (uchar_t __c) |
MNRope & | append () |
MNRope & | append (const MNRope &__y) |
MNRope & | append (size_t __n, uchar_t __c) |
void | swap (MNRope &__b) |
void | insert (size_t __p, const MNRope &__r) |
void | insert (size_t __p, size_t __n, uchar_t __c) |
void | insert (size_t __p, const uchar_t *__i, size_t __n) |
void | insert (size_t __p, const uchar_t *__c_string) |
void | insert (size_t __p, uchar_t __c) |
void | insert (size_t __p) |
void | insert (size_t __p, const uchar_t *__i, const uchar_t *__j) |
void | erase (size_t __p, size_t __n) |
| Erase, (position, size) variant.
|
void | erase (size_t __p) |
| Erase, single character.
|
MNRope | substr (size_t __start, size_t __len=1) const |
size_t | find (uchar_t __c, size_t __pos=0) const |
reference | mutable_reference_at (size_t __pos) |
reference | operator[] (size_t __pos) |
reference | at (size_t __pos) |
void | resize (size_t __n, uchar_t __c) |
void | resize (size_t __n) |
void | reserve (size_t __res_arg=0) |
size_t | capacity () const |
size_t | copy (uchar_t *__buffer, size_t __n, size_t __pos=0) const |
| MNRope (const MNRopeConstIterator &__s, const MNRopeConstIterator &__e) |
| MNRope (const MNRopeIterator &__s, const MNRopeIterator &__e) |
MNRopeConstIterator | begin () const |
MNRopeConstIterator | const_begin () const |
| An easy way to get a const iterator from a non-const container.
|
MNRopeConstIterator | end () const |
MNRopeConstIterator | const_end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | const_rbegin () const |
const_reverse_iterator | rend () const |
const_reverse_iterator | const_rend () const |
MNRope & | append (MNRopeConstIterator __s, MNRopeConstIterator __e) |
void | insert (size_t __p, const MNRopeConstIterator &__i, const MNRopeConstIterator &__j) |
void | insert (size_t __p, const MNRopeIterator &__i, const MNRopeIterator &__j) |
void | replace (size_t __p, size_t __n, const MNRopeConstIterator &__i, const MNRopeConstIterator &__j) |
void | replace (size_t __p, size_t __n, const MNRopeIterator &__i, const MNRopeIterator &__j) |
size_t | find (const uchar_t *__s, size_t __pos=0) const |
MNRopeIterator | mutable_begin () |
MNRopeIterator | mutable_end () |
reverse_iterator | mutable_rbegin () |
reverse_iterator | mutable_rend () |
iterator | end () |
iterator | begin () |
reverse_iterator | rend () |
reverse_iterator | rbegin () |
MNRopeConstIterator | end () |
MNRopeConstIterator | begin () |
const_reverse_iterator | rend () |
const_reverse_iterator | rbegin () |
|
void | replace (size_t __p, size_t __n, const MNRope &__r) |
void | replace (size_t __p, size_t __n, const uchar_t *__i, size_t __i_len) |
void | replace (size_t __p, size_t __n, uchar_t __c) |
void | replace (size_t __p, size_t __n, const uchar_t *__c_string) |
void | replace (size_t __p, size_t __n, const uchar_t *__i, const uchar_t *__j) |
|
void | replace (size_t __p, const MNRope &__r) |
void | replace (size_t __p, const uchar_t *__i, size_t __i_len) |
void | replace (size_t __p, const uchar_t *__c_string) |
void | replace (size_t __p, const uchar_t *__i, const uchar_t *__j) |
|
void | replace (size_t __p, uchar_t __c) |
void | replace (size_t __p, const MNRopeConstIterator &__i, const MNRopeConstIterator &__j) |
void | replace (size_t __p, const MNRopeIterator &__i, const MNRopeIterator &__j) |
|
MNRopeIterator | insert (const MNRopeIterator &__p, const MNRope &__r) |
MNRopeIterator | insert (const MNRopeIterator &__p, size_t __n, uchar_t __c) |
MNRopeIterator | insert (const MNRopeIterator &__p, uchar_t __c) |
MNRopeIterator | insert (const MNRopeIterator &__p) |
MNRopeIterator | insert (const MNRopeIterator &__p, const uchar_t *c_string) |
MNRopeIterator | insert (const MNRopeIterator &__p, const uchar_t *__i, size_t __n) |
MNRopeIterator | insert (const MNRopeIterator &__p, const uchar_t *__i, const uchar_t *__j) |
MNRopeIterator | insert (const MNRopeIterator &__p, const MNRopeConstIterator &__i, const MNRopeConstIterator &__j) |
MNRopeIterator | insert (const MNRopeIterator &__p, const MNRopeIterator &__i, const MNRopeIterator &__j) |
|
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const MNRope &__r) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, uchar_t __c) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const uchar_t *__c_string) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const uchar_t *__i, size_t __n) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const uchar_t *__i, const uchar_t *__j) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const MNRopeConstIterator &__i, const MNRopeConstIterator &__j) |
void | replace (const MNRopeIterator &__p, const MNRopeIterator &__q, const MNRopeIterator &__i, const MNRopeIterator &__j) |
|
void | replace (const MNRopeIterator &__p, const MNRope &__r) |
void | replace (const MNRopeIterator &__p, uchar_t __c) |
void | replace (const MNRopeIterator &__p, const uchar_t *__c_string) |
void | replace (const MNRopeIterator &__p, const uchar_t *__i, size_t __n) |
void | replace (const MNRopeIterator &__p, const uchar_t *__i, const uchar_t *__j) |
void | replace (const MNRopeIterator &__p, MNRopeConstIterator __i, MNRopeConstIterator __j) |
void | replace (const MNRopeIterator &__p, MNRopeIterator __i, MNRopeIterator __j) |
|
MNRopeIterator | erase (const MNRopeIterator &__p, const MNRopeIterator &__q) |
MNRopeIterator | erase (const MNRopeIterator &__p) |
|
MNRope | substr (MNRopeIterator __start, MNRopeIterator __end) const |
MNRope | substr (MNRopeIterator __start) const |
MNRope | substr (MNRopeConstIterator __start, MNRopeConstIterator __end) const |
MNRope | substr (MNRopeConstIterator __start) |
Static Public Attributes |
const size_t | npos |
Protected Types |
typedef uchar_t * | _Cstrptr |
enum | { _S_copy_max = 23
} |
Static Protected Member Functions |
bool | _S_is0 (uchar_t __c) |
uchar_t | _S_fetch (MNRopeRep *__r, size_t __pos) |
| Retrieve a character at the indicated position.
|
uchar_t * | _S_fetch_ptr (MNRopeRep *__r, size_t __pos) |
bool | _S_apply_to_pieces (MNRopeCharConsumer &__c, const MNRopeRep *__r, size_t __begin, size_t __end) |
void | _S_unref (MNRopeRep *__t) |
void | _S_ref (MNRopeRep *__t) |
MNRopeRep * | _S_substring (MNRopeRep *__base, size_t __start, size_t __endp1) |
| _Result is counted in refcount.
|
MNRopeRep * | _S_concat_char_iter (MNRopeRep *__r, const uchar_t *__iter, size_t __slen) |
MNRopeRep * | _S_destr_concat_char_iter (MNRopeRep *__r, const uchar_t *__iter, size_t __slen) |
MNRopeRep * | _S_concat (MNRopeRep *__left, MNRopeRep *__right) |
size_t | _S_rounded_up_size (size_t __n) |
size_t | _S_allocated_capacity (size_t __n) |
MNRopeLeaf * | _S_newMNRopeLeaf (uchar_t *__s, size_t __size) |
MNRopeConcat * | _S_newMNRopeConcat (MNRopeRep *__left, MNRopeRep *__right) |
MNRopeFunction * | _S_newMNRopeFunction (MNRopeCharProducer *__f, size_t __size, bool __d) |
MNRopeSubstring * | _S_newMNRopeSubstring (MNRopeRep *__b, size_t __s, size_t __l) |
MNRopeLeaf * | _SMNRopeLeaf_from_unowned_char_ptr (const uchar_t *__s, size_t __size) |
MNRopeRep * | _S_tree_concat (MNRopeRep *__left, MNRopeRep *__right) |
MNRopeLeaf * | _S_leaf_concat_char_iter (MNRopeLeaf *__r, const uchar_t *__iter, size_t __slen) |
| Concatenation helper functions.
|
MNRopeLeaf * | _S_destr_leaf_concat_char_iter (MNRopeLeaf *__r, const uchar_t *__iter, size_t __slen) |
MNRopeRep * | replace (MNRopeRep *__old, size_t __pos1, size_t __pos2, MNRopeRep *__r) |
| Result is included in refcount.
|
Static Protected Attributes |
uchar_t | _S_empty_c_str [1] |
Friends |
MNRope | operator+ (const MNRope &__left, const MNRope &__right) |
MNRope | operator+ (const MNRope &__left, const uchar_t *__right) |
MNRope | operator+ (const MNRope &__left, uchar_t __right) |