## String::Replace(char_t, char_t) const method


Replaces all occurrences of character in the string.

```cpp
String System::String::Replace(char_t oldValue, char_t newValue) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldValue | char_t | Character to replace. |
| newValue | char_t | replacement value. |

### ReturnValue

[String](../) with replacement done.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::Replace(const String\&, const String\&) const method


Replaces all occurrences of lookup in this string.

```cpp
String System::String::Replace(const String &oldValue, const String &newValue) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldValue | const String\& | [String](../) to replace. |
| newValue | const String\& | replacement string. |

### ReturnValue

[String](../) with replacement done.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
