MySQL 9.0.0
Source Code Documentation
Matcher Namespace Reference

Classes

class  One
 matches one character in a list of possible candidates. More...
 
class  One< Arg >
 
class  Range
 matches a Range of characters. More...
 
class  Sor
 matches Rules left-to-right with OR. More...
 
class  Sor<>
 

Typedefs

using Digit = Range< '0', '9'>
 [0-9]. More...
 
using Lower = Range< 'a', 'z'>
 [a-z]. More...
 
using Upper = Range< 'A', 'Z'>
 [A-Z]. More...
 
using Alpha = Sor< Lower, Upper >
 [a-zA-Z]. More...
 
using Alnum = Sor< Alpha, Digit >
 [a-zA-Z0-9]. More...
 

Functions

bool contains (char c, const std::initializer_list< char > &l)
 check if a initizalizer list contains a character. More...
 

Typedef Documentation

◆ Alnum

using Matcher::Alnum = typedef Sor<Alpha, Digit>

[a-zA-Z0-9].

◆ Alpha

using Matcher::Alpha = typedef Sor<Lower, Upper>

[a-zA-Z].

◆ Digit

using Matcher::Digit = typedef Range<'0', '9'>

[0-9].

◆ Lower

using Matcher::Lower = typedef Range<'a', 'z'>

[a-z].

◆ Upper

using Matcher::Upper = typedef Range<'A', 'Z'>

[A-Z].

Function Documentation

◆ contains()

bool Matcher::contains ( char  c,
const std::initializer_list< char > &  l 
)

check if a initizalizer list contains a character.

Note
: could be constexpr with C++20