Page Speed Optimization Libraries
1.2.24.1
|
Parses and rewrites URL query parameters. More...
#include "query_params.h"
Public Member Functions | |
void | Parse (const StringPiece &query_string) |
GoogleString | ToString () const |
int | size () const |
Parses and rewrites URL query parameters.
void net_instaweb::QueryParams::Parse | ( | const StringPiece & | query_string | ) |
Parse a query param string, e.g. x=0&y=1&z=2. We expect the "?" to be extracted (e.g. this string is the output of GURL::query().
Note that the value can be NULL, indicating that the variables was not followed by a '='. So given "a=0&b&c=", the values will be {"0", NULL, ""}.