Atoms Crowd  7.0.0
ToolchefsSTL::WString Class Reference

Classes

struct  ReverseIterator
 

Public Types

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

Public Member Functions

bool is_internal () const noexcept
 
 WString (Allocator *allocator=defaultAllocator()) noexcept
 
 WString (const wchar_t *value, Allocator *allocator=defaultAllocator()) noexcept
 
 WString (const WString &rhs, Allocator *allocator=defaultAllocator()) noexcept
 
 WString (WString &&rhs) noexcept
 
WStringoperator= (const WString &rhs) noexcept
 
WStringoperator= (const wchar_t *rhs) noexcept
 
WStringoperator= (WString &&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, wchar_t 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
 
wchar_t & back () noexcept
 Direct access.
 
const wchar_t & back () const noexcept
 
wchar_t & front () noexcept
 
const wchar_t & front () const noexcept
 
wchar_t & operator[] (const size_type pos) noexcept
 
const wchar_t & operator[] (const size_type pos) const noexcept
 
const wchar_t * c_str () const noexcept
 
bool operator== (const WString &rhs) const noexcept
 Comp operators.
 
bool operator!= (const WString &rhs) const noexcept
 
bool operator< (const WString &rhs) const noexcept
 
bool operator<= (const WString &rhs) const noexcept
 
bool operator> (const WString &rhs) const noexcept
 
bool operator>= (const WString &rhs) const noexcept
 
WStringoperator+= (const WString &rhs) noexcept
 concat operator
 
WStringoperator+= (const wchar_t *cstr) noexcept
 
WStringoperator+= (const wchar_t chr) noexcept
 
WStringoperator+= (int num) noexcept
 
WString operator+ (const WString &rhs) const noexcept
 
WString operator+ (const wchar_t *cstr) const noexcept
 
WString operator+ (const wchar_t chr) const noexcept
 
size_type find (const WString &str, size_type pos=0) const noexcept
 Algorithm.
 
size_type find (const wchar_t *s, size_type pos=0) const noexcept
 
size_type find (const wchar_t s, size_type pos=0) const noexcept
 
size_type rfind (const WString &str, size_type pos=npos) const noexcept
 
size_type rfind (const wchar_t *s, size_type pos=npos) const noexcept
 
size_type rfind (const wchar_t s, size_type pos=npos) const noexcept
 
WString substr (size_type pos=0, size_type len=npos) const noexcept
 
WString replace (const WString &src, const WString &dest) const noexcept
 
int compare (const WString &str) const noexcept
 
int compare (const wchar_t *s) const noexcept
 
bool endswith (const WString &ending) const noexcept
 
bool startswith (const WString &prefix) const noexcept
 
size_type count (const WString &substr, size_type start=0, size_type end=npos) const noexcept
 
WString capitalize () const noexcept
 
WString upper () const noexcept
 
WString lower () const noexcept
 
WString swapcase () const noexcept
 
WString 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 WString fromInt (int num) noexcept
 
static WString fromFloat (float num) noexcept
 
static WString format (const wchar_t *format,...)
 

Static Public Attributes

static constexpr const size_type DataSize { 16 }
 
static constexpr const size_type MaxLength { DataSize - 1 }
 
static constexpr size_type npos { static_cast<size_type>(-1) }
 

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