![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Core class that represents a string. More...
Public Member Functions | |
| String () | |
| Constructs a String object by default. | |
| String (char character) | |
| Constructs a String object with a character. More... | |
| String (std::size_t rep, char character) | |
| Constructs a String object with multiple times the same character. More... | |
| String (std::size_t rep, const char *string) | |
| Constructs a String object with multiple times the same string. More... | |
| String (std::size_t rep, const char *string, std::size_t length) | |
| Constructs a String object with multiple times the same string. More... | |
| String (std::size_t rep, const String &string) | |
| Constructs a String object with multiple times the same string. More... | |
| String (const char *string) | |
| Constructs a String object with a "C string". More... | |
| String (const char *string, std::size_t length) | |
| Constructs a String object with a "C string". More... | |
| String (const std::string &string) | |
| Constructs a String object which is a copy of another. More... | |
| String (const String &string)=default | |
| String (String &&string) noexcept=default | |
| String & | Append (char character) |
| Appends the character to the string. More... | |
| String & | Append (const char *string) |
| Appends the "C string" to the string. More... | |
| String & | Append (const char *string, std::size_t length) |
| Appends the "C string" to the string. More... | |
| String & | Append (const String &string) |
| Appends the string to the string. More... | |
| void | Clear (bool keepBuffer=false) |
| Clears the content of the string. More... | |
| bool | Contains (char character, std::intmax_t start=0, UInt32 flags=None) const |
| bool | Contains (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| bool | Contains (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| unsigned int | Count (char character, std::intmax_t start=0, UInt32 flags=None) const |
| Counts the number of occurrences in the string. More... | |
| unsigned int | Count (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| Counts the number of occurrences in the string. More... | |
| unsigned int | Count (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| Counts the number of occurrences in the string. More... | |
| unsigned int | CountAny (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| Counts the number of occurrences of any characters in the list in the string. More... | |
| unsigned int | CountAny (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| Counts the number of occurrences of any characters in the list in the string. More... | |
| bool | EndsWith (char character, UInt32 flags=None) const |
| Checks whether the string ends with the character. More... | |
| bool | EndsWith (const char *string, UInt32 flags=None) const |
| Checks whether the string ends with the "C string". More... | |
| bool | EndsWith (const char *string, std::size_t length, UInt32 flags=None) const |
| Checks whether the string ends with the "C string". More... | |
| bool | EndsWith (const String &string, UInt32 flags=None) const |
| Checks whether the string ends with the string. More... | |
| std::size_t | Find (char character, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first index of the character in the string. More... | |
| std::size_t | Find (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first index of the "C string" in the string. More... | |
| std::size_t | Find (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first index of the string in the string. More... | |
| std::size_t | FindAny (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first index of any characters in the list in the string. More... | |
| std::size_t | FindAny (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first index of any characters in the list in the string. More... | |
| std::size_t | FindLast (char character, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last index of the character in the string. More... | |
| std::size_t | FindLast (const char *string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last index of the "C string" in the string. More... | |
| std::size_t | FindLast (const String &string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last index of the string in the string. More... | |
| std::size_t | FindLastAny (const char *string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last index of any characters in the list in the string. More... | |
| std::size_t | FindLastAny (const String &string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last index of any characters in the list in the string. More... | |
| std::size_t | FindLastWord (const char *string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last word in the string. More... | |
| std::size_t | FindLastWord (const String &string, std::intmax_t start=-1, UInt32 flags=None) const |
| Finds the last word in the string. More... | |
| std::size_t | FindWord (const char *string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first word in the string. More... | |
| std::size_t | FindWord (const String &string, std::intmax_t start=0, UInt32 flags=None) const |
| Finds the first word in the string. More... | |
| char * | GetBuffer () |
| Gets the raw buffer. More... | |
| std::size_t | GetCapacity () const |
| Gets the capacity of the string. More... | |
| std::size_t | GetCharacterPosition (std::size_t characterIndex) const |
| Gets the index where a character begin. More... | |
| const char * | GetConstBuffer () const |
| Gets the raw buffer. More... | |
| std::size_t | GetLength () const |
| Gets the length of the string. More... | |
| std::size_t | GetSize () const |
| Gets the size of the string. More... | |
| std::string | GetUtf8String () const |
| Gets the std::string corresponding. More... | |
| std::u16string | GetUtf16String () const |
| Gets the std::string corresponding. More... | |
| std::u32string | GetUtf32String () const |
| Gets the std::string corresponding. More... | |
| std::wstring | GetWideString () const |
| Gets the std::wstring corresponding. More... | |
| String | GetWord (unsigned int index, UInt32 flags=None) const |
| Gets the word until next separator. More... | |
| std::size_t | GetWordPosition (unsigned int index, UInt32 flags=None) const |
| Gets the word position. More... | |
| String & | Insert (std::intmax_t pos, char character) |
| Inserts the character into the string. More... | |
| String & | Insert (std::intmax_t pos, const char *string) |
| Inserts the "C string" into the string. More... | |
| String & | Insert (std::intmax_t pos, const char *string, std::size_t length) |
| Inserts the "C string" into the string. More... | |
| String & | Insert (std::intmax_t pos, const String &string) |
| Inserts the string into the string. More... | |
| bool | IsEmpty () const |
| Checks whether the string is empty. More... | |
| bool | IsNull () const |
| Checks whether the string is null. More... | |
| bool | IsNumber (UInt8 radix=10, UInt32 flags=CaseInsensitive) const |
| Checks whether the string is a number. More... | |
| bool | Match (const char *pattern) const |
| Checks whether the string matches the pattern. More... | |
| bool | Match (const String &pattern) const |
| Checks whether the string matches the pattern. More... | |
| String & | Prepend (char character) |
| Prepends the character to the string. More... | |
| String & | Prepend (const char *string) |
| Prepends the "C string" to the string. More... | |
| String & | Prepend (const char *string, std::size_t length) |
| Prepends the "C string" to the string. More... | |
| String & | Prepend (const String &string) |
| Prepends the string to the string. More... | |
| unsigned int | Replace (char oldCharacter, char newCharacter, std::intmax_t start=0, UInt32 flags=None) |
| Replaces the old character by the new one. More... | |
| unsigned int | Replace (const char *oldString, const char *replaceString, std::intmax_t start=0, UInt32 flags=None) |
| Replaces the old "C string" by the new one. More... | |
| unsigned int | Replace (const char *oldString, std::size_t oldLength, const char *replaceString, std::size_t replaceLength, std::intmax_t start=0, UInt32 flags=None) |
| Replaces the old "C string" by the new one. More... | |
| unsigned int | Replace (const String &oldString, const String &replaceString, std::intmax_t start=0, UInt32 flags=None) |
| Replaces the old string by the new one. More... | |
| unsigned int | ReplaceAny (const char *oldCharacters, char replaceCharacter, std::intmax_t start=0, UInt32 flags=None) |
| Replaces the old characters in the list by the new one. More... | |
| void | Reserve (std::size_t bufferSize) |
| Reserves enough memory for the buffer size. More... | |
| String & | Resize (std::intmax_t size, UInt32 flags=None) |
| Resizes the string. More... | |
| String | Resized (std::intmax_t size, UInt32 flags=None) const |
| Resize a copy of the string. More... | |
| String & | Reverse () |
| Reverses the string. More... | |
| String | Reversed () const |
| Reverses a copy of the string. More... | |
| String & | Set (char character) |
| Sets the string to the character. More... | |
| String & | Set (std::size_t rep, char character) |
| Sets the string with multiple times the same character. More... | |
| String & | Set (std::size_t rep, const char *string) |
| Sets the string with multiple times the same string. More... | |
| String & | Set (std::size_t rep, const char *string, std::size_t length) |
| Sets the string with multiple times the same string. More... | |
| String & | Set (std::size_t rep, const String &string) |
| Sets the string with multiple times the same string. More... | |
| String & | Set (const char *string) |
| Sets the string with other "C string". More... | |
| String & | Set (const char *string, std::size_t length) |
| Sets the string with other "C string". More... | |
| String & | Set (const std::string &string) |
| Sets the string with a std::string. More... | |
| String & | Set (const String &string) |
| Sets the string with other string. More... | |
| String & | Set (String &&string) noexcept |
| Sets the string by move semantic. More... | |
| String | Simplified (UInt32 flags=None) const |
| Simplifies a copy of the string. More... | |
| String & | Simplify (UInt32 flags=None) |
| Simplifies the string. More... | |
| unsigned int | Split (std::vector< String > &result, char separation=' ', std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| unsigned int | Split (std::vector< String > &result, const char *separation, std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| unsigned int | Split (std::vector< String > &result, const char *separation, std::size_t length, std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| unsigned int | Split (std::vector< String > &result, const String &separation, std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| unsigned int | SplitAny (std::vector< String > &result, const char *separations, std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| unsigned int | SplitAny (std::vector< String > &result, const String &separations, std::intmax_t start=0, UInt32 flags=None) const |
| Splits the string into others. More... | |
| bool | StartsWith (char character, UInt32 flags=None) const |
| Checks whether the string begins with the character. More... | |
| bool | StartsWith (const char *string, UInt32 flags=None) const |
| Checks whether the string begins with the "C string". More... | |
| bool | StartsWith (const String &string, UInt32 flags=None) const |
| Checks whether the string begins with the string. More... | |
| String | SubString (std::intmax_t startPos, std::intmax_t endPos=-1) const |
| Returns a sub string of the string. More... | |
| String | SubStringFrom (char character, std::intmax_t startPos=0, bool fromLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string from a character. More... | |
| String | SubStringFrom (const char *string, std::intmax_t startPos=0, bool fromLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string from a string. More... | |
| String | SubStringFrom (const char *string, std::size_t length, std::intmax_t startPos=0, bool fromLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string from a string. More... | |
| String | SubStringFrom (const String &string, std::intmax_t startPos=0, bool fromLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string from a string. More... | |
| String | SubStringTo (char character, std::intmax_t startPos=0, bool toLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string up to a character. More... | |
| String | SubStringTo (const char *string, std::intmax_t startPos=0, bool toLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string up to a string. More... | |
| String | SubStringTo (const char *string, std::size_t length, std::intmax_t startPos=0, bool toLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string up to a string. More... | |
| String | SubStringTo (const String &string, std::intmax_t startPos=0, bool toLast=false, bool include=false, UInt32 flags=None) const |
| Returns a sub string of the string up to a string. More... | |
| void | Swap (String &str) |
| Swaps the content with the other string. More... | |
| bool | ToBool (bool *value, UInt32 flags=None) const |
| Converts the string to boolean. More... | |
| bool | ToDouble (double *value) const |
| Converts the string to double. More... | |
| bool | ToInteger (long long *value, UInt8 radix=10) const |
| Converts the string to integer. More... | |
| String | ToLower (UInt32 flags=None) const |
| Converts the string to lower. More... | |
| String | ToUpper (UInt32 flags=None) const |
| Converts the string to upper. More... | |
| String & | Trim (UInt32 flags=None) |
| Trims the string. More... | |
| String & | Trim (char character, UInt32 flags=None) |
| Trims the string from a character. More... | |
| String | Trimmed (UInt32 flags=None) const |
| Trims a copy of the string. More... | |
| String | Trimmed (char character, UInt32 flags=None) const |
| Trims a copy of the string from a character. More... | |
| char * | begin () |
| Returns an iterator pointing to the beginning of the string. More... | |
| const char * | begin () const |
| Returns an iterator pointing to the beginning of the string. More... | |
| char * | end () |
| Returns an iterator pointing to the end of the string. More... | |
| const char * | end () const |
| Returns an iterator pointing to the end of the string. More... | |
| void | push_front (char c) |
| Pushed the character to the front of the string. More... | |
| void | push_back (char c) |
| Pushed the character to the back of the string. More... | |
| operator std::string () const | |
| Converts the string to std::string. More... | |
| char & | operator[] (std::size_t pos) |
| Gets the ith character in the string. More... | |
| char | operator[] (std::size_t pos) const |
| Gets the ith character in the string. More... | |
| String & | operator= (char character) |
| Assigns the string to the character. More... | |
| String & | operator= (const char *string) |
| Assigns the string with other "C string". More... | |
| String & | operator= (const std::string &string) |
| Assigns the string with a std::string. More... | |
| String & | operator= (const String &string) |
| Assigns the string with other string. More... | |
| String & | operator= (String &&string) noexcept |
| Assigns the string by move semantic. More... | |
| String | operator+ (char character) const |
| Concatenates the character to the string. More... | |
| String | operator+ (const char *string) const |
| Concatenates the "C string" to the string. More... | |
| String | operator+ (const std::string &string) const |
| Concatenates the std::string to the string. More... | |
| String | operator+ (const String &string) const |
| Concatenates the string to the string. More... | |
| String & | operator+= (char character) |
| Concatenates the character to this string. More... | |
| String & | operator+= (const char *string) |
| Concatenates the "C string" to this string. More... | |
| String & | operator+= (const std::string &string) |
| Concatenates the std::string to this string. More... | |
| String & | operator+= (const String &string) |
| Concatenates the string to this string. More... | |
| bool | operator== (char character) const |
| Checks whether the string is equal to the character. More... | |
| bool | operator== (const char *string) const |
| Checks whether the string is equal to the "C string". More... | |
| bool | operator== (const std::string &string) const |
| Checks whether the string is equal to the std::string. More... | |
| bool | operator!= (char character) const |
| Checks whether the string is equal to the character. More... | |
| bool | operator!= (const char *string) const |
| Checks whether the string is equal to the "C string". More... | |
| bool | operator!= (const std::string &string) const |
| Checks whether the string is equal to the std::string. More... | |
| bool | operator< (char character) const |
| Checks whether the string is less than the character. More... | |
| bool | operator< (const char *string) const |
| Checks whether the string is less than the "C string". More... | |
| bool | operator< (const std::string &string) const |
| Checks whether the string is less than the std::string. More... | |
| bool | operator<= (char character) const |
| Checks whether the string is less or equal than the character. More... | |
| bool | operator<= (const char *string) const |
| Checks whether the string is less or equal than the "C string". More... | |
| bool | operator<= (const std::string &string) const |
| Checks whether the string is less or equal than the std::string. More... | |
| bool | operator> (char character) const |
| Checks whether the string is greather than the character. More... | |
| bool | operator> (const char *string) const |
| Checks whether the string is greather than the "C string". More... | |
| bool | operator> (const std::string &string) const |
| Checks whether the string is greather than the std::string. More... | |
| bool | operator>= (char character) const |
| Checks whether the string is greather or equal than the character. More... | |
| bool | operator>= (const char *string) const |
| Checks whether the string is greather or equal than the "C string". More... | |
| bool | operator>= (const std::string &string) const |
| Checks whether the string is greather or equal than the std::string. More... | |
Static Public Member Functions | |
| static String | Boolean (bool boolean) |
| Converts the boolean to string. More... | |
| static int | Compare (const String &first, const String &second) |
| Lexicographically compares the string. More... | |
| static String | Format (const char *format,...) |
| Build a string using a format and returns it. More... | |
| static String | FormatVA (const char *format, va_list arg) |
| Build a string using a format and returns it. More... | |
| static String | Number (float number) |
| Converts the number to string. More... | |
| static String | Number (double number) |
| Converts the number to string. More... | |
| static String | Number (long double number) |
| Converts the number to string. More... | |
| static String | Number (signed char number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (unsigned char number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (short number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (unsigned short number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (int number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (unsigned int number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (long number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (unsigned long number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (long long number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Number (unsigned long long number, UInt8 radix=10) |
| Converts the number to string. More... | |
| static String | Pointer (const void *ptr) |
| Converts the pointer to string. More... | |
| static String | Unicode (char32_t character) |
| Converts the unicode point to string. More... | |
| static String | Unicode (const char *u8String) |
| Converts the unicode "C string" to string. More... | |
| static String | Unicode (const char16_t *u16String) |
| Converts the unicode "C string" to string. More... | |
| static String | Unicode (const char32_t *u32String) |
| Converts the unicode "C string" to string. More... | |
| static String | Unicode (const wchar_t *wString) |
| Converts the unicode "C string" to string. More... | |
Static Public Attributes | |
| static const std::size_t | npos |
Friends | |
| NAZARA_CORE_API friend std::istream & | operator>> (std::istream &in, String &string) |
| Inputs the stream into the string. More... | |
| NAZARA_CORE_API friend std::ostream & | operator<< (std::ostream &out, const String &string) |
| Output operator. More... | |
| NAZARA_CORE_API friend String | operator+ (char character, const String &string) |
| Concatenates the character to the string. More... | |
| NAZARA_CORE_API friend String | operator+ (const char *string, const String &nstring) |
| Concatenates the "C string" to the string. More... | |
| NAZARA_CORE_API friend String | operator+ (const std::string &string, const String &nstring) |
| Concatenates the std::string to the string. More... | |
| NAZARA_CORE_API friend bool | operator== (const String &first, const String &second) |
| Checks whether the first string is equal to the second string. More... | |
| NAZARA_CORE_API friend bool | operator!= (const String &first, const String &second) |
| Checks whether the first string is equal to the second string. More... | |
| NAZARA_CORE_API friend bool | operator< (const String &first, const String &second) |
| Checks whether the first string is less than the second string. More... | |
| NAZARA_CORE_API friend bool | operator<= (const String &first, const String &second) |
| Checks whether the first string is less or equal than the second string. More... | |
| NAZARA_CORE_API friend bool | operator> (const String &first, const String &second) |
| Checks whether the first string is greather than the second string. More... | |
| NAZARA_CORE_API friend bool | operator>= (const String &first, const String &second) |
| Checks whether the first string is greather or equal than the second string. More... | |
| NAZARA_CORE_API friend bool | operator== (char character, const String &nstring) |
| Checks whether the string is equal to the character. More... | |
| NAZARA_CORE_API friend bool | operator== (const char *string, const String &nstring) |
| Checks whether the string is equal to the "C string". More... | |
| NAZARA_CORE_API friend bool | operator== (const std::string &string, const String &nstring) |
| Checks whether the string is equal to the std::string. More... | |
| NAZARA_CORE_API friend bool | operator!= (char character, const String &nstring) |
| Checks whether the string is equal to the character. More... | |
| NAZARA_CORE_API friend bool | operator!= (const char *string, const String &nstring) |
| Checks whether the string is equal to the "C string". More... | |
| NAZARA_CORE_API friend bool | operator!= (const std::string &string, const String &nstring) |
| Checks whether the string is equal to the std::string. More... | |
| NAZARA_CORE_API friend bool | operator< (char character, const String &nstring) |
| Checks whether the string is less than the character. More... | |
| NAZARA_CORE_API friend bool | operator< (const char *string, const String &nstring) |
| Checks whether the string is less than the "C string". More... | |
| NAZARA_CORE_API friend bool | operator< (const std::string &string, const String &nstring) |
| Checks whether the string is less than the std::string. More... | |
| NAZARA_CORE_API friend bool | operator<= (char character, const String &nstring) |
| Checks whether the string is less or equal than the character. More... | |
| NAZARA_CORE_API friend bool | operator<= (const char *string, const String &nstring) |
| Checks whether the string is less or equal than the "C string". More... | |
| NAZARA_CORE_API friend bool | operator<= (const std::string &string, const String &nstring) |
| Checks whether the string is less or equal than the std::string. More... | |
| NAZARA_CORE_API friend bool | operator> (char character, const String &nstring) |
| Checks whether the string is greather than the character. More... | |
| NAZARA_CORE_API friend bool | operator> (const char *string, const String &nstring) |
| Checks whether the string is greather than the "C string". More... | |
| NAZARA_CORE_API friend bool | operator> (const std::string &string, const String &nstring) |
| Checks whether the string is greather than the std::string. More... | |
| NAZARA_CORE_API friend bool | operator>= (char character, const String &nstring) |
| Checks whether the string is greather or equal than the character. More... | |
| NAZARA_CORE_API friend bool | operator>= (const char *string, const String &nstring) |
| Checks whether the string is greather or equal than the "C string". More... | |
| NAZARA_CORE_API friend bool | operator>= (const std::string &string, const String &nstring) |
| Checks whether the string is greather or equal than the std::string. More... | |
Core class that represents a string.
|
explicit |
Constructs a String object with a character.
| character | Single character |
| Nz::String::String | ( | std::size_t | rep, |
| char | character | ||
| ) |
Constructs a String object with multiple times the same character.
| rep | Number of repetitions of the character |
| character | Single character |
| Nz::String::String | ( | std::size_t | rep, |
| const char * | string | ||
| ) |
| Nz::String::String | ( | std::size_t | rep, |
| const char * | string, | ||
| std::size_t | length | ||
| ) |
| Nz::String::String | ( | std::size_t | rep, |
| const String & | string | ||
| ) |
| Nz::String::String | ( | const char * | string | ) |
| Nz::String::String | ( | const char * | string, |
| std::size_t | length | ||
| ) |
| Nz::String::String | ( | const std::string & | string | ) |
| String & Nz::String::Append | ( | char | character | ) |
Appends the character to the string.
| character | Single character |
| String & Nz::String::Append | ( | const char * | string | ) |
| String & Nz::String::Append | ( | const char * | string, |
| std::size_t | length | ||
| ) |
| char * Nz::String::begin | ( | ) |
Returns an iterator pointing to the beginning of the string.
| const char * Nz::String::begin | ( | ) | const |
Returns an iterator pointing to the beginning of the string.
|
static |
Converts the boolean to string.
| boolean | Boolean value |
| void Nz::String::Clear | ( | bool | keepBuffer = false | ) |
Clears the content of the string.
| keepBuffer | Should the buffer be kept |
Lexicographically compares the string.
| first | First string to use for comparison |
| second | Second string to use for comparison |
| bool Nz::String::Contains | ( | char | character, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string contains the character
| character | Single character |
| start | Index to begin the research |
| flags | Flag for the look up |
| bool Nz::String::Contains | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
| bool Nz::String::Contains | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
| unsigned int Nz::String::Count | ( | char | character, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Counts the number of occurrences in the string.
| character | Single character |
| start | Index to begin the research |
| flags | Flag for the look up |
| unsigned int Nz::String::Count | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Counts the number of occurrences in the string.
| string | String to count |
| start | Index to begin the research |
| flags | Flag for the look up |
| unsigned int Nz::String::Count | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Counts the number of occurrences in the string.
| string | String to count |
| start | Index to begin the research |
| flags | Flag for the look up |
| unsigned int Nz::String::CountAny | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Counts the number of occurrences of any characters in the list in the string.
| string | String to match |
| start | Index to begin the research |
| flags | Flag for the look up |
| unsigned int Nz::String::CountAny | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Counts the number of occurrences of any characters in the list in the string.
| string | String to match |
| start | Index to begin the research |
| flags | Flag for the look up |
| char * Nz::String::end | ( | ) |
Returns an iterator pointing to the end of the string.
| const char * Nz::String::end | ( | ) | const |
Returns an iterator pointing to the end of the string.
| bool Nz::String::EndsWith | ( | char | character, |
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string ends with the character.
| character | Single character |
| flags | Flag for the look up |
| bool Nz::String::EndsWith | ( | const char * | string, |
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string ends with the "C string".
| string | String to match |
| flags | Flag for the look up |
| bool Nz::String::EndsWith | ( | const char * | string, |
| std::size_t | length, | ||
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string ends with the "C string".
| string | String to match |
| length | Size of the string |
| flags | Flag for the look up |
| bool Nz::String::EndsWith | ( | const String & | string, |
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string ends with the string.
| string | String to match |
| flags | Flag for the look up |
| std::size_t Nz::String::Find | ( | char | character, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first index of the character in the string.
| character | Single character |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::Find | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first index of the "C string" in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::Find | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first index of the string in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindAny | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first index of any characters in the list in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindAny | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first index of any characters in the list in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindLast | ( | char | character, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last index of the character in the string.
| character | Single character |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindLast | ( | const char * | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last index of the "C string" in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 1.FindLast#3 (Size of the pattern unknown)
| std::size_t Nz::String::FindLast | ( | const String & | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last index of the string in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 1.FindLast#3 (Iterator non-adapted)
Algo 1.FindLast#4 (Size of the pattern unknown)
Algo 1.FindLast#4 (Size of the pattern known)
| std::size_t Nz::String::FindLastAny | ( | const char * | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last index of any characters in the list in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindLastAny | ( | const String & | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last index of any characters in the list in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::FindLastWord | ( | const char * | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last word in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 2.FindLastWord#1 (Size of the pattern unknown)
| std::size_t Nz::String::FindLastWord | ( | const String & | string, |
| std::intmax_t | start = -1, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the last word in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 2.FindLastWord#2 (Size of the pattern known)
| std::size_t Nz::String::FindWord | ( | const char * | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first word in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 3.FindWord#3 (Size of the pattern unknown)
| std::size_t Nz::String::FindWord | ( | const String & | string, |
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Finds the first word in the string.
| string | String to match |
| start | Index to begin the search |
| flags | Flag for the look up |
Algo 3.FindWord#3 (Iterator too slow for #2)
Algo 3.FindWord#2 (Size of the pattern known)
|
inlinestatic |
Build a string using a format and returns it.
| format | String format |
| ... | Format arguments |
|
static |
Build a string using a format and returns it.
| format | String format |
| args | Format arguments |
| char * Nz::String::GetBuffer | ( | ) |
Gets the raw buffer.
| std::size_t Nz::String::GetCapacity | ( | ) | const |
Gets the capacity of the string.
| std::size_t Nz::String::GetCharacterPosition | ( | std::size_t | characterIndex | ) | const |
Gets the index where a character begin.
Iterate through the string to find the starting position of a specific character index This is useful because non-ASCII characters may be encoded using multiple bytes.
| characterIndex | Index of the character to search for |
| const char * Nz::String::GetConstBuffer | ( | ) | const |
Gets the raw buffer.
| std::size_t Nz::String::GetLength | ( | ) | const |
Gets the length of the string.
| std::size_t Nz::String::GetSize | ( | ) | const |
Gets the size of the string.
| std::u16string Nz::String::GetUtf16String | ( | ) | const |
Gets the std::string corresponding.
| std::u32string Nz::String::GetUtf32String | ( | ) | const |
Gets the std::string corresponding.
| std::string Nz::String::GetUtf8String | ( | ) | const |
Gets the std::string corresponding.
| std::wstring Nz::String::GetWideString | ( | ) | const |
Gets the std::wstring corresponding.
| String Nz::String::GetWord | ( | unsigned int | index, |
| UInt32 | flags = None |
||
| ) | const |
Gets the word until next separator.
| start | Index to begin the search |
| flags | Flag for the look up |
| std::size_t Nz::String::GetWordPosition | ( | unsigned int | index, |
| UInt32 | flags = None |
||
| ) | const |
Gets the word position.
| start | Index to begin the search |
| flags | Flag for the look up |
| String & Nz::String::Insert | ( | std::intmax_t | pos, |
| char | character | ||
| ) |
Inserts the character into the string.
| pos | Position in the string |
| character | Single character |
| String & Nz::String::Insert | ( | std::intmax_t | pos, |
| const char * | string | ||
| ) |
Inserts the "C string" into the string.
| pos | Position in the string |
| string | String to add |
| String & Nz::String::Insert | ( | std::intmax_t | pos, |
| const char * | string, | ||
| std::size_t | length | ||
| ) |
Inserts the "C string" into the string.
| pos | Position in the string |
| string | String to add |
| length | Size of the string |
Inserts the string into the string.
| pos | Position in the string |
| string | String to add |
| bool Nz::String::IsEmpty | ( | ) | const |
Checks whether the string is empty.
| bool Nz::String::IsNull | ( | ) | const |
Checks whether the string is null.
| bool Nz::String::IsNumber | ( | UInt8 | base = 10, |
| UInt32 | flags = CaseInsensitive |
||
| ) | const |
Checks whether the string is a number.
| base | Base of the number |
| flags | Flag for the look up |
| bool Nz::String::Match | ( | const char * | pattern | ) | const |
Checks whether the string matches the pattern.
| pattern | Pattern to search |
| bool Nz::String::Match | ( | const String & | pattern | ) | const |
Checks whether the string matches the pattern.
| pattern | Pattern to search |
|
static |
Converts the number to string.
| number | Float value |
|
static |
Converts the number to string.
| number | Double value |
|
static |
Converts the number to string.
| number | Long double value |
|
static |
Converts the number to string.
| number | Signed char value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Unsigned char value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Short value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Unsigned short value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Int value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Unsigned int value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Long value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Unsigned long value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Long long value |
| radix | Base of the number |
|
static |
Converts the number to string.
| number | Unsigned long long value |
| radix | Base of the number |
| Nz::String::operator std::string | ( | ) | const |
Converts the string to std::string.
| bool Nz::String::operator!= | ( | char | character | ) | const |
Checks whether the string is equal to the character.
| character | Single character |
| bool Nz::String::operator!= | ( | const char * | string | ) | const |
Checks whether the string is equal to the "C string".
| string | String to compare |
| bool Nz::String::operator!= | ( | const std::string & | string | ) | const |
Checks whether the string is equal to the std::string.
| string | String to compare |
| String Nz::String::operator+ | ( | char | character | ) | const |
Concatenates the character to the string.
| character | Single character |
| String Nz::String::operator+ | ( | const char * | string | ) | const |
| String Nz::String::operator+ | ( | const std::string & | string | ) | const |
| String & Nz::String::operator+= | ( | char | character | ) |
Concatenates the character to this string.
| character | Single character |
| String & Nz::String::operator+= | ( | const char * | string | ) |
Concatenates the "C string" to this string.
| string | String to add |
| String & Nz::String::operator+= | ( | const std::string & | string | ) |
Concatenates the std::string to this string.
| string | String to add |
| bool Nz::String::operator< | ( | char | character | ) | const |
Checks whether the string is less than the character.
| character | Single character |
| bool Nz::String::operator< | ( | const char * | string | ) | const |
Checks whether the string is less than the "C string".
| string | String to compare |
| bool Nz::String::operator< | ( | const std::string & | string | ) | const |
Checks whether the string is less than the std::string.
| string | String to compare |
| bool Nz::String::operator<= | ( | char | character | ) | const |
Checks whether the string is less or equal than the character.
| character | Single character |
| bool Nz::String::operator<= | ( | const char * | string | ) | const |
Checks whether the string is less or equal than the "C string".
| string | String to compare |
| bool Nz::String::operator<= | ( | const std::string & | string | ) | const |
Checks whether the string is less or equal than the std::string.
| string | String to compare |
| String & Nz::String::operator= | ( | char | character | ) |
Assigns the string to the character.
| character | Single character |
| String & Nz::String::operator= | ( | const char * | string | ) |
Assigns the string with other "C string".
| string | String to copy |
| String & Nz::String::operator= | ( | const std::string & | string | ) |
| bool Nz::String::operator== | ( | char | character | ) | const |
Checks whether the string is equal to the character.
| character | Single character |
| bool Nz::String::operator== | ( | const char * | string | ) | const |
Checks whether the string is equal to the "C string".
| string | String to compare |
| bool Nz::String::operator== | ( | const std::string & | string | ) | const |
Checks whether the string is equal to the std::string.
| string | String to compare |
| bool Nz::String::operator> | ( | char | character | ) | const |
Checks whether the string is greather than the character.
| character | Single character |
| bool Nz::String::operator> | ( | const char * | string | ) | const |
Checks whether the string is greather than the "C string".
| string | String to compare |
| bool Nz::String::operator> | ( | const std::string & | string | ) | const |
Checks whether the string is greather than the std::string.
| string | String to compare |
| bool Nz::String::operator>= | ( | char | character | ) | const |
Checks whether the string is greather or equal than the character.
| character | Single character |
| bool Nz::String::operator>= | ( | const char * | string | ) | const |
Checks whether the string is greather or equal than the "C string".
| string | String to compare |
| bool Nz::String::operator>= | ( | const std::string & | string | ) | const |
Checks whether the string is greather or equal than the std::string.
| string | String to compare |
| char & Nz::String::operator[] | ( | std::size_t | pos | ) |
Gets the ith character in the string.
| pos | Index of the character |
| char Nz::String::operator[] | ( | std::size_t | pos | ) | const |
Gets the ith character in the string.
| pos | Index of the character |
|
static |
Converts the pointer to string.
| ptr | Pointer to represent |
| String & Nz::String::Prepend | ( | char | character | ) |
Prepends the character to the string.
| character | Single character |
| String & Nz::String::Prepend | ( | const char * | string | ) |
| String & Nz::String::Prepend | ( | const char * | string, |
| std::size_t | length | ||
| ) |
| void Nz::String::push_back | ( | char | c | ) |
| void Nz::String::push_front | ( | char | c | ) |
| unsigned int Nz::String::Replace | ( | char | oldCharacter, |
| char | newCharacter, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) |
Replaces the old character by the new one.
| oldCharacter | Pattern to find |
| newCharacter | Pattern to change for |
| start | Index to begin the search |
| flags | Flag for the look up |
| unsigned int Nz::String::Replace | ( | const char * | oldString, |
| const char * | replaceString, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) |
Replaces the old "C string" by the new one.
| oldCharacter | Pattern to find |
| newCharacter | Pattern to change for |
| start | Index to begin the search |
| flags | Flag for the look up |
| unsigned int Nz::String::Replace | ( | const char * | oldString, |
| std::size_t | oldLength, | ||
| const char * | replaceString, | ||
| std::size_t | replaceLength, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) |
Replaces the old "C string" by the new one.
| oldCharacter | Pattern to find |
| oldLength | Length of the old string |
| newCharacter | Pattern to change for |
| Length | of the new string |
| start | Index to begin the search |
| flags | Flag for the look up |
TODO: Replacement algorithm without changing the buffer (if replaceLength < oldLength)
Algo 4.Replace#2
| unsigned int Nz::String::Replace | ( | const String & | oldString, |
| const String & | replaceString, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) |
Replaces the old string by the new one.
| oldCharacter | Pattern to find |
| newCharacter | Pattern to change for |
| start | Index to begin the search |
| flags | Flag for the look up |
| unsigned int Nz::String::ReplaceAny | ( | const char * | oldCharacters, |
| char | replaceCharacter, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) |
Replaces the old characters in the list by the new one.
| oldCharacters | Pattern to find |
| newCharacter | Pattern to change for |
| start | Index to begin the search |
| flags | Flag for the look up |
FIXME: Does not handle UTF-8
| void Nz::String::Reserve | ( | std::size_t | bufferSize | ) |
Reserves enough memory for the buffer size.
| bufferSize | Size of the buffer to allocate |
| String & Nz::String::Resize | ( | std::intmax_t | size, |
| UInt32 | flags = None |
||
| ) |
Resizes the string.
| size | Target size |
| flags | Flag for the look up |
| String Nz::String::Resized | ( | std::intmax_t | size, |
| UInt32 | flags = None |
||
| ) | const |
Resize a copy of the string.
| size | Target size |
| flags | Flag for the look up |
| String & Nz::String::Reverse | ( | ) |
Reverses the string.
| String Nz::String::Reversed | ( | ) | const |
Reverses a copy of the string.
| String & Nz::String::Set | ( | char | character | ) |
Sets the string to the character.
| character | Single character |
| String & Nz::String::Set | ( | std::size_t | rep, |
| char | character | ||
| ) |
Sets the string with multiple times the same character.
| rep | Number of repetitions of the character |
| character | Single character |
| String & Nz::String::Set | ( | std::size_t | rep, |
| const char * | string | ||
| ) |
Sets the string with multiple times the same string.
| rep | Number of repetitions of the string |
| string | String to multiply |
| String & Nz::String::Set | ( | std::size_t | rep, |
| const char * | string, | ||
| std::size_t | length | ||
| ) |
Sets the string with multiple times the same string.
| rep | Number of repetitions of the string |
| string | String to multiply |
| length | Length of the string |
Sets the string with multiple times the same string.
| rep | Number of repetitions of the string |
| string | String to multiply |
| String & Nz::String::Set | ( | const char * | string | ) |
| String & Nz::String::Set | ( | const char * | string, |
| std::size_t | length | ||
| ) |
Sets the string with other "C string".
| string | String to represent |
| length | Length of the string |
| String & Nz::String::Set | ( | const std::string & | string | ) |
| String Nz::String::Simplified | ( | UInt32 | flags = None | ) | const |
Simplifies a copy of the string.
| flags | Flag for the look up |
| String & Nz::String::Simplify | ( | UInt32 | flags = None | ) |
Simplifies the string.
| flags | Flag for the look up |
| unsigned int Nz::String::Split | ( | std::vector< String > & | result, |
| char | separation = ' ', |
||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | Separation character |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| unsigned int Nz::String::Split | ( | std::vector< String > & | result, |
| const char * | separation, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | Separation string |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| unsigned int Nz::String::Split | ( | std::vector< String > & | result, |
| const char * | separation, | ||
| std::size_t | length, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | Separation String |
| length | Length of the string |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| unsigned int Nz::String::Split | ( | std::vector< String > & | result, |
| const String & | separation, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | Separation string |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| unsigned int Nz::String::SplitAny | ( | std::vector< String > & | result, |
| const char * | separations, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | List of characters of separation |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| unsigned int Nz::String::SplitAny | ( | std::vector< String > & | result, |
| const String & | separations, | ||
| std::intmax_t | start = 0, |
||
| UInt32 | flags = None |
||
| ) | const |
Splits the string into others.
| result | Resulting tokens |
| separation | List of characters of separation |
| start | Index for the beginning of the search |
| flags | Flag for the look up |
| bool Nz::String::StartsWith | ( | char | character, |
| UInt32 | flags = None |
||
| ) | const |
Checks whether the string begins with the character.
| character | Single character |
| flags | Flag for the look up |
| bool Nz::String::StartsWith | ( | const char * | string, |
| UInt32 | flags = None |
||
| ) | const |
| bool Nz::String::StartsWith | ( | const String & | string, |
| UInt32 | flags = None |
||
| ) | const |
| String Nz::String::SubString | ( | std::intmax_t | startPos, |
| std::intmax_t | endPos = -1 |
||
| ) | const |
Returns a sub string of the string.
| startPos | Index for the beginning of the search |
| endPos | Index for the end of the search |
| String Nz::String::SubStringFrom | ( | char | character, |
| std::intmax_t | startPos = 0, |
||
| bool | fromLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string from a character.
| charater | Pattern to find |
| startPos | Index for the beginning of the search |
| fromLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringFrom | ( | const char * | string, |
| std::intmax_t | startPos = 0, |
||
| bool | fromLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string from a string.
| string | Pattern to find |
| startPos | Index for the beginning of the search |
| fromLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringFrom | ( | const char * | string, |
| std::size_t | length, | ||
| std::intmax_t | startPos = 0, |
||
| bool | fromLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string from a string.
| string | Pattern to find |
| length | Size of the string |
| startPos | Index for the beginning of the search |
| fromLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringFrom | ( | const String & | string, |
| std::intmax_t | startPos = 0, |
||
| bool | fromLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string from a string.
| string | Pattern to find |
| startPos | Index for the beginning of the search |
| fromLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringTo | ( | char | character, |
| std::intmax_t | startPos = 0, |
||
| bool | toLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string up to a character.
| charater | Pattern to find |
| startPos | Index for the beginning of the search |
| toLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringTo | ( | const char * | string, |
| std::intmax_t | startPos = 0, |
||
| bool | toLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string up to a string.
| string | Pattern to find |
| startPos | Index for the beginning of the search |
| toLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringTo | ( | const char * | string, |
| std::size_t | length, | ||
| std::intmax_t | startPos = 0, |
||
| bool | toLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string up to a string.
| string | Pattern to find |
| length | Size of the string |
| startPos | Index for the beginning of the search |
| toLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| String Nz::String::SubStringTo | ( | const String & | string, |
| std::intmax_t | startPos = 0, |
||
| bool | toLast = false, |
||
| bool | include = false, |
||
| UInt32 | flags = None |
||
| ) | const |
Returns a sub string of the string up to a string.
| string | Pattern to find |
| startPos | Index for the beginning of the search |
| toLast | beginning by the end |
| include | Include the character |
| flags | Flag for the look up |
| void Nz::String::Swap | ( | String & | str | ) |
Swaps the content with the other string.
| str | Other string to swap with |
| bool Nz::String::ToBool | ( | bool * | value, |
| UInt32 | flags = None |
||
| ) | const |
Converts the string to boolean.
| value | Boolean to convert to |
| flags | Flag for the look up |
| bool Nz::String::ToDouble | ( | double * | value | ) | const |
Converts the string to double.
| value | Double to convert to |
| flags | Flag for the look up |
| bool Nz::String::ToInteger | ( | long long * | value, |
| UInt8 | base = 10 |
||
| ) | const |
Converts the string to integer.
| value | Integer to convert to |
| flags | Flag for the look up |
| String Nz::String::ToLower | ( | UInt32 | flags = None | ) | const |
Converts the string to lower.
| flags | Flag for the look up |
| String Nz::String::ToUpper | ( | UInt32 | flags = None | ) | const |
Converts the string to upper.
| flags | Flag for the look up |
| String & Nz::String::Trim | ( | UInt32 | flags = None | ) |
Trims the string.
| flags | Flag for the look up |
| String & Nz::String::Trim | ( | char | character, |
| UInt32 | flags = None |
||
| ) |
Trims the string from a character.
| character | Character to suppress |
| flags | Flag for the look up |
| String Nz::String::Trimmed | ( | UInt32 | flags = None | ) | const |
Trims a copy of the string.
| flags | Flag for the look up |
| String Nz::String::Trimmed | ( | char | character, |
| UInt32 | flags = None |
||
| ) | const |
Trims a copy of the string from a character.
| character | Character to suppress |
| flags | Flag for the look up |
|
static |
|
static |
|
static |
|
static |
|
static |
|
friend |
Checks whether the string is equal to the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |
Checks whether the string is less than the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |
Output operator.
| out | The stream |
| str | The string to output |
|
friend |
Checks whether the string is less or equal than the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |
Checks whether the string is equal to the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |
Checks whether the string is greather than the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |
Checks whether the string is greather or equal than the character.
| character | Single character in left hand side |
| second | String to compare in right hand side |
|
friend |
|
friend |
|
friend |