Standard.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Standard.h
8  *
9  * @author mikee47 <mike@sillyhouse.net> Nov 2020
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "Formatter.h"
16 
17 namespace Format
18 {
19 class Standard : public Formatter
20 {
21 public:
22  void escape(String& value) const override
23  {
24  }
25 
26  void quote(String& value) const override;
27  void unQuote(String& value) const override;
28 
29  MimeType mimeType() const override
30  {
31  return MIME_TEXT;
32  }
33 };
34 
35 extern Standard standard;
36 
37 } // namespace Format
MimeType
Definition: WebConstants.h:53
void unQuote(String &value) const override
Remove any quotes from a value.
The String class.
Definition: WString.h:136
void escape(String &value) const override
Perform any necessary text escaping so output is valid.
Definition: Standard.h:42
Standard standard
MimeType mimeType() const override
Corresponding MIME type for this format.
Definition: Standard.h:49
Definition: Formatter.h:18
Virtual class to perform format-specific String adjustments.
Definition: Formatter.h:33
void quote(String &value) const override
Convert a value into quoted string.