Namespace: Rx – Class: CRxString – Header: Rx.Core/RxString.h

CRxString::Replace Method

C++
CRxString Replace(std::string_view oldStr, std::string_view newStr, bool ignoreCase, bool completeWord)

Replaces all occurrences of oldStr by newStr and returns the resulting string.

Parameters

[std::string_view] oldStr

String which should be replaced.

[std::string_view] newStr

This string is used as the replacement.

[bool] ignoreCase

(Optional) True to ignore the case.

[bool] completeWord

(Optional) True to find only complete words.

Returns

CRxString

The resulting string.