Logic for creating regular expressions for certain situations.
More...
|
| static const char * | EmailRegex () |
| | Gets a regex pattern for validating email addresses.
|
| static const char * | FileNameRegex () |
| | Gets a regex pattern for validating file names.
|
| static const char * | FileRegex () |
| | Gets a regex pattern for validating file paths.
|
| static const char * | FolderRegex () |
| | Gets a regex pattern for validating folder paths.
|
| static String | OptionalValues (const Buffer< StringView > &values) |
| | Builds a regex pattern that matches any one of the given values optionally.
|
| static String | UnorderedValues (const Buffer< StringView > &values) |
| | Builds a regex pattern that matches all of the given values in any order.
|
| static const char * | UsernameRegex () |
| | Gets a regex pattern for validating usernames.
|
Logic for creating regular expressions for certain situations.
Definition at line 9 of file RegexFunctions.h.
◆ EmailRegex()
| const char * RegexFunctions::EmailRegex |
( |
| ) |
|
|
static |
Gets a regex pattern for validating email addresses.
- Returns
- A regex pattern string for matching valid email addresses.
◆ FileNameRegex()
| const char * RegexFunctions::FileNameRegex |
( |
| ) |
|
|
static |
Gets a regex pattern for validating file names.
- Returns
- A regex pattern string for matching valid file names.
◆ FileRegex()
| const char * RegexFunctions::FileRegex |
( |
| ) |
|
|
static |
◆ FolderRegex()
| const char * RegexFunctions::FolderRegex |
( |
| ) |
|
|
static |
Gets a regex pattern for validating folder paths.
- Returns
- A regex pattern string for matching valid folder paths.
◆ OptionalValues()
Builds a regex pattern that matches any one of the given values optionally.
- Parameters
-
| [in] | values | The set of string values to include as optional matches. |
- Returns
- A regex pattern string matching any of the provided values optionally.
◆ UnorderedValues()
Builds a regex pattern that matches all of the given values in any order.
- Parameters
-
| [in] | values | The set of string values that must all appear in any order. |
- Returns
- A regex pattern string matching all provided values regardless of order.
◆ UsernameRegex()
| const char * RegexFunctions::UsernameRegex |
( |
| ) |
|
|
static |
Gets a regex pattern for validating usernames.
- Returns
- A regex pattern string for matching valid usernames.
The documentation for this class was generated from the following file: