34#include <NDEVR/String.h>
65 template <
class t_type>
69 return std::regex_match(
string.begin(),
string.end(), basic_regex);
79 std::basic_regex<char> basic_regex(
regex(
type));
80 return std::regex_match(
string.begin(),
string.end(), basic_regex);
86 template <
class t_type>
static const char * getValidRegex()
Optionally specified to allow the software to do a check on user or file input to ensure that fromStr...
Logic for validating a string given a specific regex pattern.
static bool checkRegex(const StringView &string, const StringView ®ex, uint04 start_index=0, uint04 end_index=Constant< uint04 >::Invalid, uint04 max_size=256)
Checks whether a substring of the given string matches the specified regex pattern.
static const char * regex(const TypeInfo &type)
Retrieves the validation regex pattern string for the specified TypeInfo.
static bool isValid(const StringView &string)
Checks whether the given string is valid for the specified type using its associated regex.
static bool isValid(const StringView &string, const TypeInfo &type)
Checks whether the given string is valid for the specified TypeInfo using its associated regex.
static const char * regex()
Retrieves the validation regex pattern string for the specified type.
The core String View class for the NDEVR API.
Stores information about a type, relevant for certain templated functions.
The primary namespace for the NDEVR SDK.
@ type
The type identifier string for this model node.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...