WRApplication
External kratos "application" for multiscale time integration.
RegexUtility Class Reference

Static-only utility class for common regexes. More...

Collaboration diagram for RegexUtility:

Static Public Member Functions

Inquiry
static std::pair< std::string, std::regex > Integer ()
 Get a string-regex pair representing an integer. More...
 
static std::pair< std::string, std::regex > UnsignedInteger ()
 Get a string-regex pair representing an unsigned integer. More...
 
static std::pair< std::string, std::regex > FloatingPoint ()
 Get a string-regex pair representing an integer. More...
 

Detailed Description

Static-only utility class for common regexes.

Static access to pairs of regex patterns (as std::string) and their associated regexes (as std::regex).

Note
No instances are allowed to be constructed from this class.

Member Function Documentation

◆ FloatingPoint()

static std::pair<std::string,std::regex> FloatingPoint ( )
static

Get a string-regex pair representing an integer.

Matches the following pattern:

  • optional leading '-'
  • whole part identical to RegexUtility::Integer
  • optional decimal point, optionally followed by the fractional part [0-9]*
  • optional scientific notation suffix [eE][+-][0-9]+
Returns
A pair of
  • std::string of a regex pattern representing a floating point number in decimal or scientific notation.
  • std::regex of that string.
Note
This function can be called safely from other static functions.

◆ Integer()

static std::pair<std::string,std::regex> Integer ( )
static

Get a string-regex pair representing an integer.

Matches the following pattern:

  • optional leading '-'
  • 0 or [1-9]+[0-9]*
Returns
A pair of
  • std::string of a regex pattern representing an integer.
  • std::regex of that string.
Note
This function can be called safely from other static functions.

◆ UnsignedInteger()

static std::pair<std::string,std::regex> UnsignedInteger ( )
static

Get a string-regex pair representing an unsigned integer.

Matches the following pattern:

  • 0 or [1-9]+[0-9]*
Returns
A pair of
  • std::string of a regex pattern representing an unsigned integer.
  • std::regex of that string.
Note
This function can be called safely from other static functions.

The documentation for this class was generated from the following file: