mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 10:17:39 +02:00
Parse long values
This commit is contained in:
29
srcs/Internals/JsonParser.h
Normal file
29
srcs/Internals/JsonParser.h
Normal file
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
class JsonNode;
|
||||
class JsonBuffer;
|
||||
|
||||
class JsonParser
|
||||
{
|
||||
public:
|
||||
JsonParser(JsonBuffer* buffer, char* json)
|
||||
: _buffer(buffer), _ptr(json)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
JsonNode* parseNode();
|
||||
JsonNode* parseArray();
|
||||
JsonNode* parseLong();
|
||||
private:
|
||||
JsonBuffer* _buffer;
|
||||
char* _ptr;
|
||||
|
||||
inline bool isEnd();
|
||||
inline bool isArrayStart();
|
||||
inline bool isArrayStop();
|
||||
inline bool isLong();
|
||||
inline bool isSpace();
|
||||
inline void skipOneChar();
|
||||
inline void skipSpaces();
|
||||
};
|
Reference in New Issue
Block a user