uripp::scheme Class Reference

List of all members.

Detailed Description

URI scheme component.


 scheme = ALPHA *( ALPHA | DIGIT | "+" | "-" | "." )
See also:

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.


bool URIPP_API parse (std::string::const_iterator &first, std::string::const_iterator last, scheme &v, char *endc)

Constructor & Destructor Documentation

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

Friends And Related Function Documentation

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.

Generated on Wed May 13 09:06:22 2009 for uripp by  doxygen 1.4.7