Aspose::Cells::U16String class
Contents
[
Hide
]U16String class
Represents the char16_t array class and ends with u’\0'.
class U16String
Methods
| Method | Description |
|---|---|
| CompareTo(const U16String& value) const | Compares this instance with a specified string object. |
| CompareTo(const U16String& value, bool ignoreCase) const | Compares this instance with a specified string object, ignoring or honoring their case. |
| EndsWith(const U16String& value) const | Determines whether the end of this string instance matches the specified string. |
| EndsWith(const U16String& value, bool ignoreCase) const | Determines whether the end of this string instance matches the specified string, ignoring or honoring their case. |
| GetData() const | Gets the address of the char16_t array in this vector. |
| GetLength() const | Gets the length of the char16_t array in this Vector. Excluding the trailing u’\0'. |
| IndexOf(const char16_t value) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const char16_t value, int32_t startIndex) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const char16_t value, int32_t startIndex, int32_t count) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const char16_t* value) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const U16String& value) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const U16String& value, int32_t startIndex) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const U16String& value, int32_t startIndex, int32_t count) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const U16String& value, bool ignoreCase) const | Returns the index of the first occurrence of the value in this. |
| IndexOf(const U16String& value, int32_t startIndex, int32_t count, bool ignoreCase) const | Returns the index of the first occurrence of the value in this. |
| IndexOfAny(const Vector <char16_t>& anyOf) const | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of characters. |
| IndexOfAny(const Vector <char16_t>& anyOf, int32_t startIndex) const | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of characters. |
| IndexOfAny(const Vector <char16_t>& anyOf, int32_t startIndex, int32_t count) const | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of characters. |
| Insert(int32_t startIndex, const U16String& str) const | Returns a new string in which a specified string is inserted at a specified index position in this instance. |
| IsEmpty() const | Checks whether the char16_t array is empty. |
| IsNull() const | Checks whether the object array is nullptr. |
| LastIndexOf(const char16_t value) const | Returns the index of the last occurrence of the value in this. |
| LastIndexOf(const char16_t value, int32_t startIndex) const | Returns the index of the last occurrence of the value in this. |
| LastIndexOf(const char16_t value, int32_t startIndex, int32_t count) const | Returns the index of the last occurrence of the value in this. |
| LastIndexOf(const U16String& value) const | Returns the index of the last occurrence of the value in this. |
| LastIndexOf(const U16String& value, int32_t startIndex) const | Returns the index of the last occurrence of the value in this. |
| LastIndexOf(const U16String& value, int32_t startIndex, int32_t count) const | Returns the index of the last occurrence of the value in this. |
| explicit operator bool() const | operator bool() |
| operator+=(const U16String& str) | Concatenate another string into this. |
| operator+=(const char* str) | Concatenate another string into this. |
| operator+=(const char16_t* ustr) | Concatenate another string into this. |
| operator+=(const char16_t ch) | Concatenate a char16_t character into this. |
| operator=(const U16String& str) | operator= |
| operator[](int32_t index) const | Array subscript operator. |
| Remove(int32_t startIndex, int32_t count) const | Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted. |
| Replace(const char16_t oldChar, const char16_t newChar) const | Returns a new string in which all occurrences of a specified character in this instance are replaced with another specified character. |
| Replace(const char16_t* oldValue, const char16_t* newValue) const | Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string. |
| Replace(const U16String& oldValue, const U16String& newValue) const | Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string. |
| Split(const Vector <char16_t>& separator) const | Splits a string into substrings based on specified delimiting characters. |
| Split(const Vector <U16String>& separator) const | Splits a string into substrings based on specified delimiting strings. |
| StartsWith(const U16String& value) const | Determines whether the beginning of this string instance matches the specified string. |
| StartsWith(const U16String& value, bool ignoreCase) const | Determines whether the beginning of this string instance matches the specified string. |
| Substring(int32_t startIndex) const | Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string. |
| Substring(int32_t startIndex, int32_t length) const | Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length. |
| ToLower() const | Returns a copy of this string converted to lowercase. |
| ToUpper() const | Returns a copy of this string converted to uppercase. |
| ToUtf8(char* output, int32_t len) const | Converts this to UTF8 string. |
| ToUtf8() const | Converts this to std::string in UTF8 format. The result does not end with ‘\0’. |
| Trim() const | Removes all leading and trailing white-space characters from the current string. |
| Trim(char16_t trimChar) const | Removes all leading and trailing instances of a character from the current string. |
| Trim(const Vector <char16_t>& trimChars) const | Removes all leading and trailing occurrences of a set of characters specified in an array from the current string. |
| U16String() | Default constructor. Constructs an empty U16String object. |
| U16String(const char* str) | Constructs from a const char* string. |
| U16String(const char16_t* ustr) | Constructs from a const char16_t* string. |
| U16String(const char16_t* ustr, int32_t len) | Constructs from a const char16_t* string with specified length. |
| U16String(const U16String& src) | Copy constructor. |
| ~U16String() | Destructor. |
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++