|
| StringValue () |
|
| StringValue (const clarisma::ShortVarString *str) |
|
| StringValue (const uint8_t *bytes) |
|
const char * | data () const noexcept |
| Pointer to the characters of the string.
|
|
bool | isEmpty () const noexcept |
| true if the length of the string is 0
|
|
size_t | size () const noexcept |
| The length of the string.
|
|
bool | startsWith (const std::string_view s) const noexcept |
|
bool | endsWith (const std::string_view s) const noexcept |
|
bool | operator== (const std::string_view sv) const noexcept |
|
bool | operator!= (const std::string_view sv) const noexcept |
|
| operator bool () const noexcept |
|
const uint8_t * | rawBytes () const noexcept |
| Pointer to the raw data representing this string.
|
|
A string pointer (used for keys, values and roles).
Character data is encoded as UTF-8.
Converts implicitly to std::string
and std::string_view
.
Warning: A StringValue object is a lightweight wrapper around a pointer to string data, contained in a FeatureStore. It becomes invalid once that FeatureStore is closed. To use its value beyond the lifetime of its FeatureStore, assign it to a std::string
(which allocates its own copy of the string).