CppSerialization  1.0.4.0
C++ Serialization Library
parser.cpp
Go to the documentation of this file.
1 
10 
11 namespace CppSerialization {
12 namespace JSON {
13 
14 Document Parser::Parse(const char* str)
15 {
16  Document result;
17  return std::move(result.Parse(str));
18 }
19 
20 Document Parser::Parse(const char* str, size_t size)
21 {
22  Document result;
23  return std::move(result.Parse(str, size));
24 }
25 
26 Document Parser::Parse(const std::string& str)
27 {
28  Document result;
29  return std::move(result.Parse(str));
30 }
31 
32 Document Parser::ParseInPlace(char* str)
33 {
34  Document result;
35  return std::move(result.ParseInsitu(str));
36 }
37 
38 } // namespace JSON
39 } // namespace CppSerialization
static Document ParseInPlace(char *source)
Parse the in-place C-string in mutable mode.
Definition: parser.cpp:32
static Document Parse(const char *source)
Parse the C-string.
Definition: parser.cpp:14
C++ Serialization project definitions.
Definition: exceptions.h:14
JSON parser definition.