Atoms Crowd  7.0.0
ToolchefsSTL::String Class Reference

Classes

struct  ReverseIterator
 

Public Types

typedef char * iterator
 
typedef const char * const_iterator
 
typedef ReverseIterator< char > reverse_iterator
 
typedef ReverseIterator< const char > const_reverse_iterator
 
typedef uint32_t size_type
 

Public Member Functions

bool is_internal () const noexcept
 
 String (Allocator *allocator=defaultAllocator()) noexcept
 
 String (const char *value, Allocator *allocator=defaultAllocator()) noexcept
 
 String (const String &rhs, Allocator *allocator=defaultAllocator()) noexcept
 
 String (String &&rhs) noexcept
 
Stringoperator= (const String &rhs) noexcept
 
Stringoperator= (const char *rhs) noexcept
 
Stringoperator= (String &&rhs) noexcept
 
size_type size () const noexcept
 
size_type length () const noexcept
 
size_type capacity () const noexcept
 
void reserve (size_type max_length) noexcept
 
void resize (size_type new_length) noexcept
 
void resize (size_type new_length, char value) noexcept
 
void clear ()
 
bool empty () const noexcept
 
iterator begin () noexcept
 Iterators.
 
iterator end () noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
reverse_iterator rbegin () noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
char & back () noexcept
 Direct access.
 
const char & back () const noexcept
 
char & front () noexcept
 
const char & front () const noexcept
 
char & operator[] (const size_type pos) noexcept
 
const char & operator[] (const size_type pos) const noexcept
 
const char * c_str () const noexcept
 
bool operator== (const String &rhs) const noexcept
 Comp operators.
 
bool operator!= (const String &rhs) const noexcept
 
bool operator< (const String &rhs) const noexcept
 
bool operator<= (const String &rhs) const noexcept
 
bool operator> (const String &rhs) const noexcept
 
bool operator>= (const String &rhs) const noexcept
 
Stringoperator+= (const String &rhs) noexcept
 concat operator
 
Stringoperator+= (const char *cstr) noexcept
 
Stringoperator+= (const char chr) noexcept
 
Stringoperator+= (int num) noexcept
 
String operator+ (const String &rhs) const noexcept
 
String operator+ (const char *cstr) const noexcept
 
String operator+ (const char chr) const noexcept
 
size_type find (const String &str, size_type pos=0) const noexcept
 Algorithm.
 
size_type find (const char *s, size_type pos=0) const noexcept
 
size_type find (const char s, size_type pos=0) const noexcept
 
size_type rfind (const String &str, size_type pos=npos) const noexcept
 
size_type rfind (const char *s, size_type pos=npos) const noexcept
 
size_type rfind (const char s, size_type pos=npos) const noexcept
 
String substr (size_type pos=0, size_type len=npos) const noexcept
 
String replace (const String &src, const String &dest) const noexcept
 
int compare (const String &str) const noexcept
 
int compare (const char *s) const noexcept
 
bool endswith (const String &ending) const noexcept
 
bool startswith (const String &prefix) const noexcept
 
size_type count (const String &substr, size_type start=0, size_type end=npos) const noexcept
 
String capitalize () const noexcept
 
String upper () const noexcept
 
String lower () const noexcept
 
String swapcase () const noexcept
 
String zfill (size_type width) const noexcept
 
bool isalnum () const noexcept
 Return true if all characters in the string are alphanumeric and there is at least one character, false otherwise.
 
bool isalpha () const noexcept
 Return true if all characters in the string are alphabetic and there is at least one character, false otherwise.
 
bool isdigit () const noexcept
 Return true if all characters in the string are digits and there is at least one character, false otherwise.
 
bool islower () const noexcept
 Return true if all cased characters in the string are lowercase and there is at least one cased character, false otherwise.
 
bool isspace () const noexcept
 Return true if there are only whitespace characters in the string and there is at least one character, false otherwise.
 
bool istitle () const noexcept
 Return true if the string is a titlecased string and there is at least one character, i.e. uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return false otherwise.
 
bool isupper () const noexcept
 Return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise.
 
int toInt () const
 
double toDouble () const
 

Static Public Member Functions

static String fromInt (int num) noexcept
 
static String fromFloat (float num) noexcept
 
static String format (const char *format,...)
 

Static Public Attributes

static const size_type DataSize
 
static const size_type MaxLength
 
static size_type npos
 

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