diff options
Diffstat (limited to 'src/core/variant/Reader.hpp')
-rw-r--r-- | src/core/variant/Reader.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/variant/Reader.hpp b/src/core/variant/Reader.hpp index 9de06bc..710f7c4 100644 --- a/src/core/variant/Reader.hpp +++ b/src/core/variant/Reader.hpp @@ -115,7 +115,6 @@ public: BufferedCharReader &reader, Logger &logger, const std::unordered_set<char> &delims); - /** * Parses an integer from the given buffered char reader instance until one * of the given delimiter characters is reached. @@ -143,6 +142,12 @@ public: const std::unordered_set<char> &delims); /** + * Parses an array of values. + */ + static std::pair<bool, Variant::arrayType> parseArray( + BufferedCharReader &reader, Logger &logger, char delim = 0); + + /** * Tries to parse the most specific item from the given stream until one of * the given delimiters is reached or a meaningful literal has been read. * The resulting variant represents the value that has been read. |