VSTGUI
4.4
Graphical User Interface Framework not only for VST plugins
|
a view on an UTF-8 String More...
Public Member Functions | |
UTF8StringView (const UTF8StringPtr string) | |
size_t | calculateByteCount () const |
calculates the bytes used by this string, including null-character More... | |
size_t | calculateCharacterCount () const |
calculates the number of UTF-8 characters in the string More... | |
bool | contains (const UTF8StringPtr subString) const |
checks this string if it contains a subString More... | |
bool | endsWith (const UTF8StringView &endString) const |
checks this string if it ends with endString More... | |
double | toDouble (uint32_t precision=8) const |
converts the string to a double More... | |
float | toFloat (uint32_t precision=8) const |
converts the string to a float More... | |
bool | operator== (const UTF8StringPtr otherString) const |
bool | operator!= (const UTF8StringPtr otherString) const |
operator const UTF8StringPtr () const | |
a view on an UTF-8 String
It does not copy the string. It's allowed to put null pointers into it. A null pointer is treaded different than an empty string.
|
inline |
|
inline |
calculates the bytes used by this string, including null-character
|
inline |
calculates the number of UTF-8 characters in the string
|
inline |
checks this string if it contains a subString
|
inline |
checks this string if it ends with endString
|
inline |
|
inline |
|
inline |
|
inline |
converts the string to a double
|
inline |
converts the string to a float