API Documentation
Loading...
Searching...
No Matches
StringValidator Class Reference

Logic for validating a string given a specific regex. More...

#include <StringValidator.h>

Static Public Member Functions

static bool checkRegex (const String &string, const String &regex, uint04 start_index=0, uint04 end_index=Constant< uint04 >::Invalid, uint04 max_size=256)
 
template<class t_type >
static bool isValid (const char *string)
 
static bool isValid (const char *string, const TypeInfo &type)
 
template<class t_type >
static bool isValid (const String &string)
 
static bool isValid (const String &string, const TypeInfo &type)
 
template<class t_type >
static const char * regex ()
 
static const char * regex (const TypeInfo &type)
 

Detailed Description

Logic for validating a string given a specific regex.


Member Function Documentation

◆ checkRegex()

static bool checkRegex ( const String & string,
const String & regex,
uint04 start_index = 0,
uint04 end_index = Constantuint04 >::Invalid,
uint04 max_size = 256 )
static

◆ isValid() [1/4]

template<class t_type >
static bool isValid ( const char * string)
inlinestatic

◆ isValid() [2/4]

static bool isValid ( const char * string,
const TypeInfo & type )
inlinestatic

◆ isValid() [3/4]

template<class t_type >
static bool isValid ( const String & string)
inlinestatic

◆ isValid() [4/4]

static bool isValid ( const String & string,
const TypeInfo & type )
inlinestatic

◆ regex() [1/2]

template<class t_type >
static const char * regex ( )
inlinestatic

◆ regex() [2/2]

static const char * regex ( const TypeInfo & type)
static

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