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)
@safe
bool
validateUserName
if (
isOutputRange!(R, char)
)
Validates a user name string.
User names may only contain ASCII letters and digits or any of the specified additional letters.
Invalid user names will cause an exception with the error description to be thrown.