A Discrete-Event Network Simulator
anonymous_namespace{command-line.cc} Namespace Reference

CommandLine anonymous namespace. More...


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

[in]sourceThe original string.
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: