|
EPICS ARCHIVER V4
|
De-mangle CGI-type input. More...
#include <CGIDemangler.h>
Public Member Functions | |
| void | parse (const char *input) |
| Demangle string input Creates an internal copy of the text for processing. More... | |
| void | add (const stdString &name, const stdString &value) |
| Manually add another name/value to map. | |
| stdString | find (const stdString &name) const |
| Query map. | |
|
const stdMap< stdString, stdString > & | getVars () const |
| Retrieve full map. | |
Static Public Member Functions | |
| static void | unescape (char *text) |
| Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent. More... | |
| static void | unescape (stdString &text) |
| Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent. More... | |
De-mangle CGI-type input.
For example, the QUERY string for CGI scripts or the GET/POST text that a web server receives.
All variables (name/value pairs) are placed in a std::map.
For a class that actually reads cin or QUERY_STRING, see CGIInput.
| void CGIDemangler::parse | ( | const char * | input | ) |
Demangle string input Creates an internal copy of the text for processing.
| GenericException | when the copy fails. |
|
static |
Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent.
Changes the text! The resulting text may be shorter than the original.
|
static |
Reduce any '%xx' (percent sign,...) escape sequences to the characters they represent.
Creates an internal copy of the text for processing.
| GenericException | when the copy fails. |
1.8.5