CommandLine anonymous namespace. More...
Functions | |
std::string | Encode (const std::string &source) |
HTML-encode a string, for PrintDoxygenUsage(). | |
CommandLine anonymous namespace.
std::string anonymous_namespace{command-line.cc}::Encode | ( | const std::string & | source | ) |
HTML-encode a string, for PrintDoxygenUsage().
Usage and help strings, which are intended for text-only display, can contain illegal characters for HTML. This function encodes '&', '"', '\'', and '<'.
[in] | source | The original string. |
Definition at line 50 of file command-line.cc.