Format::Formatter Class Referenceabstract
Virtual class to perform format-specific String adjustments. More...
#include <Formatter.h>
Inheritance diagram for Format::Formatter:
Public Member Functions | |
virtual void | escape (String &value) const =0 |
Perform any necessary text escaping so output is valid. More... | |
virtual void | quote (String &value) const =0 |
Convert a value into quoted string. More... | |
virtual void | unQuote (String &value) const =0 |
Remove any quotes from a value. More... | |
virtual MimeType | mimeType () const =0 |
Correspdoning MIME type for this format. More... | |
Detailed Description
Virtual class to perform format-specific String adjustments.
Member Function Documentation
◆ escape()
|
pure virtual |
Perform any necessary text escaping so output is valid.
Implemented in Format::Html, Format::Json, and Format::Standard.
◆ mimeType()
|
pure virtual |
Correspdoning MIME type for this format.
- Note
- New types must be added to WebConstants.h
Implemented in Format::Standard, Format::Html, and Format::Json.
◆ quote()
|
pure virtual |
Convert a value into quoted string.
Implemented in Format::Standard.
◆ unQuote()
|
pure virtual |
Remove any quotes from a value.
Implemented in Format::Standard.
The documentation for this class was generated from the following file: