Back to FabImage Library website
You are here: Start » Function Reference » All Functions » String » RegexReplaceInString
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Replaces all matching occurrences of the pattern with a replacement string.
Syntax
void fil::RegexReplaceInString ( const ftl::String& inString, const ftl::String& inRegex, bool inIgnoreCase, const ftl::String& inReplacement, ftl::String& outString )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inString | const String& | Input string | |
![]() |
inRegex | const String& | Input regex | |
![]() |
inIgnoreCase | bool | False | Ignore case |
![]() |
inReplacement | const String& | Replacement string | |
![]() |
outString | String& | Output string |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty Regex on input in RegexReplaceInString. |