Back to FabImage Library websiteYou are here:
Start »
Function Reference »
All Functions »
String »
RegexSearchInString
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 |
Finds all occurrences of the pattern in the input string. Uses ECMAScript regular expression grammar (https://en.cppreference.com/w/cpp/regex/ecmascript).
Syntax
void fil::RegexSearchInString
(
const ftl::String& inString,
const ftl::String& inRegex,
bool inIgnoreCase,
ftl::Array<ftl::String>& outStrings,
bool& outFound
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inString |
const String& |
|
Input string |
 |
inRegex |
const String& |
|
Input regex |
 |
inIgnoreCase |
bool |
False |
Ignore case |
 |
outStrings |
Array<String>& |
|
Array of matched elements |
 |
outFound |
bool& |
|
Matching element found |
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Empty Regex on input in RegexSearchInString. |