|
| | ConstantString (const char str[N]) |
| |
| virtual void | clear () noexcept override |
| |
| | String () |
| |
| | String (const char *s) |
| |
| | String (const char *s, size_t length) |
| |
| | String (const char *s, size_t length, bool unsafe) |
| |
| | String (const Cord &x) |
| |
| | String (const String &x) |
| |
| | String (const StringView &x) |
| |
| | String (String &&x) noexcept |
| |
| String & | operator= (String &&x) noexcept |
| |
| String & | operator= (const Cord &x) |
| |
| String & | operator= (const String &x) |
| |
| String & | operator= (const char *s)=delete |
| |
| | operator const char * () const |
| |
| | operator StringView () const |
| |
| String & | operator+= (const String &x) |
| |
| String & | operator+= (const char *s) |
| |
| bool | operator== (const String &s) const |
| |
| bool | operator== (const StringView &s) const |
| |
| bool | operator== (const char *s) const |
| |
| bool | compare (const char *s, size_t len) const |
| |
| template<size_t N> |
| bool | compare (const char(&s)[N]) const |
| |
| char | operator[] (size_t i) const |
| |
| const char * | cstr () const |
| |
| size_t | length () const |
| |
| size_t | size () const |
| |
| uint32_t | hash () const |
| |
| uint32_t | hash () |
| |
| size_t | nextCharacter (size_t c) const |
| |
| size_t | prevCharacter (size_t c) const |
| |
| void | lchomp () |
| |
| void | chomp () |
| |
| void | strip () |
| |
| void | lstrip () |
| |
| void | rstrip () |
| |
| void | ltrim (size_t n) |
| |
| void | rtrim (size_t n) |
| |
| String | split (size_t offset) |
| |
| void | split (size_t offset, String &back) |
| |
| Vector< String > | tokenise (char token) |
| |
| void | tokenise (char token, Vector< String > &output) const |
| |
| void | tokenise (char token, Vector< StringView > &output) const |
| |
| void | Format (const char *format,...) FORMAT(printf |
| |
| template<size_t N> |
| void void | assign (const char(&s)[N]) |
| |
| void | assign (const String &x) |
| |
| void | assign (const Cord &x) |
| |
| void | assign (const char *s, size_t len=0, bool unsafe=false) |
| |
| void | reserve (size_t size) |
| |
| void | downsize () |
| |
| bool | endswith (const char c) const |
| |
| bool | endswith (const String &s) const |
| |
| bool | endswith (const char *s, size_t len=0) const |
| |
| bool | startswith (const char c) const |
| |
| bool | startswith (const String &s) const |
| |
| bool | startswith (const char *s, size_t len=0) const |
| |
| ssize_t | find (const char c) const |
| |
| ssize_t | rfind (const char c) const |
| |
| String | copy () const |
| |
| StringView | view () const |
| |
template<size_t N>
class ConstantString< N >
Class for immmutable strings with values known at compile time.
- Todo:
- make String hashes more expressive so we can do a compile-time hash of these ConstantString objects and avoid the runtime computation.
Definition at line 257 of file String.h.