A string reference to a fixed-length array for its data.
All Strings operate in a manner compatible with std::string wherever feasable in the functions implemented. MutableString have a maximum size, but the data they contain is on loan from whatever constructed them.
All mutating algorithms on strings supported by the String suite should be implemented on MutableStrings. Strings use the MutableString implementations, with a possible resize to prevent clipping.
MutableStrings require both a buffer, and a reference to the length of the string. They are not meant to be constructed directly by client code. Instead, use them by cast-constructing them from ArrayStrings or Strings.
Even more than ConstStrings, MutableStrings are not designed to be storable.
See Also
Summary
MutableString | A string reference to a fixed-length array for its data. |
Functions | |
MutableString | Constructs a mutable string. |
data | a chararcter pointer to the data. |
c_str | a chararcter pointer to NUL terminated data. |
length | the current length of the string. |
size | the current length of the string. |
capacity | the current capacity of the string. |
format | prints into the string, like printf. |
vformat | prints into the string, like vprintf. |
begin | the const_iterator at the begining of the string. |
end | the const_iterator at the end of the string. |
begin | the iterator at the end of the string. |
end | the iterator at the end of the string. |