A Discrete-Event Network Simulator
API
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(). More...
 

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 61 of file command-line.cc.

Referenced by ns3::CommandLine::PrintDoxygenUsage().

+ Here is the caller graph for this function: