summaryrefslogtreecommitdiffstats
path: root/src/HTTP/NameValueParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTTP/NameValueParser.h')
-rw-r--r--src/HTTP/NameValueParser.h33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/HTTP/NameValueParser.h b/src/HTTP/NameValueParser.h
index e205079db..203f7f032 100644
--- a/src/HTTP/NameValueParser.h
+++ b/src/HTTP/NameValueParser.h
@@ -13,10 +13,9 @@
-class cNameValueParser :
- public std::map<AString, AString>
+class cNameValueParser : public std::map<AString, AString>
{
-public:
+ public:
/** Creates an empty parser */
cNameValueParser(bool a_AllowsKeyOnly = true);
@@ -35,20 +34,20 @@ public:
/** Returns true if the parser expects no more data */
bool IsFinished(void) const { return ((m_State == psInvalid) || (m_State == psFinished)); }
-protected:
+ protected:
enum eState
{
- psKeySpace, ///< Parsing the space in front of the next key
- psKey, ///< Currently adding more chars to the key in m_CurrentKey
- psEqualSpace, ///< Space after m_CurrentKey
- psEqual, ///< Just parsed the = sign after a name
+ psKeySpace, ///< Parsing the space in front of the next key
+ psKey, ///< Currently adding more chars to the key in m_CurrentKey
+ psEqualSpace, ///< Space after m_CurrentKey
+ psEqual, ///< Just parsed the = sign after a name
psValueInSQuotes, ///< Just parsed a Single-quote sign after the Equal sign
psValueInDQuotes, ///< Just parsed a Double-quote sign after the Equal sign
- psValueRaw, ///< Just parsed a raw value without a quote
- psAfterValue, ///< Just finished parsing the value, waiting for semicolon or data end
- psInvalid, ///< The parser has encountered an invalid input; further parsing is skipped
- psFinished, ///< The parser has already been instructed to finish and doesn't expect any more data
- } ;
+ psValueRaw, ///< Just parsed a raw value without a quote
+ psAfterValue, ///< Just finished parsing the value, waiting for semicolon or data end
+ psInvalid, ///< The parser has encountered an invalid input; further parsing is skipped
+ psFinished, ///< The parser has already been instructed to finish and doesn't expect any more data
+ };
/** The current state of the parser */
eState m_State;
@@ -61,10 +60,4 @@ protected:
/** Buffer for the current Value; */
AString m_CurrentValue;
-
-
-} ;
-
-
-
-
+};