Aspose::Cells::U16String class

U16String class

Represents the char16_t array class and ends with u’\0'.

class U16String

Methods

MethodDescription
CompareTo(const U16String& value) constCompares this instance with a specified string object.
CompareTo(const U16String& value, bool ignoreCase) constCompares this instance with a specified string object, ignoring or honoring their case.
EndsWith(const U16String& value) constDetermines whether the end of this string instance matches the specified string.
EndsWith(const U16String& value, bool ignoreCase) constDetermines whether the end of this string instance matches the specified string, ignoring or honoring their case.
GetData() constGets the address of the char16_t array in this vector.
GetLength() constGets the length of the char16_t array in this Vector. Excluding the trailing u’\0'.
IndexOf(const char16_t value) constReturns the index of the first occurrence of the value in this.
IndexOf(const char16_t value, int32_t startIndex) constReturns the index of the first occurrence of the value in this.
IndexOf(const char16_t value, int32_t startIndex, int32_t count) constReturns the index of the first occurrence of the value in this.
IndexOf(const char16_t* value) constReturns the index of the first occurrence of the value in this.
IndexOf(const U16String& value) constReturns the index of the first occurrence of the value in this.
IndexOf(const U16String& value, int32_t startIndex) constReturns the index of the first occurrence of the value in this.
IndexOf(const U16String& value, int32_t startIndex, int32_t count) constReturns the index of the first occurrence of the value in this.
IndexOf(const U16String& value, bool ignoreCase) constReturns the index of the first occurrence of the value in this.
IndexOf(const U16String& value, int32_t startIndex, int32_t count, bool ignoreCase) constReturns the index of the first occurrence of the value in this.
IndexOfAny(const Vector <char16_t>& anyOf) constReports 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) constReports 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) constReports 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) constReturns a new string in which a specified string is inserted at a specified index position in this instance.
IsEmpty() constChecks whether the char16_t array is empty.
IsNull() constChecks whether the object array is nullptr.
LastIndexOf(const char16_t value) constReturns the index of the last occurrence of the value in this.
LastIndexOf(const char16_t value, int32_t startIndex) constReturns the index of the last occurrence of the value in this.
LastIndexOf(const char16_t value, int32_t startIndex, int32_t count) constReturns the index of the last occurrence of the value in this.
LastIndexOf(const U16String& value) constReturns the index of the last occurrence of the value in this.
LastIndexOf(const U16String& value, int32_t startIndex) constReturns the index of the last occurrence of the value in this.
LastIndexOf(const U16String& value, int32_t startIndex, int32_t count) constReturns the index of the last occurrence of the value in this.
explicit operator bool() constoperator 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) constArray subscript operator.
Remove(int32_t startIndex, int32_t count) constReturns 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) constReturns 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) constReturns 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) constReturns 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) constSplits a string into substrings based on specified delimiting characters.
Split(const Vector <U16String>& separator) constSplits a string into substrings based on specified delimiting strings.
StartsWith(const U16String& value) constDetermines whether the beginning of this string instance matches the specified string.
StartsWith(const U16String& value, bool ignoreCase) constDetermines whether the beginning of this string instance matches the specified string.
Substring(int32_t startIndex) constRetrieves 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) constRetrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
ToLower() constReturns a copy of this string converted to lowercase.
ToUpper() constReturns a copy of this string converted to uppercase.
ToUtf8(char* output, int32_t len) constConverts this to UTF8 string.
ToUtf8() constConverts this to std::string in UTF8 format. The result does not end with ‘\0’.
Trim() constRemoves all leading and trailing white-space characters from the current string.
Trim(char16_t trimChar) constRemoves all leading and trailing instances of a character from the current string.
Trim(const Vector <char16_t>& trimChars) constRemoves 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