| VSTGUI
    4.10
    Graphical User Interface Framework not only for VST plugins | 
a view on a null terminated UTF-8 String More...
| Public Member Functions | |
| UTF8StringView () | |
| UTF8StringView (const UTF8StringPtr string) | |
| UTF8StringView (const UTF8String &string) | |
| UTF8StringView (const std::string &string) | |
| UTF8StringView (const UTF8StringView &other) noexcept | |
| UTF8StringView & | operator= (const UTF8StringView &other) noexcept | 
| UTF8StringView (UTF8StringView &&other) noexcept=default | |
| UTF8StringView & | operator= (UTF8StringView &&other)=default | 
| size_t | calculateByteCount () const | 
| calculates the bytes used by this string, including null-character | |
| size_t | calculateCharacterCount () const | 
| calculates the number of UTF-8 characters in the string | |
| bool | contains (const UTF8StringPtr subString, bool ignoreCase=false) const | 
| checks this string if it contains a subString | |
| bool | startsWith (const UTF8StringView &startString) const | 
| checks this string if it starts with startString | |
| bool | endsWith (const UTF8StringView &endString) const | 
| checks this string if it ends with endString | |
| double | toDouble (uint32_t precision=8) const | 
| converts the string to a double | |
| float | toFloat (uint32_t precision=8) const | 
| converts the string to a float | |
| int64_t | toInteger () const | 
| converts the string to an integer | |
| template<typename T > | |
| Optional< T > | toNumber () const | 
| bool | operator== (const UTF8StringPtr otherString) const | 
| bool | operator!= (const UTF8StringPtr otherString) const | 
| bool | operator== (UTF8StringView otherString) const | 
| operator const UTF8StringPtr () const | |
a view on a null terminated 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 as they are not equal and the byte count of a null pointer is zero while the empty string has a byte count of one.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inlinenoexcept | 
| 
 | defaultnoexcept | 
| 
 | 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 | 
| 
 | inlinenoexcept | 
| 
 | default | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
checks this string if it starts with startString
| double toDouble | ( | uint32_t | precision = 8 | ) | const | 
converts the string to a double
| 
 | inline | 
converts the string to a float
| int64_t toInteger | ( | ) | const | 
converts the string to an integer
| 
 | inline |