uripp::fragment Class Reference

List of all members.

Detailed Description

URI fragment component.

Syntax (see uri_path for additional definitions): String is pct-decoded after parsing.

 fragment = *( pchar | "/" | "?" )
 
See also:
http://tools.ietf.org/html/rfc3986#section-3.5


Public Member Functions

 fragment ()
 fragment (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 decoded string.
std::string encoding () const
 Calculate encoded string.

Friends

bool URIPP_API parse (std::string::const_iterator &first, std::string::const_iterator last, fragment &v, std::string *errs)


Constructor & Destructor Documentation

uripp::fragment::fragment (  ) 

Construct.

uripp::fragment::fragment ( const std::string &  v  ) 

Construct from encoded string. Note that this should not contain the leading '#'. See parse() for less strict construction.

Exceptions:
std::invalid_argument if invalid encoding


Friends And Related Function Documentation

bool URIPP_API parse ( std::string::const_iterator &  first,
std::string::const_iterator  last,
fragment v,
std::string *  errs 
) [friend]

Parse URI fragment, returning whether found or not and advancing first and setting fragment if found. Does not skip leading space.

If errs is specified the following take place:


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