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
| Parameter | Type | Description |
|---|---|---|
| oldChar | const char16_t | The character to be replaced. |
| newChar | const char16_t | The 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
- Class U16String
- Class Vector
- Class U16String
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
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
| Parameter | Type | Description |
|---|---|---|
| oldValue | const char16_t* | The string to be replaced. |
| newValue | const 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
- Class U16String
- Class Vector
- Class U16String
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
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
| Parameter | Type | Description |
|---|---|---|
| oldValue | const U16String& | The string to be replaced. |
| newValue | const 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
- Class U16String
- Class Vector
- Class U16String
- Namespace Aspose::Cells
- Library Aspose.Cells for C++