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

#include <String.h>

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

Public Member Functions

 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 with ID Extended version of std::string that supports an integer string ID


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

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