validateUserName

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.

  1. string validateUserName(string str, int min_length, int max_length, string additional_chars, bool no_number_start)
    @safe
    string
    validateUserName
    ()
    (
    string str
    ,
    int min_length = 3
    ,
    int max_length = 32
    ,
    string additional_chars = "-_"
    ,
    bool no_number_start = true
    )
  2. bool validateUserName(R error_sink, string str, int min_length, int max_length, string additional_chars, bool no_number_start)

Meta