|
String that should always contain non-empty string. More...
#include <NotEmptyString.h>
Public Member Functions | |
| NotEmptyString (std::string other) | |
| NotEmptyString (const NotEmptyString &other) | |
| NotEmptyString & | operator= (const NotEmptyString &other) |
Public Member Functions inherited from sptk::String | |
| String () | |
| String (const String &other)=default | |
| String (String &&src) noexcept=default | |
| String (const std::string &str, int64_t id=0) | |
| String (const char *str) | |
| String (const char *str, size_t len, int64_t id=0) | |
| String (size_t len, char ch, int64_t id=0) | |
| ~String () noexcept=default | |
| String & | operator= (const std::string &si) |
| String & | operator= (const String &other)=default |
| String & | operator= (String &&other) noexcept=default |
| String & | operator= (const char *str) |
| int64_t | ident () const |
| void | ident (int64_t id) |
| bool | in (std::initializer_list< String > list) const |
| bool | matches (const String &pattern, const String &options=String()) const |
| Strings | split (const String &pattern) const |
| String | replace (const String &pattern, const String &replacement) const |
| String | toUpperCase () const |
| String | toLowerCase () const |
| int | toInt () const |
| bool | startsWith (const String &subject) const |
| bool | contains (const String &subject) const |
| bool | endsWith (const String &subject) const |
| String | trim () const |
String that should always contain non-empty string.