A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{command-line.cc} Namespace Reference

CommandLine anonymous namespace. More...

Functions

std::string Encode (const std::string &source)
 HTML-encode a string, for PrintDoxygenUsage().
 

Detailed Description

CommandLine anonymous namespace.

Function Documentation

◆ Encode()

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 '<'.

Parameters
[in]sourceThe original string.
Returns
The HTML-encoded version.

Definition at line 50 of file command-line.cc.