URI scheme component.
More...
#include <scheme.h>
|
bool TECOMMONEXPORT | parse (std::string::const_iterator &first, std::string::const_iterator last, scheme &v, char *endc) |
| Parse URI scheme, returning whether found or not and advancing first and setting scheme and end char if found. More...
|
|
URI scheme component.
Syntax:
scheme = ALPHA *( ALPHA | DIGIT | "+" | "-" | "." )
- See also
- http://tools.ietf.org/html/rfc3986#section-3.1
Definition at line 40 of file scheme.h.
te::common::uri::scheme::scheme |
( |
| ) |
|
te::common::uri::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.
- Exceptions
-
std::invalid_argument | if invalid |
bool te::common::uri::scheme::empty |
( |
| ) |
const |
|
inline |
Test if null/empty.
Definition at line 49 of file scheme.h.
bool te::common::uri::scheme::is_null |
( |
| ) |
const |
|
inline |
Test if null/empty.
Definition at line 50 of file scheme.h.
const std::string& te::common::uri::scheme::string |
( |
| ) |
const |
|
inline |
bool TECOMMONEXPORT 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.
std::string te::common::uri::scheme::string_ |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/common/URI/scheme.h