clipp::match Namespace Reference

contains parameter matching functions and function classes More...

Classes

class  integers
 predicate that returns true if the input string represents an integer (with optional digit separators) More...
 
class  length
 predicate that returns true if the length of the input string is wihtin a given interval More...
 
class  numbers
 predicate that returns the first substring match within the input string that rmeepresents a number (with at maximum one decimal point and digit separators) More...
 
class  positive_integers
 predicate that returns true if the input string represents a non-negative integer (with optional digit separators) More...
 
class  prefix
 predicate that returns true if the input string starts with a given prefix More...
 
class  prefix_not
 predicate that returns true if the input string does not start with a given prefix More...
 
class  substring
 predicate that returns true if the input string contains a given substring More...
 

Typedefs

using noprefix = prefix_not
 alias for prefix_not More...
 

Functions

bool any (const arg_string &)
 predicate that is always true More...
 
bool none (const arg_string &)
 predicate that is always false More...
 
bool nonempty (const arg_string &s)
 predicate that returns true if the argument string is non-empty string More...
 
bool alphanumeric (const arg_string &s)
 predicate that returns true if the argument is a non-empty string that consists only of alphanumeric characters More...
 
bool alphabetic (const arg_string &s)
 predicate that returns true if the argument is a non-empty string that consists only of alphabetic characters More...
 
length min_length (std::size_t min)
 makes function object that returns true if the input string has a given minimum length More...
 
length max_length (std::size_t max)
 makes function object that returns true if the input string is not longer than a given maximum length More...
 

Detailed Description

contains parameter matching functions and function classes

Typedef Documentation

◆ noprefix

alias for prefix_not

Definition at line 1762 of file clipp.h.

Function Documentation

◆ alphabetic()

bool clipp::match::alphabetic ( const arg_string s)
inline

predicate that returns true if the argument is a non-empty string that consists only of alphabetic characters

Definition at line 1616 of file clipp.h.

◆ alphanumeric()

bool clipp::match::alphanumeric ( const arg_string s)
inline

predicate that returns true if the argument is a non-empty string that consists only of alphanumeric characters

Definition at line 1602 of file clipp.h.

◆ any()

bool clipp::match::any ( const arg_string )
inline

predicate that is always true

Definition at line 1571 of file clipp.h.

◆ max_length()

length clipp::match::max_length ( std::size_t  max)
inline

makes function object that returns true if the input string is not longer than a given maximum length

Definition at line 1811 of file clipp.h.

◆ min_length()

length clipp::match::min_length ( std::size_t  min)
inline

makes function object that returns true if the input string has a given minimum length

Definition at line 1800 of file clipp.h.

◆ none()

bool clipp::match::none ( const arg_string )
inline

predicate that is always false

Definition at line 1579 of file clipp.h.

◆ nonempty()

bool clipp::match::nonempty ( const arg_string s)
inline

predicate that returns true if the argument string is non-empty string

Definition at line 1589 of file clipp.h.