Back to Aurora Vision Library websiteYou 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: |
avl |
Module: |
FoundationLite |
Replaces all matching occurrences of the pattern with a replacement string. Uses ECMAScript regular expression grammar (https://en.cppreference.com/w/cpp/regex/ecmascript).
Syntax
void avl::RegexReplaceInString
(
const atl::String& inString,
const atl::String& inRegex,
bool inIgnoreCase,
const atl::String& inReplacement,
atl::String& outString
)
Parameters
|
Name |
Type |
Default |
Description |
![Input value](../../img/in.png) |
inString |
const String& |
|
Input string |
![Input value](../../img/in.png) |
inRegex |
const String& |
|
Input regex |
![Input value](../../img/in.png) |
inIgnoreCase |
bool |
False |
Ignore case |
![Input value](../../img/in.png) |
inReplacement |
const String& |
|
Replacement string |
![Output value](../../img/out.png) |
outString |
String& |
|
Output string |
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Empty Regex on input in RegexReplaceInString. |