|
The Pedigree Project 0.1
|
#include <StaticString.h>
Inheritance diagram for StaticString< N >:
Collaboration diagram for StaticString< N >:Public Member Functions | |
| StaticString () | |
| StaticString (const char *pSrc) | |
| StaticString (const char *pSrc, size_t len) | |
| StaticString (const String &str) | |
| template<unsigned int N2> | |
| StaticString (const StaticString< N2 > &src) | |
| operator const char * () const | |
| template<unsigned int N2> | |
| StaticString & | operator+= (const StaticString< N2 > &str) |
| template<typename T > | |
| StaticString & | operator+= (const T &i) |
| void | clear () |
| void | assign (const char *str, size_t len=0) |
| void | assign (const String &str) |
| template<unsigned int N2> | |
| void | assign (const StaticString< N2 > &other) |
| StaticString & | operator= (const char *str) |
| StaticString & | operator= (const String &str) |
| bool | operator== (const char *pStr) const |
| template<unsigned int N2> | |
| bool | operator== (const StaticString< N2 > &other) const |
| int | last (const char search) const |
| int | first (const char search) const |
| void | stripLast () |
| bool | contains (const char *other) const |
| template<unsigned int N2> | |
| bool | contains (const StaticString< N2 > &other) const |
| int | intValue (int nBase=0) const |
| uintptr_t | uintptrValue (int nBase=0) const |
| void | truncate (size_t len) |
| StaticString | left (int n) const |
| StaticString | right (int n) const |
| StaticString & | stripFirst (size_t n=1) |
| template<typename T > | |
| StaticString & | operator<< (const T &t) |
| void | append (char Char, size_t nLen=0, char c='0') |
| void | append (short nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (int nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (long nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (long long nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (unsigned char nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (unsigned short nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (unsigned int nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (unsigned long nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| void | append (unsigned long long nInt, size_t nRadix=10, size_t nLen=0, char c='0') |
| template<unsigned int size, typename T > | |
| void | appendInteger (T nInt, size_t nRadix, size_t nLen, char c) |
| void | append (const char *str, size_t nLen=0, char c=' ') |
| void | append (const String &str) |
| void | appendBytes (const char *bytes, size_t numBytes) |
| template<unsigned int N2> | |
| void | append (const StaticString< N2 > &str, size_t nLen=0, char c=' ') |
| void | pad (size_t nLen, char c=' ') |
| size_t | length () const |
| uint64_t | hash () const |
| void | allowHashing (bool computeNow=false) |
| void | disableHashing () |
Private Member Functions | |
| void | updateHash () |
| void | check () |
| bool | canAppend () const |
Static Private Member Functions | |
| static bool | contains (const char *a, const char *b, size_t alen, size_t blen) |
Private Attributes | |
| char | m_pData [N] |
| size_t | m_Length |
| uint64_t | m_Hash |
| bool | m_AllowHashes |
Derivative of StringBase that uses a statically allocated chunk of memory.
Definition at line 49 of file StaticString.h.
|
inline |
Default constructor.
Definition at line 54 of file StaticString.h.
|
inlineexplicit |
Creates a StaticString from a const char *. This creates a new copy of pSrc - pSrc can be safely deallocated afterwards.
Definition at line 65 of file StaticString.h.
|
inline |
Creates a StaticString from a const char * of a specific length. This creates a new copy of pSrc - pSrc can be safely deallocated afterwards.
Definition at line 74 of file StaticString.h.
|
inline |
Creates a StaticString from a String object.
Definition at line 79 of file StaticString.h.
|
inlineexplicit |
Copy constructor - creates a StaticString from another StaticString. Copies the memory associated with src.
Definition at line 88 of file StaticString.h.
|
inline |
Allow computing hashes for this StaticString object. Can immediately compute the hash of the string, which can be used to disable hashing when performing numerous operations on a StaticString and then enable at the end when modifications cease. This reduces the number of pointless hashes.
Definition at line 470 of file StaticString.h.
|
inline |
Definition at line 268 of file StaticString.h.
|
inline |
Definition at line 362 of file StaticString.h.
|
inline |
Definition at line 412 of file StaticString.h.
|
inline |
Definition at line 388 of file StaticString.h.
|
inline |
Definition at line 283 of file StaticString.h.
|
inline |
Definition at line 303 of file StaticString.h.
|
inline |
Definition at line 293 of file StaticString.h.
|
inline |
Definition at line 273 of file StaticString.h.
|
inline |
Definition at line 313 of file StaticString.h.
|
inline |
Definition at line 321 of file StaticString.h.
|
inline |
Definition at line 329 of file StaticString.h.
|
inline |
Definition at line 325 of file StaticString.h.
|
inline |
Definition at line 317 of file StaticString.h.
|
inline |
Definition at line 392 of file StaticString.h.
|
inline |
Definition at line 334 of file StaticString.h.
|
inline |
Definition at line 119 of file StaticString.h.
|
inline |
Definition at line 145 of file StaticString.h.
|
inline |
Definition at line 140 of file StaticString.h.
|
inlineprivate |
Definition at line 503 of file StaticString.h.
|
inlineprivate |
Definition at line 496 of file StaticString.h.
|
inline |
Definition at line 112 of file StaticString.h.
|
inlinestaticprivate |
Definition at line 483 of file StaticString.h.
|
inline |
Definition at line 199 of file StaticString.h.
|
inline |
Definition at line 204 of file StaticString.h.
|
inline |
Stop computing hashes for this StaticString object.
Definition at line 478 of file StaticString.h.
Referenced by Log::LogEntry::LogEntry().
Here is the caller graph for this function:
|
inline |
Definition at line 185 of file StaticString.h.
|
inline |
Definition at line 459 of file StaticString.h.
|
inline |
Definition at line 208 of file StaticString.h.
|
inline |
Definition at line 178 of file StaticString.h.
|
inline |
Definition at line 235 of file StaticString.h.
|
inline |
Definition at line 455 of file StaticString.h.
|
inline |
Definition at line 91 of file StaticString.h.
|
inline |
Definition at line 96 of file StaticString.h.
|
inline |
Definition at line 107 of file StaticString.h.
|
inline |
Definition at line 263 of file StaticString.h.
|
inline |
Definition at line 149 of file StaticString.h.
|
inline |
Definition at line 154 of file StaticString.h.
|
inline |
Definition at line 159 of file StaticString.h.
|
inline |
Definition at line 168 of file StaticString.h.
|
inline |
Definition at line 438 of file StaticString.h.
|
inline |
Definition at line 239 of file StaticString.h.
|
inline |
Definition at line 245 of file StaticString.h.
|
inline |
Definition at line 192 of file StaticString.h.
|
inline |
Definition at line 226 of file StaticString.h.
|
inline |
Definition at line 217 of file StaticString.h.
|
inlineprivate |
Definition at line 487 of file StaticString.h.
|
private |
Definition at line 515 of file StaticString.h.
|
private |
Definition at line 513 of file StaticString.h.
|
private |
Definition at line 512 of file StaticString.h.
|
private |
Our actual static data.
Definition at line 510 of file StaticString.h.