34#include <NDEVR/String.h>
47 template <
class t_type>
50 return isValid<t_type>(
string.c_str());
52 template <
class t_type>
55 std::basic_regex<char> basic_regex(regex<t_type>());
56 return regex_match(
string, basic_regex);
61 return isValid(
string.c_str(), type);
65 std::basic_regex<char> basic_regex(regex(type));
66 return regex_match(
string, basic_regex);
68 template <
class t_type>
The core String class for the NDEVR API.
Definition String.h:69
Logic for reading or writing to a string or a user friendly, TranslatedString.
Definition StringStream.h:230
Logic for validating a string given a specific regex.
Definition StringValidator.h:43
static bool isValid(const String &string, const TypeInfo &type)
Definition StringValidator.h:59
static bool isValid(const char *string)
Definition StringValidator.h:53
static bool isValid(const String &string)
Definition StringValidator.h:48
static bool checkRegex(const String &string, const String ®ex, uint04 start_index=0, uint04 end_index=Constant< uint04 >::Invalid, uint04 max_size=256)
static bool isValid(const char *string, const TypeInfo &type)
Definition StringValidator.h:63
static const char * regex(const TypeInfo &type)
static const char * regex()
Definition StringValidator.h:69
Stores information about a type, relevant for certain templated functions. To get information about a...
Definition TypeInfo.h:43
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233