Syntax:
scheme = ALPHA *( ALPHA | DIGIT | "+" | "-" | "." )
Public Member Functions | |
| scheme () | |
| scheme (const std::string &v) | |
| bool | empty () const |
| Test if null/empty. | |
| bool | is_null () const |
| Test if null/empty. | |
| const std::string & | string () const |
| Get string. | |
Friends | |
| bool URIPP_API | parse (std::string::const_iterator &first, std::string::const_iterator last, scheme &v, char *endc) |
| uripp::scheme::scheme | ( | ) |
Construct null.
| uripp::scheme::scheme | ( | const std::string & | v | ) |
Construct from string. This will convert to lower case and check for valid chars. Does not include the ":". Note that the string cannot be empty, it must contain chars that are valid for the scheme.
| std::invalid_argument | if invalid |
| bool URIPP_API parse | ( | std::string::const_iterator & | first, | |
| std::string::const_iterator | last, | |||
| scheme & | v, | |||
| char * | endc | |||
| ) | [friend] |
Parse URI scheme, returning whether found or not and advancing first and setting scheme and end char if found. Does not skip leading space.
1.4.7