DISTRHO Plugin Framework
Public Member Functions | Static Public Member Functions | List of all members
String Class Reference

Public Member Functions

 String (const char c) noexcept
 
 String (char *const strBuf, const bool reallocData=true) noexcept
 
 String (const char *const strBuf) noexcept
 
 String (const int value) noexcept
 
 String (const unsigned int value, const bool hexadecimal=false) noexcept
 
 String (const long value) noexcept
 
 String (const unsigned long value, const bool hexadecimal=false) noexcept
 
 String (const long long value) noexcept
 
 String (const unsigned long long value, const bool hexadecimal=false) noexcept
 
 String (const float value) noexcept
 
 String (const double value) noexcept
 
 String (const String &str) noexcept
 
std::size_t length () const noexcept
 
bool isEmpty () const noexcept
 
bool isNotEmpty () const noexcept
 
bool contains (const char c) const noexcept
 
bool contains (const char *const strBuf, const bool ignoreCase=false) const noexcept
 
bool isDigit (const std::size_t pos) const noexcept
 
bool startsWith (const char c) const noexcept
 
bool startsWith (const char *const prefix) const noexcept
 
bool endsWith (const char c) const noexcept
 
bool endsWith (const char *const suffix) const noexcept
 
std::size_t find (const char c, bool *const found=nullptr) const noexcept
 
std::size_t find (const char *const strBuf, bool *const found=nullptr) const noexcept
 
std::size_t rfind (const char c, bool *const found=nullptr) const noexcept
 
std::size_t rfind (const char *const strBuf, bool *const found=nullptr) const noexcept
 
void clear () noexcept
 
Stringreplace (const char before, const char after) noexcept
 
Stringremove (const char c) noexcept
 
Stringtruncate (const std::size_t n) noexcept
 
StringtoBasic () noexcept
 
StringtoLower () noexcept
 
StringtoUpper () noexcept
 
String asBasic () const noexcept
 
String asLower () const noexcept
 
String asUpper () const noexcept
 
const char * buffer () const noexcept
 
char * getAndReleaseBuffer () noexcept
 
 operator const char * () const noexcept
 
char operator[] (const std::size_t pos) const noexcept
 
char & operator[] (const std::size_t pos) noexcept
 
bool operator== (const char *const strBuf) const noexcept
 
bool operator== (const String &str) const noexcept
 
bool operator!= (const char *const strBuf) const noexcept
 
bool operator!= (const String &str) const noexcept
 
Stringoperator= (const char *const strBuf) noexcept
 
Stringoperator= (const String &str) noexcept
 
Stringoperator+= (const char *const strBuf) noexcept
 
Stringoperator+= (const String &str) noexcept
 
String operator+ (const char *const strBuf) noexcept
 
String operator+ (const String &str) noexcept
 
bool operator< (const String &str) const noexcept
 

Static Public Member Functions

static String asBase64 (const void *const data, const std::size_t dataSize)
 

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