sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::NotEmptyString Class Reference

String that should always contain non-empty string. More...

#include <NotEmptyString.h>

Inheritance diagram for sptk::NotEmptyString:
sptk::String

Public Member Functions

 NotEmptyString (std::string other)
 
 NotEmptyString (const NotEmptyString &other)
 
NotEmptyStringoperator= (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
 
Stringoperator= (const std::string &si)
 
Stringoperator= (const String &other)=default
 
Stringoperator= (String &&other) noexcept=default
 
Stringoperator= (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
 

Detailed Description

String that should always contain non-empty string.


The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:43: SPTK 5.4.1