|
| xiiHybridString (xiiAllocatorBase *pAllocator) |
|
| xiiHybridString (const xiiHybridString< Size, AllocatorWrapper > &other) |
|
| xiiHybridString (const xiiHybridStringBase< Size > &other) |
|
| xiiHybridString (const char *rhs) |
|
| xiiHybridString (const wchar_t *rhs) |
|
| xiiHybridString (const xiiStringView &rhs) |
|
| xiiHybridString (const xiiStringBuilder &rhs) |
|
| xiiHybridString (xiiStringBuilder &&rhs) |
|
| xiiHybridString (xiiHybridString< Size, AllocatorWrapper > &&other) |
|
| xiiHybridString (xiiHybridStringBase< Size > &&other) |
|
void | operator= (const xiiHybridString< Size, AllocatorWrapper > &rhs) |
|
void | operator= (const xiiHybridStringBase< Size > &rhs) |
|
void | operator= (const char *szString) |
|
void | operator= (const wchar_t *pString) |
|
void | operator= (const xiiStringView &rhs) |
|
void | operator= (const xiiStringBuilder &rhs) |
|
void | operator= (xiiStringBuilder &&rhs) |
|
void | operator= (xiiHybridString< Size, AllocatorWrapper > &&rhs) |
|
void | operator= (xiiHybridStringBase< Size > &&rhs) |
|
void | Clear () |
| Resets this string to an empty string.
|
|
const char * | GetData () const |
| Returns a pointer to the internal Utf8 string.
|
|
xiiUInt32 | GetElementCount () const |
| Returns the amount of bytes that this string takes (excluding the '\0' terminator).
|
|
xiiUInt32 | GetCharacterCount () const |
| Returns the number of characters in this string. Might be less than GetElementCount, if it contains Utf8 multi-byte characters.
|
|
xiiStringView | GetSubString (xiiUInt32 uiFirstCharacter, xiiUInt32 uiNumCharacters) const |
| Returns a view to a sub-string of this string, starting at character uiFirstCharacter, up until uiFirstCharacter + uiNumCharacters.
|
|
xiiStringView | GetFirst (xiiUInt32 uiNumCharacters) const |
| Returns a view to the sub-string containing the first uiNumCharacters characters of this string.
|
|
xiiStringView | GetLast (xiiUInt32 uiNumCharacters) const |
| Returns a view to the sub-string containing the last uiNumCharacters characters of this string.
|
|
void | ReadAll (xiiStreamReader &ref_stream) |
| Replaces the current string with the content from the stream. Reads the stream to its end.
|
|
xiiUInt64 | GetHeapMemoryUsage () const |
| Returns the amount of bytes that are currently allocated on the heap.
|
|
bool | IsEmpty () const |
| Returns whether the string is an empty string.
|
|
bool | StartsWith (xiiStringView sStartsWith) const |
| Returns true, if this string starts with the given string.
|
|
bool | StartsWith_NoCase (xiiStringView sStartsWith) const |
| Returns true, if this string starts with the given string. Case insensitive.
|
|
bool | EndsWith (xiiStringView sEndsWith) const |
| Returns true, if this string ends with the given string.
|
|
bool | EndsWith_NoCase (xiiStringView sEndsWith) const |
| Returns true, if this string ends with the given string. Case insensitive.
|
|
const char * | FindSubString (xiiStringView sStringToFind, const char *szStartSearchAt=nullptr) const |
|
const char * | FindSubString_NoCase (xiiStringView sStringToFind, const char *szStartSearchAt=nullptr) const |
|
const char * | FindLastSubString (xiiStringView sStringToFind, const char *szStartSearchAt=nullptr) const |
|
const char * | FindLastSubString_NoCase (xiiStringView sStringToFind, const char *szStartSearchAt=nullptr) const |
|
const char * | FindWholeWord (const char *szSearchFor, xiiStringUtils::XII_CHARACTER_FILTER isDelimiterCB, const char *szStartSearchAt=nullptr) const |
|
const char * | FindWholeWord_NoCase (const char *szSearchFor, xiiStringUtils::XII_CHARACTER_FILTER isDelimiterCB, const char *szStartSearchAt=nullptr) const |
|
xiiInt32 | Compare (xiiStringView sOther) const |
| Compares this string with the other one. Returns 0 for equality, -1 if this string is 'smaller', 1 otherwise.
|
|
xiiInt32 | CompareN (xiiStringView sOther, xiiUInt32 uiCharsToCompare) const |
|
xiiInt32 | Compare_NoCase (xiiStringView sOther) const |
| Compares this string with the other one. Returns 0 for equality, -1 if this string is 'smaller', 1 otherwise. Case insensitive.
|
|
xiiInt32 | CompareN_NoCase (xiiStringView sOther, xiiUInt32 uiCharsToCompare) const |
|
bool | IsEqual (xiiStringView sOther) const |
| Compares this string with the other string for equality.
|
|
bool | IsEqualN (xiiStringView sOther, xiiUInt32 uiCharsToCompare) const |
| Compares up to a given number of characters of this string with the other string for equality. Case insensitive.
|
|
bool | IsEqual_NoCase (xiiStringView sOther) const |
| Compares this string with the other string for equality.
|
|
bool | IsEqualN_NoCase (xiiStringView sOther, xiiUInt32 uiCharsToCompare) const |
| Compares up to a given number of characters of this string with the other string for equality. Case insensitive.
|
|
const char * | ComputeCharacterPosition (xiiUInt32 uiCharacterIndex) const |
| Computes the pointer to the n-th character in the string. This is a linear search from the start.
|
|
iterator | GetIteratorFront () const |
| Returns an iterator to this string, which points to the very first character.
|
|
reverse_iterator | GetIteratorBack () const |
| Returns an iterator to this string, which points to the very last character (NOT the end).
|
|
| operator xiiStringView () const |
| Returns a string view to this string's data.
|
|
xiiStringView | GetView () const |
| Returns a string view to this string's data.
|
|
XII_ALWAYS_INLINE | operator const char * () const |
| Returns a pointer to the internal Utf8 string.
|
|
void | Split (bool bReturnEmptyStrings, Container &ref_output, const char *szSeparator1, const char *szSeparator2=nullptr, const char *szSeparator3=nullptr, const char *szSeparator4=nullptr, const char *szSeparator5=nullptr, const char *szSeparator6=nullptr) const |
| Fills the given container with xiiStringView's which represent each found substring. If bReturnEmptyStrings is true, even empty strings between separators are returned. Output must be a container that stores xiiStringView's and provides the functions 'Clear' and 'Append'. szSeparator1 to szSeparator6 are strings which act as separators and indicate where to split the string. This string itself will not be modified.
|
|
bool | HasAnyExtension () const |
| Checks whether the given path has any file extension.
|
|
bool | HasExtension (xiiStringView sExtension) const |
| Checks whether the given path ends with the given extension. szExtension should start with a '.' for performance reasons, but it will work without a '.' too.
|
|
xiiStringView | GetFileExtension (bool bFullExtension=false) const |
| Returns the file extension of the given path. Will be empty, if the path does not end with a proper extension.
|
|
xiiStringView | GetFileName () const |
| Returns the file name of a path, excluding the path and extension.
|
|
xiiStringView | GetFileNameAndExtension () const |
| Returns the substring that represents the file name including the file extension.
|
|
xiiStringView | GetFileDirectory () const |
| Returns the directory of the given file, which is the substring up to the last path separator.
|
|
bool | IsAbsolutePath () const |
| Returns true, if the given path represents an absolute path on the current OS.
|
|
bool | IsRelativePath () const |
| Returns true, if the given path represents a relative path on the current OS.
|
|
bool | IsRootedPath () const |
| Returns true, if the given path represents a 'rooted' path. See xiiFileSystem for details.
|
|
xiiStringView | GetRootedPathRootName () const |
| Extracts the root name from a rooted path.
|
|
template<xiiUInt16 Size, typename AllocatorWrapper = xiiDefaultAllocatorWrapper>
struct xiiHybridString< Size, AllocatorWrapper >
- See also
- xiiHybridStringBase