Aspose::Cells::U16String::Replace method

U16String::Replace(const char16_t, const char16_t) const method

Returns a new string in which all occurrences of a specified character in this instance are replaced with another specified character.

U16String Aspose::Cells::U16String::Replace(const char16_t oldChar, const char16_t newChar) const
ParameterTypeDescription
oldCharconst char16_tThe character to be replaced.
newCharconst char16_tThe character to replace all occurrences of oldChar.

ReturnValue

A string that is equivalent to this instance except that all instances of oldChar are replaced with newChar. If oldChar is not found in the current instance, the method returns the current instance unchanged.

See Also

U16String::Replace(const char16_t*, const char16_t*) const method

Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.

U16String Aspose::Cells::U16String::Replace(const char16_t *oldValue, const char16_t *newValue) const
ParameterTypeDescription
oldValueconst char16_t*The string to be replaced.
newValueconst char16_t*The string to replace all occurrences of oldValue.

ReturnValue

A string that is equivalent to this instance except that all instances of oldChar are replaced with newChar. If oldChar is not found in the current instance, the method returns the current instance unchanged.

See Also

U16String::Replace(const U16String&, const U16String&) const method

Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.

U16String Aspose::Cells::U16String::Replace(const U16String &oldValue, const U16String &newValue) const
ParameterTypeDescription
oldValueconst U16String&The string to be replaced.
newValueconst U16String&The string to replace all occurrences of oldValue.

ReturnValue

A string that is equivalent to this instance except that all instances of oldChar are replaced with newChar. If oldChar is not found in the current instance, the method returns the current instance unchanged.

See Also