Format Namespace Reference

Classes

class  Formatter
 Virtual class to perform format-specific String adjustments. More...
 
class  Html
 
class  Json
 
class  Standard
 
class  Xml
 

Typedefs

using Options = BitSet< uint8_t, Option, 5 >
 

Enumerations

enum class  Option {
  unicode , utf8 , doublequote , singlequote ,
  backslash
}
 

Functions

unsigned escapeControls (String &value, Options options)
 Escape standard control codes such as \n (below ASCII 0x20) More...
 

Variables

Html html
 
Json json
 
Standard standard
 
Xml xml
 

Typedef Documentation

◆ Options

using Format::Options = typedef BitSet<uint8_t, Option, 5>

Enumeration Type Documentation

◆ Option

enum Format::Option
strong
Enumerator
unicode 
utf8 

Convert extended ASCII to UTF8.

doublequote 
singlequote 
backslash 

Function Documentation

◆ escapeControls()

unsigned Format::escapeControls ( String value,
Options  options 
)

Escape standard control codes such as \n (below ASCII 0x20)

Parameters
valueString to be modified
options
Return values
unsignedNumber of control characters found and replaced

Variable Documentation

◆ html

Html Format::html
extern

◆ json

Json Format::json
extern

◆ standard

Standard Format::standard
extern

◆ xml

Xml Format::xml
extern