Requires that the string is null-terminated. Prevents const qualified memory blocks from being manipulated. This struct should be used when fennec::string would make unnecessary dynamic buffers.
|
|
constexpr | wcstring () |
| | Default Constructor, initializes with nullptr.
|
| |
|
constexpr | wcstring (nullptr_t) |
| | Default Constructor, initializes with nullptr.
|
| |
| constexpr | wcstring (wchar_t *str, size_t n) |
| | Buffer Constructor, wraps the provided C-Style string.
|
| |
| template<size_t n> |
| constexpr | wcstring (wchar_t(&str)[n]) |
| | Buffer Constructor, wraps the provided C-Style string.
|
| |
| constexpr | wcstring (const wchar_t *str, size_t n) |
| | Const Buffer Constructor, wraps the provided C-Style string.
|
| |
| template<size_t n> |
| constexpr | wcstring (const wchar_t(&str)[n]) |
| | Buffer Constructor, wraps the provided C-Style string.
|
| |
| constexpr | wcstring (wcstring &&str) noexcept |
| | Move Constructor.
|
| |
| constexpr size_t | size () const |
| |
| constexpr size_t | capacity () const |
| |
| constexpr wchar_t & | operator[] (size_t i) |
| | Array Access Operator.
|
| |
| constexpr const wchar_t & | operator[] (size_t i) const |
| | Const-Array Access Operator.
|
| |
| constexpr wchar_t * | data () |
| | Data Access.
|
| |
| constexpr const wchar_t * | data () const |
| | Data Access.
|
| |
|
constexpr | operator const wchar_t * () const |
| | Implicit Dereference Cast.
|
| |
| constexpr size_t | length () const |
| |
| constexpr int | compare (const wcstring &str, size_t i=0, size_t n=npos) const |
| | String Comparison.
|
| |
| template<size_t n> |
| constexpr bool | operator== (const wchar_t(&str)[n]) const |
| | String Equality.
|
| |
| constexpr bool | operator== (const wcstring &str) const |
| | String Equality.
|
| |
| constexpr size_t | find (wchar_t c, size_t i=0) const |
| | Finds the index of the first occurrence of c in the string.
|
| |
| constexpr size_t | find (const wcstring &str, size_t i=0) const |
| | Finds the index of the first occurrence of str in the string.
|
| |
| constexpr size_t | rfind (char c, size_t i=npos) const |
| | Finds the index of the last occurrence of c in the string.
|
| |
| constexpr size_t | rfind (const wcstring &str, size_t i=npos) const |
| | Finds the index of the last occurrence of str in the string.
|
| |