vutil.validation

String input validation routines

Members

Functions

validateEmail
string validateEmail(string str, size_t max_length)
bool validateEmail(R error_sink, string str, size_t max_length)

Provides a simple email address validation.

validateIdent
string validateIdent(string str, string additional_chars, string entity_name, bool no_number_start)
bool validateIdent(R error_sink, string str, string additional_chars, string entity_name, bool no_number_start)

Validates an identifier string as used in most programming languages.

validatePassword
string validatePassword(string str, string str_confirm, size_t min_length, size_t max_length)
bool validatePassword(R error_sink, string str, string str_confirm, size_t min_length, size_t max_length)

Checks a password for minimum complexity requirements

validateString
string validateString(string str, size_t min_length, size_t max_length, string entity_name)
bool validateString(R error_sink, string str, size_t min_length, size_t max_length, string entity_name)

Checks if a string falls within the specified length range.

validateUserName
string validateUserName(string str, int min_length, int max_length, string additional_chars, bool no_number_start)
bool validateUserName(R error_sink, string str, int min_length, int max_length, string additional_chars, bool no_number_start)

Validates a user name string.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig