|
|
@ -13,7 +13,7 @@ BOOST_FUSION_ADAPT_STRUCT( |
|
|
|
(std::string, username) |
|
|
|
(std::string, password) |
|
|
|
(std::string, host) |
|
|
|
(int , port) |
|
|
|
(unsigned , port) |
|
|
|
(std::string, path_and_query) |
|
|
|
(std::string, fragment) |
|
|
|
) |
|
|
@ -41,7 +41,7 @@ struct UriGrammar : qi::grammar<Iterator, URL()> |
|
|
|
>> -(':' >> password) >> '@' |
|
|
|
) |
|
|
|
>> host |
|
|
|
>> (':' >> qi::int_[ boost::phoenix::at_c<4>(qi::_val) = qi::_1 ]) |
|
|
|
>> (':' >> qi::uint_[ boost::phoenix::at_c<4>(qi::_val) = qi::_1 ]) |
|
|
|
>> -(path_and_query) // >> -('?' >> params[ boost::phoenix::at_c<6>(qi::_val) = qi::_1 ] )
|
|
|
|
>> -('#' >> fragment); |
|
|
|
}; |
|
|
|