Skip to content

Commit

Permalink
changed from operator > to >> as > throws
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Habraken authored and deanberris committed Jan 10, 2010
1 parent 743dd78 commit fce4924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boost/network/uri/detail/parse_uri.hpp
Expand Up @@ -33,7 +33,7 @@ namespace boost { namespace network { namespace uri {
bool ok = qi::parse( bool ok = qi::parse(
start_, end_, start_, end_,
( (
(qi::alpha > *(qi::alnum | qi::char_("+.-"))) (qi::alpha >> *(qi::alnum | qi::char_("+.-")))
>> ':' >> ':'
>> >>
+(qi::char_ - (qi::cntrl | qi::space)) +(qi::char_ - (qi::cntrl | qi::space))
Expand Down
4 changes: 2 additions & 2 deletions boost/network/uri/http/detail/parse_specific.hpp
Expand Up @@ -91,7 +91,7 @@ namespace boost { namespace network { namespace uri {


qi::rule<iterator, string_type::value_type()> reserved = gen_delims | sub_delims; qi::rule<iterator, string_type::value_type()> reserved = gen_delims | sub_delims;
qi::rule<iterator, string_type::value_type()> unreserved = qi::alnum | qi::char_("-._~"); qi::rule<iterator, string_type::value_type()> unreserved = qi::alnum | qi::char_("-._~");
qi::rule<iterator, string_type()> pct_encoded = qi::char_("%") > qi::repeat(2)[qi::xdigit]; qi::rule<iterator, string_type()> pct_encoded = qi::char_("%") >> qi::repeat(2)[qi::xdigit];


qi::rule<iterator, string_type()> pchar = qi::raw[unreserved | pct_encoded | sub_delims | qi::char_(":@")]; qi::rule<iterator, string_type()> pchar = qi::raw[unreserved | pct_encoded | sub_delims | qi::char_(":@")];


Expand All @@ -103,7 +103,7 @@ namespace boost { namespace network { namespace uri {
>> -qi::lexeme[qi::raw[*(unreserved | pct_encoded | sub_delims | qi::char_(":"))] >> '@'] >> -qi::lexeme[qi::raw[*(unreserved | pct_encoded | sub_delims | qi::char_(":"))] >> '@']
>> hostname >> hostname
>> -qi::lexeme[':' >> qi::ushort_] >> -qi::lexeme[':' >> qi::ushort_]
>> -qi::lexeme['/' > qi::raw[*pchar >> *('/' > *pchar)]] >> -qi::lexeme['/' >> qi::raw[*pchar >> *('/' >> *pchar)]]
>> -qi::lexeme['?' >> qi::raw[*(pchar | qi::char_("/?"))]] >> -qi::lexeme['?' >> qi::raw[*(pchar | qi::char_("/?"))]]
>> -qi::lexeme['#' >> qi::raw[*(pchar | qi::char_("/?"))]] >> -qi::lexeme['#' >> qi::raw[*(pchar | qi::char_("/?"))]]
), ),
Expand Down

0 comments on commit fce4924

Please sign in to comment.