All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Static Public Member Functions | List of all members
RegexFunctions Class Reference

Static Public Member Functions

static StringArray search (const String &wildcard, const String &stringToTest, int indexInMatch=0)
 
static StringArray getFirstMatch (const String &wildcard, const String &stringToTest, const Processor *=nullptr)
 
static bool matchesWildcard (const String &wildcard, const String &stringToTest, const Processor *=nullptr)
 

Detailed Description

A Helper class that encapsulates the regex operations

Member Function Documentation

StringArray getFirstMatch ( const String &  wildcard,
const String &  stringToTest,
const Processor = nullptr 
)
static

Returns the first match of the given wildcard in the test string. The first entry will be the whole match, followed by capture groups.

bool matchesWildcard ( const String &  wildcard,
const String &  stringToTest,
const Processor = nullptr 
)
static

Checks if the given string matches the regex wildcard.

StringArray search ( const String &  wildcard,
const String &  stringToTest,
int  indexInMatch = 0 
)
static

Searches a string and returns a StringArray with all matches. You can specify and index of a capture group (if not, the entire match will be used).

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.