Immutable string container. More...
#include <kanzi/core/string/immutable_string.hpp>
Public Member Functions | |
ImmutableString () | |
Empty constructor. More... | |
ImmutableString (string_view content) | |
Constructor. More... | |
ImmutableString (KZ_RV_REF(ImmutableString) other) | |
Move constructor. More... | |
const char * | c_str () const |
Access string data. More... | |
operator string_view () const | |
string_view operator. More... | |
ImmutableString & | operator= (KZ_RV_REF(ImmutableString) other) |
Move operator. More... | |
Friends | |
void | swap (ImmutableString &left, ImmutableString &right) |
Swap operation. More... | |
bool | operator== (const ImmutableString &lhs, string_view rhs) |
Comparison operator. More... | |
bool | operator== (string_view lhs, const ImmutableString &rhs) |
Comparison operator. More... | |
bool | operator== (const ImmutableString &lhs, const ImmutableString &rhs) |
Comparison operator. More... | |
bool | operator!= (const ImmutableString &lhs, string_view rhs) |
Not equals operator. More... | |
bool | operator!= (string_view lhs, const ImmutableString &rhs) |
Not equals operator. More... | |
bool | operator!= (const ImmutableString &lhs, const ImmutableString &rhs) |
Not equals operator. More... | |
bool | operator< (const ImmutableString &lhs, const ImmutableString &rhs) |
Less than operator. More... | |
Immutable string container.
Represents a string that is allocated dynamically but cannot be changed.
|
inlineexplicit |
Empty constructor.
|
inlineexplicit |
Constructor.
content | String to construct from. |
|
inline |
Move constructor.
other | Source string. |
|
inline |
Access string data.
|
inline |
string_view operator.
|
inline |
Move operator.
other | Source string. |
|
friend |
Swap operation.
left | Left operand. |
right | Right operand. |
|
friend |
Comparison operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Comparison operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Comparison operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Not equals operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Not equals operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Not equals operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |
|
friend |
Less than operator.
lhs | Left-hand side operand. |
rhs | Right-hand side operand. |