Browse Source

switch json lib

willi 5 years ago
parent
commit
2743f3fe10
100 changed files with 894 additions and 10961 deletions
  1. 1 0
      .idea/vcs.xml
  2. 554 386
      .idea/workspace.xml
  3. 1 1
      CMakeLists.txt
  4. 2 0
      lib/CMakeLists.txt
  5. 17 7
      lib/include/IModule.h
  6. 20 9
      lib/include/IOutput.h
  7. 5 0
      lib/include/IType.h
  8. 35 17
      lib/include/ModuleBase.h
  9. 29 0
      lib/include/ModuleMath.h
  10. 21 9
      lib/include/Output.h
  11. 63 37
      lib/src/ModuleBase.cpp
  12. 105 0
      lib/src/ModuleMath.cpp
  13. 17 5
      lib/src/Output.cpp
  14. 1 1
      lib/test/CMakeLists.txt
  15. 22 0
      lib/test/test_ModuleMath.cpp
  16. 0 8
      lib/test/test_TestClass.cpp
  17. 1 0
      thirdparty/json
  18. 0 22
      thirdparty/rapidjson/.gitattributes
  19. 0 28
      thirdparty/rapidjson/.gitignore
  20. 0 3
      thirdparty/rapidjson/.gitmodules
  21. 0 146
      thirdparty/rapidjson/.travis.yml
  22. 0 158
      thirdparty/rapidjson/CHANGELOG.md
  23. 0 226
      thirdparty/rapidjson/CMakeLists.txt
  24. 0 30
      thirdparty/rapidjson/CMakeModules/FindGTestSrc.cmake
  25. 0 7
      thirdparty/rapidjson/RapidJSON.pc.in
  26. 0 25
      thirdparty/rapidjson/RapidJSONConfig.cmake.in
  27. 0 10
      thirdparty/rapidjson/RapidJSONConfigVersion.cmake.in
  28. 0 54
      thirdparty/rapidjson/appveyor.yml
  29. 0 1
      thirdparty/rapidjson/bin/data/abcde.txt
  30. 0 22
      thirdparty/rapidjson/bin/data/glossary.json
  31. 0 27
      thirdparty/rapidjson/bin/data/menu.json
  32. 0 1
      thirdparty/rapidjson/bin/data/readme.txt
  33. 0 3315
      thirdparty/rapidjson/bin/data/sample.json
  34. 0 88
      thirdparty/rapidjson/bin/data/webapp.json
  35. 0 26
      thirdparty/rapidjson/bin/data/widget.json
  36. BIN
      thirdparty/rapidjson/bin/encodings/utf16be.json
  37. BIN
      thirdparty/rapidjson/bin/encodings/utf16bebom.json
  38. BIN
      thirdparty/rapidjson/bin/encodings/utf16le.json
  39. BIN
      thirdparty/rapidjson/bin/encodings/utf16lebom.json
  40. BIN
      thirdparty/rapidjson/bin/encodings/utf32be.json
  41. BIN
      thirdparty/rapidjson/bin/encodings/utf32bebom.json
  42. BIN
      thirdparty/rapidjson/bin/encodings/utf32le.json
  43. BIN
      thirdparty/rapidjson/bin/encodings/utf32lebom.json
  44. 0 7
      thirdparty/rapidjson/bin/encodings/utf8.json
  45. 0 7
      thirdparty/rapidjson/bin/encodings/utf8bom.json
  46. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail1.json
  47. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail10.json
  48. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail11.json
  49. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail12.json
  50. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail13.json
  51. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail14.json
  52. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail15.json
  53. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail16.json
  54. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail17.json
  55. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail18.json
  56. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail19.json
  57. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail2.json
  58. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail20.json
  59. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail21.json
  60. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail22.json
  61. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail23.json
  62. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail24.json
  63. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail25.json
  64. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail26.json
  65. 0 2
      thirdparty/rapidjson/bin/jsonchecker/fail27.json
  66. 0 2
      thirdparty/rapidjson/bin/jsonchecker/fail28.json
  67. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail29.json
  68. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail3.json
  69. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail30.json
  70. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail31.json
  71. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail32.json
  72. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail33.json
  73. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail4.json
  74. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail5.json
  75. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail6.json
  76. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail7.json
  77. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail8.json
  78. 0 1
      thirdparty/rapidjson/bin/jsonchecker/fail9.json
  79. 0 58
      thirdparty/rapidjson/bin/jsonchecker/pass1.json
  80. 0 1
      thirdparty/rapidjson/bin/jsonchecker/pass2.json
  81. 0 6
      thirdparty/rapidjson/bin/jsonchecker/pass3.json
  82. 0 3
      thirdparty/rapidjson/bin/jsonchecker/readme.txt
  83. 0 102
      thirdparty/rapidjson/bin/types/booleans.json
  84. 0 102
      thirdparty/rapidjson/bin/types/floats.json
  85. 0 102
      thirdparty/rapidjson/bin/types/guids.json
  86. 0 102
      thirdparty/rapidjson/bin/types/integers.json
  87. 0 592
      thirdparty/rapidjson/bin/types/mixed.json
  88. 0 102
      thirdparty/rapidjson/bin/types/nulls.json
  89. 0 102
      thirdparty/rapidjson/bin/types/paragraphs.json
  90. 0 1
      thirdparty/rapidjson/bin/types/readme.txt
  91. 0 45
      thirdparty/rapidjson/contrib/natvis/LICENSE
  92. 0 7
      thirdparty/rapidjson/contrib/natvis/README.md
  93. 0 38
      thirdparty/rapidjson/contrib/natvis/rapidjson.natvis
  94. 0 27
      thirdparty/rapidjson/doc/CMakeLists.txt
  95. 0 2369
      thirdparty/rapidjson/doc/Doxyfile.in
  96. 0 2369
      thirdparty/rapidjson/doc/Doxyfile.zh-cn.in
  97. 0 50
      thirdparty/rapidjson/doc/diagram/architecture.dot
  98. BIN
      thirdparty/rapidjson/doc/diagram/architecture.png
  99. 0 65
      thirdparty/rapidjson/doc/diagram/insituparsing.dot
  100. 0 0
      thirdparty/rapidjson/doc/diagram/insituparsing.png

+ 1 - 0
.idea/vcs.xml

@@ -2,5 +2,6 @@
 <project version="4">
 <project version="4">
   <component name="VcsDirectoryMappings">
   <component name="VcsDirectoryMappings">
     <mapping directory="$PROJECT_DIR$" vcs="Git" />
     <mapping directory="$PROJECT_DIR$" vcs="Git" />
+    <mapping directory="$PROJECT_DIR$/thirdparty/json" vcs="Git" />
   </component>
   </component>
 </project>
 </project>

File diff suppressed because it is too large
+ 554 - 386
.idea/workspace.xml


+ 1 - 1
CMakeLists.txt

@@ -13,5 +13,5 @@ if(${TESTS_ENABLED})
     add_subdirectory(/usr/src/gtest ${CMAKE_CURRENT_BINARY_DIR}/gtest)
     add_subdirectory(/usr/src/gtest ${CMAKE_CURRENT_BINARY_DIR}/gtest)
 endif()
 endif()
 
 
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/rapidjson/include  ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/rapidjson/include/rapidjson)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/json/single_include)
 add_subdirectory(lib)
 add_subdirectory(lib)

+ 2 - 0
lib/CMakeLists.txt

@@ -9,9 +9,11 @@ add_library(${PROJECT_NAME} STATIC
         include/IOutput.h
         include/IOutput.h
         include/IProcessor.h
         include/IProcessor.h
         include/ModuleBase.h
         include/ModuleBase.h
+        include/ModuleMath.h
         include/Output.h
         include/Output.h
 
 
         src/ModuleBase.cpp
         src/ModuleBase.cpp
+        src/ModuleMath.cpp
         src/Output.cpp
         src/Output.cpp
         )
         )
 
 

+ 17 - 7
lib/include/IModule.h

@@ -6,12 +6,22 @@
 #include <vector>
 #include <vector>
 #include <memory>
 #include <memory>
 
 
-class IModule{
-public:
-    virtual bool connectInput(std::string input_name, std::shared_ptr<IOutput> output) = 0;
-    virtual std::vector<std::string> getInputs() = 0;
-    virtual void setInput(std::string name, std::shared_ptr<IOutput> output) = 0;
-    virtual ~IModule(){};
-};
+namespace mdd {
+    class IOutput;
 
 
+    class IModule {
+    public:
+        virtual bool connectInput(int handle, std::shared_ptr<IOutput> output) = 0;
+
+        virtual std::vector<std::string> getInputs() = 0;
+
+        virtual std::vector<std::string> getOutputs() = 0;
+
+        virtual std::shared_ptr<IOutput> getOutput(int handle) = 0;
+
+        virtual void update() = 0;
+
+        virtual ~IModule() = default;
+    };
+}
 #endif //MDD_IMODULE_H
 #endif //MDD_IMODULE_H

+ 20 - 9
lib/include/IOutput.h

@@ -1,13 +1,24 @@
 #ifndef MDD_IOUTPUT_H
 #ifndef MDD_IOUTPUT_H
 #define MDD_IOUTPUT_H
 #define MDD_IOUTPUT_H
-#include "rapidjson/document.h"
-
-class IOutput{
-public:
-    virtual const rapidjson::Value& getValue() = 0;
-    virtual bool hasChanges() = 0;
-    virtual void resetChangeg() = 0;
-    virtual ~IOutput(){};
-};
+#include "json.hpp"
+#include <memory>
+
+namespace mdd
+{
+    class IModule;
+
+    class IOutput {
+    public:
+        virtual const json& getValue() = 0;
+
+        virtual std::string getType() = 0;
+
+        virtual bool hasChanges() = 0;
+
+        virtual void resetChange() = 0;
+
+        virtual ~IOutput() = default;
+    };
+}
 
 
 #endif //MDD_IOUTPUT_H
 #endif //MDD_IOUTPUT_H

+ 5 - 0
lib/include/IType.h

@@ -0,0 +1,5 @@
+#ifndef MDD_ITYPE_H
+#define MDD_ITYPE_H
+
+
+#endif //MDD_ITYPE_H

+ 35 - 17
lib/include/ModuleBase.h

@@ -6,26 +6,44 @@
 #include "IModule.h"
 #include "IModule.h"
 #include "Output.h"
 #include "Output.h"
 #include <bits/shared_ptr.h>
 #include <bits/shared_ptr.h>
+namespace mdd {
+    struct Input {
+        std::string type;
+        json value;
+        std::function<bool(const json&)> verification;
+        std::shared_ptr<IOutput> output;
 
 
-struct Input
-{
-    std::string name;
-    rapidjson::Value value;
-    std::function<bool(rapidjson::Value&)> verification;
-    std::shared_ptr<IOutput> output;
+        Input(const std::string& type, const json& default_value,
+              const std::function<bool(const json&)>& verification = [](
+                      const json&) { return true; });
+    };
 
 
-    Input(std::string name, rapidjson::Value value, std::function<bool(rapidjson::Value&)> verification = [](rapidjson::Value&){return true;});
-};
+class ModuleBase : public  IModule{
+    private:
+        std::vector<Input> _inputs;
+        std::vector<std::shared_ptr<Output>> _outputs;
 
 
-class ModuleBase : IModule
-{
-    std::vector<Input> inputs;
+    public:
+        int addInput(const std::string& type, const json& value,
+                     const std::function<bool(const json&)>& verification = [](
+                             const json&) { return true; });
 
 
-public:
-    std::vector<std::string> getInputs();
-    int addInput(std::string name, rapidjson::Value value, std::function<bool(rapidjson::Value&)> verification = [](rapidjson::Value&){return true;});
-    bool connectInput(std::string input_name, std::shared_ptr<IOutput> output);
-    const rapidjson::Value& getValue(int handle);
-};
+        json& setInputDefaultValue(int handle);
+        const json& getInputValue(int handle);
 
 
+        bool connectInput(int handle, std::shared_ptr<IOutput> output) override;
+
+        std::vector<std::string> getInputs() override;
+
+
+        std::vector<std::string> getOutputs() override;
+
+        std::shared_ptr<IOutput> getOutput(int handle) override;
+
+        int addOutput(const std::string& type, const json& initial);
+
+        json &setOutputValue(int handle);
+
+    };
+}
 #endif //MDD_BASEMODULE_H
 #endif //MDD_BASEMODULE_H

+ 29 - 0
lib/include/ModuleMath.h

@@ -0,0 +1,29 @@
+#ifndef MDD_MODULEMATH_H
+#define MDD_MODULEMATH_H
+#include "ModuleBase.h"
+
+namespace mdd {
+    enum MathOperation {
+        ADD = 1,
+        SUBSTRACT = 2,
+        MULTIPLIKATION = 3,
+        DIVISION = 4
+    };
+
+    class ModuleMath : public ModuleBase {
+    private:
+        MathOperation _operation;
+
+        json&& add(const json &val1, const json &val2);
+
+    public:
+        explicit ModuleMath(MathOperation operation = ADD);
+
+        void update() override;
+
+        void setMathOperation(MathOperation operation);
+
+        MathOperation getMathOperation();
+    };
+}
+#endif

+ 21 - 9
lib/include/Output.h

@@ -3,13 +3,25 @@
 #include "IOutput.h"
 #include "IOutput.h"
 #include "IModule.h"
 #include "IModule.h"
 
 
-class Output : IOutput{
-private:
-    rapidjson::Value _value;
-
-public:
-    Output(std::shared_ptr<IModule> parent, rapidjson::Value& initial);
-    const rapidjson::Value& getValue();
-    rapidjson::Value& getValueInternal();
-};
+namespace mdd {
+    class Output : public IOutput {
+    private:
+        std::string _type;
+        bool _changed;
+        json _value;
+
+    public:
+        Output(const std::string& type, const json& initial);
+
+        const json& getValue() override;
+
+        json& getValueInternal();
+
+        std::string getType() override;
+
+        bool hasChanges() override;
+
+        void resetChange() override;
+    };
+}
 #endif
 #endif

+ 63 - 37
lib/src/ModuleBase.cpp

@@ -1,47 +1,73 @@
 #include "ModuleBase.h"
 #include "ModuleBase.h"
 #include <algorithm>
 #include <algorithm>
 
 
-Input::Input(std::string name, rapidjson::Value default_value, std::function<bool(rapidjson::Value &)> verification) {
-    this->name= name;
-    value= default_value;
-}
-
-
-std::vector<std::string> ModuleBase::getInputs(){
-    std::vector<std::string> ret;
-    for(auto& input  : inputs)
-    {
-        ret.push_back(input.name);
-    }
-    return ret;
-}
-
-int ModuleBase::addInput(std::string name, rapidjson::Value value,
-                         std::function<bool(rapidjson::Value &)> verification){
-    inputs.push_back(Input(name, value, verification));
-    return inputs.size() - 1;
-}
-
-bool ModuleBase::connectInput(std::string input_name, std::shared_ptr<IOutput> output){
-    std::vector<std::string> input_list = getInputs();
-    auto it = std::find(input_list.begin(), input_list.end(), input_name);
-    if(it == input_list.end()){
-        return false;
+namespace mdd {
+
+    Input::Input(const std::string& type, const json& default_value,
+                 const std::function<bool(const json&)>& verification) {
+        this->type = type;
+        value = default_value;
+        this->verification = std::move(verification);
     }
     }
 
 
-    int index = std::distance(input_list.begin(), it);
-    if(inputs[index].verification(output->getValue())
-    {
-        inputs[index].output = output;
-        return true;
+    json& ModuleBase::setInputDefaultValue(int handle) {
+        return _inputs[handle].value;
     }
     }
-    return false;
-}
 
 
-rapidjson::Value& ModuleBase::getValue(int handle){
-    if(inputs[handle].output == nullptr)
-        return inputs[handle].value;
 
 
-    return inputs[handle].output->getInternalValue();
+    const json& ModuleBase::getInputValue(int handle) {
+        if (_inputs[handle].output == nullptr)
+            return _inputs[handle].value;
+
+        return _inputs[handle].output->getValue();
+
+    }
+
+    json& ModuleBase::setOutputValue(int handle) {
+        static json empty;
+        if (_outputs.size() <= handle)
+            return empty;
+
+        return _outputs[handle]->getValueInternal();
+    }
+
+
+    std::vector<std::string> ModuleBase::getInputs() {
+        std::vector<std::string> ret;
+        for (auto &input  : _inputs) {
+            ret.push_back(input.type);
+        }
+        return ret;
+    }
 
 
+    std::vector<std::string> ModuleBase::getOutputs() {
+        std::vector<std::string> ret;
+        for (auto &output  : _outputs) {
+            ret.push_back(output->getType());
+        }
+        return ret;
+    }
+
+    int ModuleBase::addInput(const std::string& type, const json& value,
+                             const std::function<bool(const json&)>& verification) {
+        _inputs.emplace_back(Input(type, value, verification));
+        return _inputs.size() - 1;
+    }
+
+    bool ModuleBase::connectInput(int handle, std::shared_ptr<IOutput> output) {
+        if (_inputs[handle].verification(output->getValue())) {
+            _inputs[handle].output = output;
+            return true;
+        }
+        return false;
+    }
+
+    std::shared_ptr<IOutput> ModuleBase::getOutput(int handle) {
+        return _outputs[handle];
+    }
+
+    int ModuleBase::addOutput(const std::string& type, const json& initial) {
+        _outputs.push_back(std::make_shared<Output>( type, initial));
+        return _outputs.size()-1;
+    }
 }
 }

+ 105 - 0
lib/src/ModuleMath.cpp

@@ -0,0 +1,105 @@
+#include "ModuleMath.h"
+
+namespace mdd {
+    ModuleMath::ModuleMath(MathOperation operation) {
+        _operation = operation;
+        json default_val;
+        default_val["value"] = 1;
+        auto veri = [](const json& val){
+            if(val.find("value")==val.end())
+                return false;
+            return true;};
+        addInput("Value", default_val, veri);
+        addInput("Value", default_val, veri);
+        addOutput("Value", default_val);
+    }
+
+    json&& ModuleMath::add(const json &val1, const json &val2) {
+        json ret = json::array();
+        if (val1.is_array()) {
+            for (int i = 0; i < val1.size(); i++) {
+                if (val2.is_array()) {
+                    if (val1.size() == val2.size()) {
+                        ret.push_back(add(val1[i],val2[i]));
+                    }
+                } else {
+                    ret.push_back(add(val1[i],val2));
+                }
+            }
+
+        } else {
+            if (val2.is_array()) {
+                for (int i = 0; i < val2.size(); i++) {
+                    ret.push_back(add(val1,val2[i]));
+                }
+            } else {
+                if (val1.is_number() && val2.is_number()) {
+                    if (val1.is_number_float()) {
+                        if (val2.is_number_float()) {
+                            ret = val1.get<float>() + val2.get<float>();
+                        } else {
+                            ret = val1.get<float>() + val2.get<int>();
+                        }
+                    } else {
+                        if (val2.is_number_float()) {
+                            ret = val1.get<int>() + val2.get<float>();
+                        } else {
+                            ret = val1.get<int>() + val2.get<int>();
+                        }
+                    }
+
+                } else {
+
+                }
+
+            }
+        }
+        return std::move(ret);
+    }
+
+    void ModuleMath::update() {
+        json ret = getOutput(0)->getValue()["value"];
+        /*
+        switch (_operation) {
+            case ADD:
+                ret = add(getInputValue(0)["value"], getInputValue(1)["value"]);
+                break;
+
+            case SUBSTRACT:
+
+                break;
+
+
+            case MULTIPLIKATION:
+
+                break;
+
+            case DIVISION:
+
+                break;
+        }
+*/
+        //if (ret != getOutput(0)->getValue()["value"]) {
+            //setOutputValue(0).erase("value");
+            //setOutputValue(0) = ret;
+        //}
+    }
+
+
+    void ModuleMath::setMathOperation(MathOperation operation){
+        _operation = operation;
+    }
+
+    MathOperation ModuleMath::getMathOperation(){
+        return _operation;
+    }
+/*
+ * Document:
+ *  var:
+ *          value0, value1, value2, ...
+ *  var1:
+ *      args:
+ *          etc.
+ *
+ */
+}

+ 17 - 5
lib/src/Output.cpp

@@ -1,10 +1,22 @@
 #include "Output.h"
 #include "Output.h"
+namespace mdd {
+    Output::Output( const std::string& type, const json& initial) :
+            _changed(false)
+    {
+        _type= type;
+        _value = initial;
+    }
 
 
-Output::Output(std::shared_ptr<IModule> parent, rapidjson::Value &initial) : _value(initial)
-{
+    const json& Output::getValue() { return _value; }
 
 
-}
+    json& Output::getValueInternal() {
+        _changed = true;
+        return _value;
+    }
 
 
-const rapidjson::Value & Output::getValue() {return _value;}
+    std::string Output::getType() { return _type; }
 
 
-rapidjson::Value & Output::getValueInternal() {return _value;}
+    bool Output::hasChanges() { return _changed; }
+
+    void Output::resetChange() { _changed = false; }
+}

+ 1 - 1
lib/test/CMakeLists.txt

@@ -1,6 +1,6 @@
 if(EXISTS /usr/src/gtest)
 if(EXISTS /usr/src/gtest)
     add_executable(auslegung_test
     add_executable(auslegung_test
-            test_TestClass.cpp
+            test_ModuleMath.cpp
             )
             )
     target_link_libraries(auslegung_test gtest gtest_main ${PROJECT_NAME})
     target_link_libraries(auslegung_test gtest gtest_main ${PROJECT_NAME})
     add_test(auslegung_test auslegung_test)
     add_test(auslegung_test auslegung_test)

+ 22 - 0
lib/test/test_ModuleMath.cpp

@@ -0,0 +1,22 @@
+#include <gtest/gtest.h>
+#include <json.hpp>
+//#define private public
+#include <ModuleMath.h>
+
+
+using namespace mdd;
+TEST(ModuleMath, INT_PLUS_Int){
+    ModuleMath test = ModuleMath();
+    test.update();
+
+    EXPECT_EQ(test.getOutput(0)->getValue()["value"].get<int>(), 2);
+}
+
+TEST(ModuleMath, ARRAYINT_PLUS_ARRAYInt){
+    ModuleMath test = ModuleMath();
+    test.setInputDefaultValue(0)["value"] = {1,2,3,45};
+    test.setInputDefaultValue(1)["value"] = {10,31,23,23};
+    test.update();
+
+    EXPECT_EQ(test.getOutput(0)->getValue()["value"].dump(), "{11,33,26,68}");
+}

+ 0 - 8
lib/test/test_TestClass.cpp

@@ -1,8 +0,0 @@
-#include <gtest/gtest.h>
-#include <TestClass.h>
-
-TEST(TestClass, add){
-    TestClass test;
-
-    EXPECT_EQ(test.add(1,2), 3);
-}

+ 1 - 0
thirdparty/json

@@ -0,0 +1 @@
+Subproject commit a50a14088c5c131d57f6dd6f91741da49c1ce426

+ 0 - 22
thirdparty/rapidjson/.gitattributes

@@ -1,22 +0,0 @@
-# Set the default behavior, in case people don't have core.autocrlf set.
-* text=auto
-
-# Explicitly declare text files you want to always be normalized and converted
-# to native line endings on checkout.
-*.cpp text
-*.h text
-*.txt text
-*.md text
-*.cmake text
-*.svg text
-*.dot text
-*.yml text
-*.in text
-*.sh text
-*.autopkg text
-Dockerfile text
-
-# Denote all files that are truly binary and should not be modified.
-*.png binary
-*.jpg binary
-*.json binary

+ 0 - 28
thirdparty/rapidjson/.gitignore

@@ -1,28 +0,0 @@
-/bin/*
-!/bin/data
-!/bin/encodings
-!/bin/jsonchecker
-!/bin/types
-/build
-/doc/html
-/doc/doxygen_*.db
-*.a
-
-# Temporary files created during CMake build
-CMakeCache.txt
-CMakeFiles
-cmake_install.cmake
-CTestTestfile.cmake
-Makefile
-RapidJSON*.cmake
-RapidJSON.pc
-Testing
-/googletest
-install_manifest.txt
-Doxyfile
-Doxyfile.zh-cn
-DartConfiguration.tcl
-*.nupkg
-
-# Files created by OS
-*.DS_Store

+ 0 - 3
thirdparty/rapidjson/.gitmodules

@@ -1,3 +0,0 @@
-[submodule "thirdparty/gtest"]
-	path = thirdparty/gtest
-	url = https://github.com/google/googletest.git

+ 0 - 146
thirdparty/rapidjson/.travis.yml

@@ -1,146 +0,0 @@
-sudo: required
-dist: xenial
-
-language: cpp
-cache:
-  - ccache
-
-addons:
-  apt:
-    sources:
-      - ubuntu-toolchain-r-test
-    packages:
-      - cmake
-      - valgrind
-      - clang-8
-env:
-  global:
-    - USE_CCACHE=1
-    - CCACHE_SLOPPINESS=pch_defines,time_macros
-    - CCACHE_COMPRESS=1
-    - CCACHE_MAXSIZE=100M
-    - ARCH_FLAGS_x86='-m32'        # #266: don't use SSE on 32-bit
-    - ARCH_FLAGS_x86_64='-msse4.2' #       use SSE4.2 on 64-bit
-    - ARCH_FLAGS_aarch64='-march=armv8-a'
-    - GITHUB_REPO='Tencent/rapidjson'
-    - secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
-
-matrix:
-  include:
-    # gcc
-    - env: CONF=release ARCH=x86    CXX11=ON
-      compiler: gcc
-      arch: amd64
-    - env: CONF=release ARCH=x86_64 CXX11=ON
-      compiler: gcc
-      arch: amd64
-    - env: CONF=debug   ARCH=x86    CXX11=OFF
-      compiler: gcc
-      arch: amd64
-    - env: CONF=debug   ARCH=x86_64 CXX11=OFF
-      compiler: gcc
-      arch: amd64
-    - env: CONF=release ARCH=aarch64 CXX11=ON
-      compiler: gcc
-      arch: arm64
-    - env: CONF=debug   ARCH=aarch64 CXX11=OFF
-      compiler: gcc
-      arch: arm64
-    # clang
-    - env: CONF=debug   ARCH=x86    CXX11=ON CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=debug   ARCH=x86_64 CXX11=ON CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=debug   ARCH=x86    CXX11=OFF CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=debug   ARCH=x86_64 CXX11=OFF CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=release ARCH=x86    CXX11=ON CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=release ARCH=x86_64 CXX11=ON CCACHE_CPP2=yes
-      compiler: clang
-      arch: amd64
-    - env: CONF=debug   ARCH=aarch64 CXX11=ON CCACHE_CPP2=yes
-      compiler: clang
-      arch: arm64
-    - env: CONF=debug   ARCH=aarch64 CXX11=OFF CCACHE_CPP2=yes
-      compiler: clang
-      arch: arm64
-    # coverage report
-    - env: CONF=debug   ARCH=x86    CXX11=ON GCOV_FLAGS='--coverage'
-      compiler: gcc
-      arch: amd64
-      cache:
-        - ccache
-        - pip
-      after_success:
-        - pip install --user cpp-coveralls
-        - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
-    - env: CONF=debug   ARCH=x86_64 GCOV_FLAGS='--coverage'
-      compiler: gcc
-      arch: amd64
-      cache:
-        - ccache
-        - pip
-      after_success:
-        - pip install --user cpp-coveralls
-        - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
-    - env: CONF=debug   ARCH=aarch64 GCOV_FLAGS='--coverage'
-      compiler: gcc
-      arch: arm64
-      cache:
-        - ccache
-        - pip
-      after_success:
-        - pip install --user cpp-coveralls
-        - coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
-    - script: # Documentation task
-      - cd build
-      - cmake .. -DRAPIDJSON_HAS_STDSTRING=ON -DCMAKE_VERBOSE_MAKEFILE=ON
-      - make travis_doc
-      cache: false
-      addons:
-        apt:
-          packages:
-            - doxygen
-
-before_install:
-  - if [ "x86_64" = "$(arch)" ]; then sudo apt-get install -y g++-multilib libc6-dbg:i386 --allow-unauthenticated; fi
-
-before_script:
-    # travis provides clang-7 for amd64 and clang-3.8 for arm64
-    # here use clang-8 to all architectures as clang-7 is not available for arm64
-  - if [ -f /usr/bin/clang++-8 ]; then
-      sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 1000;
-      sudo update-alternatives --config clang++;
-      export PATH=/usr/bin:$PATH;
-    fi
-  - if [ "$CXX" = "clang++" ]; then export CCACHE_CPP2=yes; fi
-  - ccache -s
-    #   hack to avoid Valgrind bug (https://bugs.kde.org/show_bug.cgi?id=326469),
-    #   exposed by merging PR#163 (using -march=native)
-    #   TODO: Since this bug is already fixed. Remove this when valgrind can be upgraded.
-  - sed -i "s/-march=native//" CMakeLists.txt
-  - mkdir build
-
-script:
-  - if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}"; fi
-  - >
-      eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
-      (cd build && cmake
-      -DRAPIDJSON_HAS_STDSTRING=ON
-      -DRAPIDJSON_BUILD_CXX11=$CXX11
-      -DCMAKE_VERBOSE_MAKEFILE=ON
-      -DCMAKE_BUILD_TYPE=$CONF
-      -DCMAKE_CXX_FLAGS="$ARCH_FLAGS $GCOV_FLAGS"
-      -DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS
-      ..)
-  - cd build
-  - make tests -j 2
-  - make examples -j 2
-  - ctest -j 2 -V `[ "$CONF" = "release" ] || echo "-E perftest"`

+ 0 - 158
thirdparty/rapidjson/CHANGELOG.md

@@ -1,158 +0,0 @@
-# Change Log
-All notable changes to this project will be documented in this file.
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-## [Unreleased]
-
-## 1.1.0 - 2016-08-25
-
-### Added
-* Add GenericDocument ctor overload to specify JSON type (#369)
-* Add FAQ (#372, #373, #374, #376)
-* Add forward declaration header `fwd.h`
-* Add @PlatformIO Library Registry manifest file (#400)
-* Implement assignment operator for BigInteger (#404)
-* Add comments support (#443)
-* Adding coapp definition (#460)
-* documenttest.cpp: EXPECT_THROW when checking empty allocator (470)
-* GenericDocument: add implicit conversion to ParseResult (#480)
-* Use <wchar.h> with C++ linkage on Windows ARM (#485)
-* Detect little endian for Microsoft ARM targets 
-* Check Nan/Inf when writing a double (#510)
-* Add JSON Schema Implementation (#522)
-* Add iostream wrapper (#530)
-* Add Jsonx example for converting JSON into JSONx (a XML format) (#531)
-* Add optional unresolvedTokenIndex parameter to Pointer::Get() (#532)
-* Add encoding validation option for Writer/PrettyWriter (#534)
-* Add Writer::SetMaxDecimalPlaces() (#536)
-* Support {0, } and {0, m} in Regex (#539)
-* Add Value::Get/SetFloat(), Value::IsLossLessFloat/Double() (#540)
-* Add stream position check to reader unit tests (#541)
-* Add Templated accessors and range-based for (#542)
-* Add (Pretty)Writer::RawValue() (#543)
-* Add Document::Parse(std::string), Document::Parse(const char*, size_t length) and related APIs. (#553)
-* Add move constructor for GenericSchemaDocument (#554)
-* Add VS2010 and VS2015 to AppVeyor CI (#555)
-* Add parse-by-parts example (#556, #562)
-* Support parse number as string (#564, #589)
-* Add kFormatSingleLineArray for PrettyWriter (#577)
-* Added optional support for trailing commas (#584)
-* Added filterkey and filterkeydom examples (#615)
-* Added npm docs (#639)
-* Allow options for writing and parsing NaN/Infinity (#641)
-* Add std::string overload to PrettyWriter::Key() when RAPIDJSON_HAS_STDSTRING is defined (#698)
-
-### Fixed
-* Fix gcc/clang/vc warnings (#350, #394, #397, #444, #447, #473, #515, #582, #589, #595, #667)
-* Fix documentation (#482, #511, #550, #557, #614, #635, #660)
-* Fix emscripten alignment issue (#535)
-* Fix missing allocator to uses of AddMember in document (#365)
-* CMake will no longer complain that the minimum CMake version is not specified (#501)
-* Make it usable with old VC8 (VS2005) (#383)
-* Prohibit C++11 move from Document to Value (#391)
-* Try to fix incorrect 64-bit alignment (#419)
-* Check return of fwrite to avoid warn_unused_result build failures (#421)
-* Fix UB in GenericDocument::ParseStream (#426)
-* Keep Document value unchanged on parse error (#439)
-* Add missing return statement (#450)
-* Fix Document::Parse(const Ch*) for transcoding (#478)
-* encodings.h: fix typo in preprocessor condition (#495)
-* Custom Microsoft headers are necessary only for Visual Studio 2012 and lower (#559)
-* Fix memory leak for invalid regex (26e69ffde95ba4773ab06db6457b78f308716f4b)
-* Fix a bug in schema minimum/maximum keywords for 64-bit integer (e7149d665941068ccf8c565e77495521331cf390)
-* Fix a crash bug in regex (#605)
-* Fix schema "required" keyword cannot handle duplicated keys (#609)
-* Fix cmake CMP0054 warning (#612)
-* Added missing include guards in istreamwrapper.h and ostreamwrapper.h (#634)
-* Fix undefined behaviour (#646)
-* Fix buffer overrun using PutN (#673)
-* Fix rapidjson::value::Get<std::string>() may returns wrong data (#681)
-* Add Flush() for all value types (#689)
-* Handle malloc() fail in PoolAllocator (#691)
-* Fix builds on x32 platform. #703
-
-### Changed
-* Clarify problematic JSON license (#392)
-* Move Travis to container based infrastructure (#504, #558)
-* Make whitespace array more compact (#513)
-* Optimize Writer::WriteString() with SIMD (#544)
-* x86-64 48-bit pointer optimization for GenericValue (#546)
-* Define RAPIDJSON_HAS_CXX11_RVALUE_REFS directly in clang (#617)
-* Make GenericSchemaDocument constructor explicit (#674)
-* Optimize FindMember when use std::string (#690)
-
-## [1.0.2] - 2015-05-14
-
-### Added
-* Add Value::XXXMember(...) overloads for std::string (#335)
-
-### Fixed
-* Include rapidjson.h for all internal/error headers.
-* Parsing some numbers incorrectly in full-precision mode (`kFullPrecisionParseFlag`) (#342)
-* Fix some numbers parsed incorrectly (#336)
-* Fix alignment of 64bit platforms (#328)
-* Fix MemoryPoolAllocator::Clear() to clear user-buffer (0691502573f1afd3341073dd24b12c3db20fbde4)
-
-### Changed
-* CMakeLists for include as a thirdparty in projects (#334, #337)
-* Change Document::ParseStream() to use stack allocator for Reader (ffbe38614732af8e0b3abdc8b50071f386a4a685) 
-
-## [1.0.1] - 2015-04-25
-
-### Added
-* Changelog following [Keep a CHANGELOG](https://github.com/olivierlacan/keep-a-changelog) suggestions.
-
-### Fixed
-* Parsing of some numbers (e.g. "1e-00011111111111") causing assertion (#314).
-* Visual C++ 32-bit compilation error in `diyfp.h` (#317).
-
-## [1.0.0] - 2015-04-22
-
-### Added
-* 100% [Coverall](https://coveralls.io/r/Tencent/rapidjson?branch=master) coverage.
-* Version macros (#311)
-
-### Fixed
-* A bug in trimming long number sequence (4824f12efbf01af72b8cb6fc96fae7b097b73015).
-* Double quote in unicode escape (#288).
-* Negative zero roundtrip (double only) (#289).
-* Standardize behavior of `memcpy()` and `malloc()` (0c5c1538dcfc7f160e5a4aa208ddf092c787be5a, #305, 0e8bbe5e3ef375e7f052f556878be0bd79e9062d).
-
-### Removed
-* Remove an invalid `Document::ParseInsitu()` API (e7f1c6dd08b522cfcf9aed58a333bd9a0c0ccbeb).
-
-## 1.0-beta - 2015-04-8
-
-### Added
-* RFC 7159 (#101)
-* Optional Iterative Parser (#76)
-* Deep-copy values (#20)
-* Error code and message (#27)
-* ASCII Encoding (#70)
-* `kParseStopWhenDoneFlag` (#83)
-* `kParseFullPrecisionFlag` (881c91d696f06b7f302af6d04ec14dd08db66ceb)
-* Add `Key()` to handler concept (#134)
-* C++11 compatibility and support (#128)
-* Optimized number-to-string and vice versa conversions (#137, #80)
-* Short-String Optimization (#131)
-* Local stream optimization by traits (#32)
-* Travis & Appveyor Continuous Integration, with Valgrind verification (#24, #242)
-* Redo all documentation (English, Simplified Chinese)
-
-### Changed
-* Copyright ownership transferred to THL A29 Limited (a Tencent company).
-* Migrating from Premake to CMAKE (#192)
-* Resolve all warning reports
-
-### Removed
-* Remove other JSON libraries for performance comparison (#180)
-
-## 0.11 - 2012-11-16
-
-## 0.1 - 2011-11-18
-
-[Unreleased]: https://github.com/Tencent/rapidjson/compare/v1.1.0...HEAD
-[1.1.0]: https://github.com/Tencent/rapidjson/compare/v1.0.2...v1.1.0
-[1.0.2]: https://github.com/Tencent/rapidjson/compare/v1.0.1...v1.0.2
-[1.0.1]: https://github.com/Tencent/rapidjson/compare/v1.0.0...v1.0.1
-[1.0.0]: https://github.com/Tencent/rapidjson/compare/v1.0-beta...v1.0.0

+ 0 - 226
thirdparty/rapidjson/CMakeLists.txt

@@ -1,226 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-if(POLICY CMP0025)
-  # detect Apple's Clang
-  cmake_policy(SET CMP0025 NEW)
-endif()
-if(POLICY CMP0054)
-  cmake_policy(SET CMP0054 NEW)
-endif()
-
-SET(CMAKE_MODULE_PATH CMakeModules)
-
-set(LIB_MAJOR_VERSION "1")
-set(LIB_MINOR_VERSION "1")
-set(LIB_PATCH_VERSION "0")
-set(LIB_VERSION_STRING "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_PATCH_VERSION}")
-
-if (CMAKE_VERSION VERSION_LESS 3.0)
-    PROJECT(RapidJSON CXX)
-else()
-    cmake_policy(SET CMP0048 NEW)
-    PROJECT(RapidJSON VERSION "${LIB_VERSION_STRING}" LANGUAGES CXX)
-endif()
-
-# compile in release with debug info mode by default
-if(NOT CMAKE_BUILD_TYPE)
-    set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
-endif()
-
-# Build all binaries in a separate directory
-SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
-option(RAPIDJSON_BUILD_DOC "Build rapidjson documentation." ON)
-option(RAPIDJSON_BUILD_EXAMPLES "Build rapidjson examples." ON)
-option(RAPIDJSON_BUILD_TESTS "Build rapidjson perftests and unittests." ON)
-option(RAPIDJSON_BUILD_THIRDPARTY_GTEST
-    "Use gtest installation in `thirdparty/gtest` by default if available" OFF)
-
-option(RAPIDJSON_BUILD_CXX11 "Build rapidjson with C++11 (gcc/clang)" ON)
-if(RAPIDJSON_BUILD_CXX11)
-    set(CMAKE_CXX_STANDARD 11)
-    set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
-endif()
-
-option(RAPIDJSON_BUILD_ASAN "Build rapidjson with address sanitizer (gcc/clang)" OFF)
-option(RAPIDJSON_BUILD_UBSAN "Build rapidjson with undefined behavior sanitizer (gcc/clang)" OFF)
-
-option(RAPIDJSON_ENABLE_INSTRUMENTATION_OPT "Build rapidjson with -march or -mcpu options" ON)
-
-option(RAPIDJSON_HAS_STDSTRING "" OFF)
-if(RAPIDJSON_HAS_STDSTRING)
-    add_definitions(-DRAPIDJSON_HAS_STDSTRING)
-endif()
-
-find_program(CCACHE_FOUND ccache)
-if(CCACHE_FOUND)
-    set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
-    set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
-    if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics")
-    endif()
-endif(CCACHE_FOUND)
-
-if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
-    if(RAPIDJSON_ENABLE_INSTRUMENTATION_OPT AND NOT CMAKE_CROSSCOMPILING)
-        if(CMAKE_SYSTEM_PROCESSOR STREQUAL "powerpc" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
-          set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=native")
-        else()
-          #FIXME: x86 is -march=native, but doesn't mean every arch is this option. To keep original project's compatibility, I leave this except POWER.
-          set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
-        endif()
-    endif()
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
-    set(EXTRA_CXX_FLAGS -Weffc++ -Wswitch-default -Wfloat-equal -Wconversion -Wsign-conversion)
-    if (RAPIDJSON_BUILD_CXX11 AND CMAKE_VERSION VERSION_LESS 3.1)
-        if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
-        else()
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-        endif()
-    endif()
-    if (RAPIDJSON_BUILD_ASAN)
-        if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8.0")
-            message(FATAL_ERROR "GCC < 4.8 doesn't support the address sanitizer")
-        else()
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
-        endif()
-    endif()
-    if (RAPIDJSON_BUILD_UBSAN)
-        if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9.0")
-            message(FATAL_ERROR "GCC < 4.9 doesn't support the undefined behavior sanitizer")
-        else()
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
-        endif()
-    endif()
-elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-    if(NOT CMAKE_CROSSCOMPILING)
-      if(CMAKE_SYSTEM_PROCESSOR STREQUAL "powerpc" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
-        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=native")
-      else()
-        #FIXME: x86 is -march=native, but doesn't mean every arch is this option. To keep original project's compatibility, I leave this except POWER.
-        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
-      endif()
-    endif()
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -Wno-missing-field-initializers")
-    set(EXTRA_CXX_FLAGS -Weffc++ -Wswitch-default -Wfloat-equal -Wconversion -Wimplicit-fallthrough)
-    if (RAPIDJSON_BUILD_CXX11 AND CMAKE_VERSION VERSION_LESS 3.1)
-        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-    endif()
-    if (RAPIDJSON_BUILD_ASAN)
-        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
-    endif()
-    if (RAPIDJSON_BUILD_UBSAN)
-        if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error")
-        else()
-            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
-        endif()
-    endif()
-elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
-    add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
-elseif (CMAKE_CXX_COMPILER_ID MATCHES "XL")
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qarch=auto")
-endif()
-
-#add extra search paths for libraries and includes
-SET(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The directory the headers are installed in")
-SET(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE STRING "Directory where lib will install")
-SET(DOC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME}" CACHE PATH "Path to the documentation")
-
-IF(UNIX OR CYGWIN)
-    SET(_CMAKE_INSTALL_DIR "${LIB_INSTALL_DIR}/cmake/${PROJECT_NAME}")
-ELSEIF(WIN32)
-    SET(_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/cmake")
-ENDIF()
-SET(CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" CACHE PATH "The directory cmake files are installed in")
-
-include_directories(include)
-
-if(RAPIDJSON_BUILD_DOC)
-    add_subdirectory(doc)
-endif()
-
-add_custom_target(travis_doc)
-add_custom_command(TARGET travis_doc
-    COMMAND travis-doxygen.sh)
-
-if(RAPIDJSON_BUILD_EXAMPLES)
-    add_subdirectory(example)
-endif()
-
-if(RAPIDJSON_BUILD_TESTS)
-    if(MSVC11)
-        # required for VS2012 due to missing support for variadic templates
-        add_definitions(-D_VARIADIC_MAX=10)
-    endif(MSVC11)
-    add_subdirectory(test)
-    include(CTest)
-endif()
-
-# pkg-config
-IF (UNIX OR CYGWIN)
-  CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in
-                  ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
-                  @ONLY)
-  INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
-      DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
-      COMPONENT pkgconfig)
-ENDIF()
-
-install(FILES readme.md
-        DESTINATION "${DOC_INSTALL_DIR}"
-        COMPONENT doc)
-
-install(DIRECTORY include/rapidjson
-    DESTINATION "${INCLUDE_INSTALL_DIR}"
-    COMPONENT dev)
-
-install(DIRECTORY example
-    DESTINATION "${DOC_INSTALL_DIR}/examples"
-    COMPONENT examples
-    # Following patterns are for excluding the intermediate/object files
-    # from an install of in-source CMake build.
-    PATTERN "CMakeFiles" EXCLUDE
-    PATTERN "Makefile" EXCLUDE
-    PATTERN "cmake_install.cmake" EXCLUDE)
-
-# Provide config and version files to be used by other applications
-# ===============================
-
-################################################################################
-# Export package for use from the build tree
-EXPORT( PACKAGE ${PROJECT_NAME} )
-
-# Create the RapidJSONConfig.cmake file for other cmake projects.
-# ... for the build tree
-SET( CONFIG_SOURCE_DIR .)
-SET( CONFIG_DIR ${CMAKE_CURRENT_BINARY_DIR})
-SET( ${PROJECT_NAME}_INCLUDE_DIR "\${${PROJECT_NAME}_SOURCE_DIR}/include" )
-
-CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}Config.cmake.in
-    ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake @ONLY )
-CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in
-    ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY)
-
-# ... for the install tree
-SET( CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} )
-FILE( RELATIVE_PATH REL_INCLUDE_DIR
-    "${CMAKECONFIG_INSTALL_DIR}"
-    "${CMAKE_INSTALL_PREFIX}/include" )
-
-SET( ${PROJECT_NAME}_INCLUDE_DIR "\${${PROJECT_NAME}_CMAKE_DIR}/${REL_INCLUDE_DIR}" )
-SET( CONFIG_SOURCE_DIR )
-SET( CONFIG_DIR )
-CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}Config.cmake.in
-    ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${PROJECT_NAME}Config.cmake @ONLY )
-
-INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${PROJECT_NAME}Config.cmake"
-        DESTINATION ${CMAKECONFIG_INSTALL_DIR} )
-
-# Install files
-INSTALL(FILES
-    ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
-    ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
-    DESTINATION "${CMAKE_INSTALL_DIR}"
-    COMPONENT dev)

+ 0 - 30
thirdparty/rapidjson/CMakeModules/FindGTestSrc.cmake

@@ -1,30 +0,0 @@
-
-SET(GTEST_SEARCH_PATH
-    "${GTEST_SOURCE_DIR}"
-    "${CMAKE_CURRENT_LIST_DIR}/../thirdparty/gtest/googletest")
-
-IF(UNIX)
-    IF(RAPIDJSON_BUILD_THIRDPARTY_GTEST)
-        LIST(APPEND GTEST_SEARCH_PATH "/usr/src/gtest")
-    ELSE()
-        LIST(INSERT GTEST_SEARCH_PATH 1 "/usr/src/gtest")
-    ENDIF()
-ENDIF()
-
-FIND_PATH(GTEST_SOURCE_DIR
-    NAMES CMakeLists.txt src/gtest_main.cc
-    PATHS ${GTEST_SEARCH_PATH})
-
-
-# Debian installs gtest include directory in /usr/include, thus need to look
-# for include directory separately from source directory.
-FIND_PATH(GTEST_INCLUDE_DIR
-    NAMES gtest/gtest.h
-    PATH_SUFFIXES include
-    HINTS ${GTEST_SOURCE_DIR}
-    PATHS ${GTEST_SEARCH_PATH})
-
-INCLUDE(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(GTestSrc DEFAULT_MSG
-    GTEST_SOURCE_DIR
-    GTEST_INCLUDE_DIR)

+ 0 - 7
thirdparty/rapidjson/RapidJSON.pc.in

@@ -1,7 +0,0 @@
-includedir=@INCLUDE_INSTALL_DIR@
-
-Name: @PROJECT_NAME@
-Description: A fast JSON parser/generator for C++ with both SAX/DOM style API
-Version: @LIB_VERSION_STRING@
-URL: https://github.com/Tencent/rapidjson
-Cflags: -I${includedir}

+ 0 - 25
thirdparty/rapidjson/RapidJSONConfig.cmake.in

@@ -1,25 +0,0 @@
-################################################################################
-# CMake minimum version required
-cmake_minimum_required(VERSION 3.0)
-
-################################################################################
-# RapidJSON source dir
-set( RapidJSON_SOURCE_DIR "@CONFIG_SOURCE_DIR@")
-
-################################################################################
-# RapidJSON build dir
-set( RapidJSON_DIR "@CONFIG_DIR@")
-
-################################################################################
-# Compute paths
-get_filename_component(RapidJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-
-set( RapidJSON_INCLUDE_DIR  "@RapidJSON_INCLUDE_DIR@" )
-set( RapidJSON_INCLUDE_DIRS  "@RapidJSON_INCLUDE_DIR@" )
-message(STATUS "RapidJSON found. Headers: ${RapidJSON_INCLUDE_DIRS}")
-
-if(NOT TARGET rapidjson)
-  add_library(rapidjson INTERFACE IMPORTED)
-  set_property(TARGET rapidjson PROPERTY
-    INTERFACE_INCLUDE_DIRECTORIES ${RapidJSON_INCLUDE_DIRS})
-endif()

+ 0 - 10
thirdparty/rapidjson/RapidJSONConfigVersion.cmake.in

@@ -1,10 +0,0 @@
-SET(PACKAGE_VERSION "@LIB_VERSION_STRING@")
-
-IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
-  SET(PACKAGE_VERSION_EXACT "true")
-ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
-IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
-  SET(PACKAGE_VERSION_COMPATIBLE "true")
-ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
-  SET(PACKAGE_VERSION_UNSUITABLE "true")
-ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)

+ 0 - 54
thirdparty/rapidjson/appveyor.yml

@@ -1,54 +0,0 @@
-version: 1.1.0.{build}
-
-configuration:
-- Debug
-- Release
-
-environment:
-  matrix:
-  # - VS_VERSION: 9 2008
-  #   VS_PLATFORM: win32
-  # - VS_VERSION: 9 2008
-  #   VS_PLATFORM: x64
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 10 2010
-    VS_PLATFORM: win32
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 10 2010
-    VS_PLATFORM: x64
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 11 2012
-    VS_PLATFORM: win32
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 11 2012
-    VS_PLATFORM: x64
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 12 2013
-    VS_PLATFORM: win32
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
-    VS_VERSION: 12 2013
-    VS_PLATFORM: x64
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
-    VS_VERSION: 14 2015
-    VS_PLATFORM: win32
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
-    VS_VERSION: 14 2015
-    VS_PLATFORM: x64
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
-    VS_VERSION: 15 2017
-    VS_PLATFORM: win32
-  - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
-    VS_VERSION: 15 2017
-    VS_PLATFORM: x64
-
-before_build:
-- git submodule update --init --recursive
-- cmake -H. -BBuild/VS -G "Visual Studio %VS_VERSION%" -DCMAKE_GENERATOR_PLATFORM=%VS_PLATFORM% -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=true -Wno-dev
-
-build:
-  project: Build\VS\RapidJSON.sln
-  parallel: true
-  verbosity: minimal
-
-test_script:
-- cd Build\VS && if %CONFIGURATION%==Debug (ctest --verbose -E perftest --build-config %CONFIGURATION%) else (ctest --verbose --build-config %CONFIGURATION%)

+ 0 - 1
thirdparty/rapidjson/bin/data/abcde.txt

@@ -1 +0,0 @@
-abcde

+ 0 - 22
thirdparty/rapidjson/bin/data/glossary.json

@@ -1,22 +0,0 @@
-{
-    "glossary": {
-        "title": "example glossary",
-		"GlossDiv": {
-            "title": "S",
-			"GlossList": {
-                "GlossEntry": {
-                    "ID": "SGML",
-					"SortAs": "SGML",
-					"GlossTerm": "Standard Generalized Markup Language",
-					"Acronym": "SGML",
-					"Abbrev": "ISO 8879:1986",
-					"GlossDef": {
-                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
-						"GlossSeeAlso": ["GML", "XML"]
-                    },
-					"GlossSee": "markup"
-                }
-            }
-        }
-    }
-}

+ 0 - 27
thirdparty/rapidjson/bin/data/menu.json

@@ -1,27 +0,0 @@
-{"menu": {
-    "header": "SVG Viewer",
-    "items": [
-        {"id": "Open"},
-        {"id": "OpenNew", "label": "Open New"},
-        null,
-        {"id": "ZoomIn", "label": "Zoom In"},
-        {"id": "ZoomOut", "label": "Zoom Out"},
-        {"id": "OriginalView", "label": "Original View"},
-        null,
-        {"id": "Quality"},
-        {"id": "Pause"},
-        {"id": "Mute"},
-        null,
-        {"id": "Find", "label": "Find..."},
-        {"id": "FindAgain", "label": "Find Again"},
-        {"id": "Copy"},
-        {"id": "CopyAgain", "label": "Copy Again"},
-        {"id": "CopySVG", "label": "Copy SVG"},
-        {"id": "ViewSVG", "label": "View SVG"},
-        {"id": "ViewSource", "label": "View Source"},
-        {"id": "SaveAs", "label": "Save As"},
-        null,
-        {"id": "Help"},
-        {"id": "About", "label": "About Adobe CVG Viewer..."}
-    ]
-}}

+ 0 - 1
thirdparty/rapidjson/bin/data/readme.txt

@@ -1 +0,0 @@
-sample.json is obtained from http://code.google.com/p/json-test-suite/downloads/detail?name=sample.zip

File diff suppressed because it is too large
+ 0 - 3315
thirdparty/rapidjson/bin/data/sample.json


+ 0 - 88
thirdparty/rapidjson/bin/data/webapp.json

@@ -1,88 +0,0 @@
-{"web-app": {
-  "servlet": [   
-    {
-      "servlet-name": "cofaxCDS",
-      "servlet-class": "org.cofax.cds.CDSServlet",
-      "init-param": {
-        "configGlossary:installationAt": "Philadelphia, PA",
-        "configGlossary:adminEmail": "ksm@pobox.com",
-        "configGlossary:poweredBy": "Cofax",
-        "configGlossary:poweredByIcon": "/images/cofax.gif",
-        "configGlossary:staticPath": "/content/static",
-        "templateProcessorClass": "org.cofax.WysiwygTemplate",
-        "templateLoaderClass": "org.cofax.FilesTemplateLoader",
-        "templatePath": "templates",
-        "templateOverridePath": "",
-        "defaultListTemplate": "listTemplate.htm",
-        "defaultFileTemplate": "articleTemplate.htm",
-        "useJSP": false,
-        "jspListTemplate": "listTemplate.jsp",
-        "jspFileTemplate": "articleTemplate.jsp",
-        "cachePackageTagsTrack": 200,
-        "cachePackageTagsStore": 200,
-        "cachePackageTagsRefresh": 60,
-        "cacheTemplatesTrack": 100,
-        "cacheTemplatesStore": 50,
-        "cacheTemplatesRefresh": 15,
-        "cachePagesTrack": 200,
-        "cachePagesStore": 100,
-        "cachePagesRefresh": 10,
-        "cachePagesDirtyRead": 10,
-        "searchEngineListTemplate": "forSearchEnginesList.htm",
-        "searchEngineFileTemplate": "forSearchEngines.htm",
-        "searchEngineRobotsDb": "WEB-INF/robots.db",
-        "useDataStore": true,
-        "dataStoreClass": "org.cofax.SqlDataStore",
-        "redirectionClass": "org.cofax.SqlRedirection",
-        "dataStoreName": "cofax",
-        "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
-        "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
-        "dataStoreUser": "sa",
-        "dataStorePassword": "dataStoreTestQuery",
-        "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
-        "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
-        "dataStoreInitConns": 10,
-        "dataStoreMaxConns": 100,
-        "dataStoreConnUsageLimit": 100,
-        "dataStoreLogLevel": "debug",
-        "maxUrlLength": 500}},
-    {
-      "servlet-name": "cofaxEmail",
-      "servlet-class": "org.cofax.cds.EmailServlet",
-      "init-param": {
-      "mailHost": "mail1",
-      "mailHostOverride": "mail2"}},
-    {
-      "servlet-name": "cofaxAdmin",
-      "servlet-class": "org.cofax.cds.AdminServlet"},
- 
-    {
-      "servlet-name": "fileServlet",
-      "servlet-class": "org.cofax.cds.FileServlet"},
-    {
-      "servlet-name": "cofaxTools",
-      "servlet-class": "org.cofax.cms.CofaxToolsServlet",
-      "init-param": {
-        "templatePath": "toolstemplates/",
-        "log": 1,
-        "logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
-        "logMaxSize": "",
-        "dataLog": 1,
-        "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
-        "dataLogMaxSize": "",
-        "removePageCache": "/content/admin/remove?cache=pages&id=",
-        "removeTemplateCache": "/content/admin/remove?cache=templates&id=",
-        "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
-        "lookInContext": 1,
-        "adminGroupID": 4,
-        "betaServer": true}}],
-  "servlet-mapping": {
-    "cofaxCDS": "/",
-    "cofaxEmail": "/cofaxutil/aemail/*",
-    "cofaxAdmin": "/admin/*",
-    "fileServlet": "/static/*",
-    "cofaxTools": "/tools/*"},
- 
-  "taglib": {
-    "taglib-uri": "cofax.tld",
-    "taglib-location": "/WEB-INF/tlds/cofax.tld"}}}

+ 0 - 26
thirdparty/rapidjson/bin/data/widget.json

@@ -1,26 +0,0 @@
-{"widget": {
-    "debug": "on",
-    "window": {
-        "title": "Sample Konfabulator Widget",
-        "name": "main_window",
-        "width": 500,
-        "height": 500
-    },
-    "image": { 
-        "src": "Images/Sun.png",
-        "name": "sun1",
-        "hOffset": 250,
-        "vOffset": 250,
-        "alignment": "center"
-    },
-    "text": {
-        "data": "Click Here",
-        "size": 36,
-        "style": "bold",
-        "name": "text1",
-        "hOffset": 250,
-        "vOffset": 100,
-        "alignment": "center",
-        "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
-    }
-}}

BIN
thirdparty/rapidjson/bin/encodings/utf16be.json


BIN
thirdparty/rapidjson/bin/encodings/utf16bebom.json


BIN
thirdparty/rapidjson/bin/encodings/utf16le.json


BIN
thirdparty/rapidjson/bin/encodings/utf16lebom.json


BIN
thirdparty/rapidjson/bin/encodings/utf32be.json


BIN
thirdparty/rapidjson/bin/encodings/utf32bebom.json


BIN
thirdparty/rapidjson/bin/encodings/utf32le.json


BIN
thirdparty/rapidjson/bin/encodings/utf32lebom.json


+ 0 - 7
thirdparty/rapidjson/bin/encodings/utf8.json

@@ -1,7 +0,0 @@
-{
-	"en":"I can eat glass and it doesn't hurt me.",
-	"zh-Hant":"我能吞下玻璃而不傷身體。",
-	"zh-Hans":"我能吞下玻璃而不伤身体。",
-	"ja":"私はガラスを食べられます。それは私を傷つけません。",
-	"ko":"나는 유리를 먹을 수 있어요. 그래도 아프지 않아요"
-}

+ 0 - 7
thirdparty/rapidjson/bin/encodings/utf8bom.json

@@ -1,7 +0,0 @@
-{
-	"en":"I can eat glass and it doesn't hurt me.",
-	"zh-Hant":"我能吞下玻璃而不傷身體。",
-	"zh-Hans":"我能吞下玻璃而不伤身体。",
-	"ja":"私はガラスを食べられます。それは私を傷つけません。",
-	"ko":"나는 유리를 먹을 수 있어요. 그래도 아프지 않아요"
-}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail1.json

@@ -1 +0,0 @@
-"A JSON payload should be an object or array, not a string."

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail10.json

@@ -1 +0,0 @@
-{"Extra value after close": true} "misplaced quoted value"

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail11.json

@@ -1 +0,0 @@
-{"Illegal expression": 1 + 2}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail12.json

@@ -1 +0,0 @@
-{"Illegal invocation": alert()}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail13.json

@@ -1 +0,0 @@
-{"Numbers cannot have leading zeroes": 013}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail14.json

@@ -1 +0,0 @@
-{"Numbers cannot be hex": 0x14}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail15.json

@@ -1 +0,0 @@
-["Illegal backslash escape: \x15"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail16.json

@@ -1 +0,0 @@
-[\naked]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail17.json

@@ -1 +0,0 @@
-["Illegal backslash escape: \017"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail18.json

@@ -1 +0,0 @@
-[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail19.json

@@ -1 +0,0 @@
-{"Missing colon" null}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail2.json

@@ -1 +0,0 @@
-["Unclosed array"

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail20.json

@@ -1 +0,0 @@
-{"Double colon":: null}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail21.json

@@ -1 +0,0 @@
-{"Comma instead of colon", null}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail22.json

@@ -1 +0,0 @@
-["Colon instead of comma": false]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail23.json

@@ -1 +0,0 @@
-["Bad value", truth]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail24.json

@@ -1 +0,0 @@
-['single quote']

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail25.json

@@ -1 +0,0 @@
-["	tab	character	in	string	"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail26.json

@@ -1 +0,0 @@
-["tab\   character\   in\  string\  "]

+ 0 - 2
thirdparty/rapidjson/bin/jsonchecker/fail27.json

@@ -1,2 +0,0 @@
-["line
-break"]

+ 0 - 2
thirdparty/rapidjson/bin/jsonchecker/fail28.json

@@ -1,2 +0,0 @@
-["line\
-break"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail29.json

@@ -1 +0,0 @@
-[0e]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail3.json

@@ -1 +0,0 @@
-{unquoted_key: "keys must be quoted"}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail30.json

@@ -1 +0,0 @@
-[0e+]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail31.json

@@ -1 +0,0 @@
-[0e+-1]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail32.json

@@ -1 +0,0 @@
-{"Comma instead if closing brace": true,

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail33.json

@@ -1 +0,0 @@
-["mismatch"}

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail4.json

@@ -1 +0,0 @@
-["extra comma",]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail5.json

@@ -1 +0,0 @@
-["double extra comma",,]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail6.json

@@ -1 +0,0 @@
-[   , "<-- missing value"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail7.json

@@ -1 +0,0 @@
-["Comma after the close"],

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail8.json

@@ -1 +0,0 @@
-["Extra close"]]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/fail9.json

@@ -1 +0,0 @@
-{"Extra comma": true,}

+ 0 - 58
thirdparty/rapidjson/bin/jsonchecker/pass1.json

@@ -1,58 +0,0 @@
-[
-    "JSON Test Pattern pass1",
-    {"object with 1 member":["array with 1 element"]},
-    {},
-    [],
-    -42,
-    true,
-    false,
-    null,
-    {
-        "integer": 1234567890,
-        "real": -9876.543210,
-        "e": 0.123456789e-12,
-        "E": 1.234567890E+34,
-        "":  23456789012E66,
-        "zero": 0,
-        "one": 1,
-        "space": " ",
-        "quote": "\"",
-        "backslash": "\\",
-        "controls": "\b\f\n\r\t",
-        "slash": "/ & \/",
-        "alpha": "abcdefghijklmnopqrstuvwyz",
-        "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ",
-        "digit": "0123456789",
-        "0123456789": "digit",
-        "special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?",
-        "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
-        "true": true,
-        "false": false,
-        "null": null,
-        "array":[  ],
-        "object":{  },
-        "address": "50 St. James Street",
-        "url": "http://www.JSON.org/",
-        "comment": "// /* <!-- --",
-        "# -- --> */": " ",
-        " s p a c e d " :[1,2 , 3
-
-,
-
-4 , 5        ,          6           ,7        ],"compact":[1,2,3,4,5,6,7],
-        "jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}",
-        "quotes": "&#34; \u0022 %22 0x22 034 &#x22;",
-        "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"
-: "A key can be any string"
-    },
-    0.5 ,98.6
-,
-99.44
-,
-
-1066,
-1e1,
-0.1e1,
-1e-1,
-1e00,2e+00,2e-00
-,"rosebud"]

+ 0 - 1
thirdparty/rapidjson/bin/jsonchecker/pass2.json

@@ -1 +0,0 @@
-[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]

+ 0 - 6
thirdparty/rapidjson/bin/jsonchecker/pass3.json

@@ -1,6 +0,0 @@
-{
-    "JSON Test Pattern pass3": {
-        "The outermost value": "must be an object or array.",
-        "In this test": "It is an object."
-    }
-}

+ 0 - 3
thirdparty/rapidjson/bin/jsonchecker/readme.txt

@@ -1,3 +0,0 @@
-Test suite from http://json.org/JSON_checker/.
-
-If the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files.

+ 0 - 102
thirdparty/rapidjson/bin/types/booleans.json

@@ -1,102 +0,0 @@
-[
-  true,
-  true,
-  false,
-  false,
-  true,
-  true,
-  true,
-  false,
-  false,
-  true,
-  false,
-  false,
-  true,
-  false,
-  false,
-  false,
-  true,
-  false,
-  false,
-  true,
-  true,
-  false,
-  true,
-  true,
-  true,
-  false,
-  false,
-  false,
-  true,
-  false,
-  true,
-  false,
-  false,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  false,
-  false,
-  true,
-  false,
-  false,
-  false,
-  true,
-  true,
-  false,
-  true,
-  true,
-  false,
-  true,
-  false,
-  true,
-  true,
-  true,
-  false,
-  false,
-  false,
-  true,
-  false,
-  false,
-  false,
-  true,
-  true,
-  false,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  false,
-  false,
-  false,
-  false,
-  false,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  true,
-  false,
-  false,
-  false,
-  true,
-  false,
-  false,
-  false,
-  true,
-  true,
-  true,
-  false,
-  false,
-  true,
-  false
-]

+ 0 - 102
thirdparty/rapidjson/bin/types/floats.json

@@ -1,102 +0,0 @@
-[
-  135.747111636,
-  123.377054008,
-  140.527504552,
-  -72.299143906,
-  -23.851678949,
-  73.586193519,
-  -158.299382442,
-  177.477876032,
-  32.268518982,
-  -139.560009969,
-  115.203105183,
-  -106.025823607,
-  167.224138231,
-  103.378383732,
-  -97.498486285,
-  18.184723416,
-  69.137075711,
-  33.849002681,
-  -120.185228215,
-  -20.841408615,
-  -172.659492727,
-  -2.691464061,
-  22.426164066,
-  -98.416909437,
-  -31.603082708,
-  -85.072296561,
-  108.620987395,
-  -43.127078238,
-  -126.473562057,
-  -158.595489097,
-  -57.890678254,
-  -13.254016573,
-  -85.024504709,
-  171.663552644,
-  -146.495558248,
-  -10.606748276,
-  -118.786969354,
-  153.352057804,
-  -45.215545083,
-  37.038725288,
-  106.344071897,
-  -64.607402031,
-  85.148030911,
-  28.897784566,
-  39.51082061,
-  20.450382102,
-  -113.174943618,
-  71.60785784,
-  -168.202648062,
-  -157.338200017,
-  10.879588527,
-  -114.261694831,
-  -5.622927072,
-  -173.330830616,
-  -29.47002003,
-  -39.829034201,
-  50.031545162,
-  82.815735508,
-  -119.188760828,
-  -48.455928081,
-  163.964263034,
-  46.30378861,
-  -26.248889762,
-  -47.354615322,
-  155.388677633,
-  -166.710356904,
-  42.987233558,
-  144.275297374,
-  37.394383186,
-  -122.550388725,
-  177.469945914,
-  101.104677413,
-  109.429869885,
-  -104.919625624,
-  147.522756541,
-  -81.294703727,
-  122.744731363,
-  81.803603684,
-  26.321556167,
-  147.045441354,
-  147.256895816,
-  -174.211095908,
-  52.518769316,
-  -78.58250334,
-  -173.356685435,
-  -107.728209264,
-  -69.982325771,
-  -113.776095893,
-  -35.785267074,
-  -105.748545976,
-  -30.206523864,
-  -76.185311723,
-  -126.400112781,
-  -26.864958639,
-  56.840053629,
-  93.781553535,
-  -116.002949803,
-  -46.617140948,
-  176.846840093,
-  -144.24821335
-]

+ 0 - 102
thirdparty/rapidjson/bin/types/guids.json

@@ -1,102 +0,0 @@
-[
-  "d35bf0d4-8d8f-4e17-a5c3-ad9bfd675266",
-  "db402774-eeb6-463b-9986-c458c44d8b5a",
-  "2a2e4101-b5f2-40b8-8750-e03f01661e60",
-  "76787cfa-f4eb-4d62-aaad-e1d588d00ad5",
-  "fd73894b-b500-4a7c-888c-06b5bd9cec65",
-  "cce1862a-cf31-4ef2-9e23-f1d23b4e6163",
-  "00a98bb0-2b6e-4368-8512-71c21aa87db7",
-  "ab9a8d69-cec7-4550-bd35-3ed678e22782",
-  "f18b48e1-5114-4fbe-9652-579e8d66950e",
-  "4efe3baa-7ac5-4d6a-a839-6b9cfe825764",
-  "b4aec119-5b0a-434c-b388-109816c482a5",
-  "e0ef0cbb-127a-4a28-9831-5741b4295275",
-  "d50286a5-cb7b-4c9e-be99-f214439bae8c",
-  "a981094c-f1ac-42ed-a9fa-86404c7210ff",
-  "2a34ee57-5815-4829-b77b-eeebaa8fe340",
-  "a0530d44-48f8-4eff-b9ea-8810c4308351",
-  "c6f91509-83e1-4ea1-9680-e667fbfd56ee",
-  "cab11402-dcdd-4454-b190-6da124947395",
-  "283d159c-2b18-4856-b4c7-5059252eaa15",
-  "146157c6-72a8-4051-9991-cb6ea6743d81",
-  "aef6f269-7306-4bd2-83f7-6d5605b5dc9a",
-  "37fe6027-d638-4017-80a9-e7b0567b278e",
-  "5003d731-33fb-4159-af61-d76348a44079",
-  "e0e06979-5f80-4713-9fe0-8a4d60dc89f8",
-  "7e85bdc3-0345-4cb6-9398-ccab06e79976",
-  "f2ebf5af-6568-4ffe-a46d-403863fd4b66",
-  "e0b5bb1c-b4dd-4535-9a9e-3c73f1167d46",
-  "c852d20b-6bcb-4b12-bd57-308296c64c5a",
-  "7ac3ae82-1818-49cd-a8a4-5ac77dfafd46",
-  "138004a9-76e2-4ad7-bd42-e74dabdbb803",
-  "ab25b5be-96be-45b0-b765-947b40ec36a6",
-  "08404734-fd57-499e-a4cf-71e9ec782ede",
-  "8dfdeb16-248b-4a21-bf89-2e22b11a4101",
-  "a0e44ef0-3b09-41e8-ad5d-ed8e6a1a2a67",
-  "a7981e49-188d-414a-9779-b1ad91e599d1",
-  "329186c0-bf27-4208-baf7-c0a0a5a2d5b7",
-  "cb5f3381-d33e-4b30-b1a9-f482623cad33",
-  "15031262-ca73-4e3c-bd0a-fcf89bdf0caf",
-  "6d7333d1-2e8c-4d78-bfde-5be47e70eb13",
-  "acaa160c-670a-4e8f-ac45-49416e77d5f9",
-  "228f87eb-cde4-4106-808b-2dbf3c7b6d2e",
-  "2ff830a3-5445-4d8e-b161-bddd30666697",
-  "f488bedd-ff6e-4108-b9a7-07f6da62f476",
-  "2e12b846-0a34-478e-adf7-a438493803e6",
-  "6686b8ef-7446-4d86-bd8c-df24119e3bfe",
-  "e474a5c5-5793-4d41-b4ab-5423acc56ef1",
-  "ac046573-e718-44dc-a0dc-9037eeaba6a9",
-  "6b0e9099-cf53-4d5a-8a71-977528628fcf",
-  "d51a3f22-0ff9-4087-ba9b-fcee2a2d8ade",
-  "bdc01286-3511-4d22-bfb8-76d01203d366",
-  "ca44eb84-17ff-4f27-8f1e-1bd25f4e8725",
-  "4e9a8c2f-be0b-4913-92d2-c801b9a50d04",
-  "7685d231-dadd-4041-9165-898397438ab7",
-  "86f0bf26-d66a-44d8-99f5-d6768addae3b",
-  "2ca1167c-72ba-45a0-aa42-faf033db0d0b",
-  "199a1182-ea55-49ff-ba51-71c29cdd0aac",
-  "be6a4dd2-c821-4aa0-8b83-d64d6644b5b2",
-  "4c5f4781-7f80-4daa-9c20-76b183000514",
-  "513b31bd-54fb-4d12-a427-42a7c13ff8e1",
-  "8e211bcb-d76c-4012-83ad-74dd7d23b687",
-  "44d5807e-0501-4f66-8779-e244d4fdca0a",
-  "db8cd555-0563-4b7b-b00c-eada300a7065",
-  "cb14d0c9-46cc-4797-bd3a-752b05629f07",
-  "4f68b3ef-ac9b-47a0-b6d7-57f398a5c6a5",
-  "77221aae-1bcf-471c-be45-7f31f733f9d6",
-  "42a7cac8-9e80-4c45-8c71-511d863c98ea",
-  "f9018d22-b82c-468c-bdb5-8864d5964801",
-  "75f4e9b8-62a2-4f21-ad8a-e19eff0419bc",
-  "9b7385c8-8653-4184-951c-b0ac1b36b42e",
-  "571018aa-ffbf-4b42-a16d-07b57a7f5f0e",
-  "35de4a2f-6bf1-45aa-b820-2a27ea833e44",
-  "0b8edb20-3bb4-4cb4-b089-31957466dbab",
-  "97da4778-9a7b-4140-a545-968148c81fb7",
-  "969f326c-8f2a-47c5-b41c-d9c2f06c9b9d",
-  "ae211037-8b53-4b17-bfc8-c06fc7774409",
-  "12c5c3c4-0bd5-45d3-bc1d-d04a3c65d3e6",
-  "ec02024f-ce43-4dd3-8169-a59f7baee043",
-  "5b6afe77-ce48-47ca-90a0-25cd10ca5ffd",
-  "2e3a61d4-6b8f-4d2f-ba86-878b4012efd8",
-  "19a88a67-a5d3-4647-898f-1cde07bce040",
-  "6db6f420-b5c8-48b9-bbb2-8864fe6fed65",
-  "5a45dbde-7b53-4f6b-b864-e3b63be3708a",
-  "c878321b-8a02-4239-9981-15760c2e7d15",
-  "4e36687f-8bf6-4b12-b496-3a8e382d067e",
-  "a59a63cd-43c0-4c6e-b208-6dbca86f8176",
-  "303308c4-2e4a-45b5-8bf3-3e66e9ad05a1",
-  "8b58fdf1-43a6-4c98-9547-6361b50791af",
-  "a3563591-72ed-42b5-8e41-bac1d76d70cf",
-  "38db8c78-3739-4f6e-8313-de4138082114",
-  "86615bea-7e73-4daf-95da-ae6b9eee1bbb",
-  "35d38e3e-076e-40dd-9aa8-05be2603bd59",
-  "9f84c62d-b454-4ba3-8c19-a01878985cdc",
-  "6721bbae-d765-4a06-8289-6fe46a1bf943",
-  "0837796f-d0dd-4e50-9b7c-1983e6cc7c48",
-  "021eb7d7-e869-49b9-80c3-9dd16ce2d981",
-  "819c56f8-e040-475d-aad5-c6d5e98b20aa",
-  "3a61ef02-735e-4229-937d-b3777a3f4e1f",
-  "79dfab84-12e6-4ec8-bfc8-460ae71e4eca",
-  "a106fabf-e149-476c-8053-b62388b6eb57",
-  "9a3900a5-bfb4-4de0-baa5-253a8bd0b634"
-]

+ 0 - 102
thirdparty/rapidjson/bin/types/integers.json

@@ -1,102 +0,0 @@
-[
-  8125686,
-  8958709,
-  5976222,
-  1889524,
-  7968493,
-  1357486,
-  118415,
-  7081097,
-  4635968,
-  7555332,
-  2270233,
-  3428352,
-  8699968,
-  2087333,
-  7861337,
-  7554440,
-  2017031,
-  7981692,
-  6060687,
-  1877715,
-  3297474,
-  8373177,
-  6158629,
-  7853641,
-  3004441,
-  9650406,
-  2695251,
-  1180761,
-  4988426,
-  6043805,
-  8063373,
-  6103218,
-  2848339,
-  8188690,
-  9235573,
-  5949816,
-  6116081,
-  6471138,
-  3354531,
-  4787414,
-  9660600,
-  942529,
-  7278535,
-  7967399,
-  554292,
-  1436493,
-  267319,
-  2606657,
-  7900601,
-  4276634,
-  7996757,
-  8544466,
-  7266469,
-  3301373,
-  4005350,
-  6437652,
-  7717672,
-  7126292,
-  8588394,
-  2127902,
-  7410190,
-  1517806,
-  4583602,
-  3123440,
-  7747613,
-  5029464,
-  9834390,
-  3087227,
-  4913822,
-  7550487,
-  4518144,
-  5862588,
-  1778599,
-  9493290,
-  5588455,
-  3638706,
-  7394293,
-  4294719,
-  3837830,
-  6381878,
-  7175866,
-  8575492,
-  1415229,
-  1453733,
-  6972404,
-  9782571,
-  4234063,
-  7117418,
-  7293130,
-  8057071,
-  9345285,
-  7626648,
-  3358911,
-  4574537,
-  9371826,
-  7627107,
-  6154093,
-  5392367,
-  5398105,
-  6956377
-]

File diff suppressed because it is too large
+ 0 - 592
thirdparty/rapidjson/bin/types/mixed.json


+ 0 - 102
thirdparty/rapidjson/bin/types/nulls.json

@@ -1,102 +0,0 @@
-[
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null,
-  null
-]

File diff suppressed because it is too large
+ 0 - 102
thirdparty/rapidjson/bin/types/paragraphs.json


+ 0 - 1
thirdparty/rapidjson/bin/types/readme.txt

@@ -1 +0,0 @@
-Test data obtained from https://github.com/xpol/lua-rapidjson/tree/master/performance

+ 0 - 45
thirdparty/rapidjson/contrib/natvis/LICENSE

@@ -1,45 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2017 Bart Muzzin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-Derived from:
-
-The MIT License (MIT)
-
-Copyright (c) 2015 mojmir svoboda
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 0 - 7
thirdparty/rapidjson/contrib/natvis/README.md

@@ -1,7 +0,0 @@
-# rapidjson.natvis
-
-This file can be used as a [Visual Studio Visualizer](https://docs.microsoft.com/en-gb/visualstudio/debugger/create-custom-views-of-native-objects) to aid in visualizing rapidjson structures within the Visual Studio debugger. Natvis visualizers are supported in Visual Studio 2012 and later. To install, copy the file into this directory:
-
-`%USERPROFILE%\Documents\Visual Studio 2012\Visualizers`
-
-Each version of Visual Studio has a similar directory, it must be copied into each directory to be used with that particular version. In Visual Studio 2015 and later, this can be done without restarting Visual Studio (a new debugging session must be started).

+ 0 - 38
thirdparty/rapidjson/contrib/natvis/rapidjson.natvis

@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
-	<!-- rapidjson::GenericValue - basic support -->
-	<Type Name="rapidjson::GenericValue&lt;*,*&gt;">
-		<DisplayString Condition="(data_.f.flags &amp; kTypeMask) == kNullType">null</DisplayString>
-		<DisplayString Condition="data_.f.flags == kTrueFlag">true</DisplayString>
-		<DisplayString Condition="data_.f.flags == kFalseFlag">false</DisplayString>
-		<DisplayString Condition="data_.f.flags == kShortStringFlag">{(const Ch*)data_.ss.str,na}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kTypeMask) == kStringType">{(const Ch*)((size_t)data_.s.str &amp; 0x0000FFFFFFFFFFFF),na}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kNumberIntFlag) == kNumberIntFlag">{data_.n.i.i}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kNumberUintFlag) == kNumberUintFlag">{data_.n.u.u}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kNumberInt64Flag) == kNumberInt64Flag">{data_.n.i64}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kNumberUint64Flag) == kNumberUint64Flag">{data_.n.u64}</DisplayString>
-		<DisplayString Condition="(data_.f.flags &amp; kNumberDoubleFlag) == kNumberDoubleFlag">{data_.n.d}</DisplayString>
-		<DisplayString Condition="data_.f.flags == kObjectType">Object members={data_.o.size}</DisplayString>
-		<DisplayString Condition="data_.f.flags == kArrayType">Array members={data_.a.size}</DisplayString>
-		<Expand>
-			<Item Condition="data_.f.flags == kObjectType" Name="[size]">data_.o.size</Item>
-			<Item Condition="data_.f.flags == kObjectType" Name="[capacity]">data_.o.capacity</Item>
-			<ArrayItems Condition="data_.f.flags == kObjectType">
-				<Size>data_.o.size</Size>
-				<!-- NOTE: Rapidjson stores some extra data in the high bits of pointers, which is why the mask -->
-				<ValuePointer>(rapidjson::GenericMember&lt;$T1,$T2&gt;*)(((size_t)data_.o.members) &amp; 0x0000FFFFFFFFFFFF)</ValuePointer>
-			</ArrayItems>
-
-			<Item Condition="data_.f.flags == kArrayType" Name="[size]">data_.a.size</Item>
-			<Item Condition="data_.f.flags == kArrayType" Name="[capacity]">data_.a.capacity</Item>
-			<ArrayItems Condition="data_.f.flags == kArrayType">
-				<Size>data_.a.size</Size>
-				<!-- NOTE: Rapidjson stores some extra data in the high bits of pointers, which is why the mask -->
-				<ValuePointer>(rapidjson::GenericValue&lt;$T1,$T2&gt;*)(((size_t)data_.a.elements) &amp; 0x0000FFFFFFFFFFFF)</ValuePointer>
-			</ArrayItems>
-
-		</Expand>
-	</Type>
-
-</AutoVisualizer>
-

+ 0 - 27
thirdparty/rapidjson/doc/CMakeLists.txt

@@ -1,27 +0,0 @@
-find_package(Doxygen)
-
-IF(NOT DOXYGEN_FOUND)
-    MESSAGE(STATUS "No Doxygen found. Documentation won't be built")
-ELSE()
-    file(GLOB SOURCES ${CMAKE_CURRENT_LIST_DIR}/../include/*)
-    file(GLOB MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../doc/*.md)
-    list(APPEND MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../readme.md)
-
-    CONFIGURE_FILE(Doxyfile.in Doxyfile @ONLY)
-    CONFIGURE_FILE(Doxyfile.zh-cn.in Doxyfile.zh-cn @ONLY)
-
-    file(GLOB DOXYFILES ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile*)
-    
-    add_custom_command(OUTPUT html
-        COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
-        COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.zh-cn
-        COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/html
-        DEPENDS ${MARKDOWN_DOC} ${SOURCES} ${DOXYFILES}
-        WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../
-        )
-
-    add_custom_target(doc ALL DEPENDS html)
-    install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
-        DESTINATION ${DOC_INSTALL_DIR}
-        COMPONENT doc)
-ENDIF()

File diff suppressed because it is too large
+ 0 - 2369
thirdparty/rapidjson/doc/Doxyfile.in


File diff suppressed because it is too large
+ 0 - 2369
thirdparty/rapidjson/doc/Doxyfile.zh-cn.in


+ 0 - 50
thirdparty/rapidjson/doc/diagram/architecture.dot

@@ -1,50 +0,0 @@
-digraph {
-	compound=true
-	fontname="Inconsolata, Consolas"
-	fontsize=10
-	margin="0,0"
-	ranksep=0.2
-	nodesep=0.5
-	penwidth=0.5
-	colorscheme=spectral7
-	
-	node [shape=box, fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5, style=filled, fillcolor=white]
-	edge [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
-
-	subgraph cluster1 {
-		margin="10,10"
-		labeljust="left"
-		label = "SAX"
-		style=filled
-		fillcolor=6
-
-		Reader -> Writer [style=invis]
-	}
-
-	subgraph cluster2 {
-		margin="10,10"
-		labeljust="left"
-		label = "DOM"
-		style=filled
-		fillcolor=7
-
-		Value
-		Document
-	}
-
-	Handler [label="<<concept>>\nHandler"]
-
-	{
-		edge [arrowtail=onormal, dir=back]
-		Value -> Document
-		Handler -> Document
-		Handler -> Writer
-	}
-
-	{
-		edge [arrowhead=vee, style=dashed, constraint=false]
-		Reader -> Handler [label="calls"]
-		Value -> Handler [label="calls"]
-		Document -> Reader [label="uses"]
-	}
-}

BIN
thirdparty/rapidjson/doc/diagram/architecture.png


+ 0 - 65
thirdparty/rapidjson/doc/diagram/insituparsing.dot

@@ -1,65 +0,0 @@
-digraph {
-	compound=true
-	fontname="Inconsolata, Consolas"
-	fontsize=10
-	margin="0,0"
-	ranksep=0.2
-	penwidth=0.5
-	
-	node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
-	edge [fontname="Inconsolata, Consolas", fontsize=10, arrowhead=normal]
-
-	{
-		node [shape=record, fontsize="8", margin="0.04", height=0.2, color=gray]
-		oldjson [label="\{|\"|m|s|g|\"|:|\"|H|e|l|l|o|\\|n|W|o|r|l|d|!|\"|,|\"|\\|u|0|0|7|3|t|a|r|s|\"|:|1|0|\}", xlabel="Before Parsing"]
-		//newjson [label="\{|\"|<a>m|s|g|\\0|:|\"|<b>H|e|l|l|o|\\n|W|o|r|l|d|!|\\0|\"|,|\"|<c>s|t|a|r|s|\\0|t|a|r|s|:|1|0|\}", xlabel="After Parsing"]
-		newjson [shape=plaintext, label=<
-<table BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="2"><tr>
-<td>{</td>
-<td>"</td><td port="a">m</td><td>s</td><td>g</td><td bgcolor="yellow">\\0</td>
-<td>:</td>
-<td>"</td><td port="b">H</td><td>e</td><td>l</td><td>l</td><td>o</td><td bgcolor="yellow">\\n</td><td bgcolor="yellow">W</td><td bgcolor="yellow">o</td><td bgcolor="yellow">r</td><td bgcolor="yellow">l</td><td bgcolor="yellow">d</td><td bgcolor="yellow">!</td><td bgcolor="yellow">\\0</td><td>"</td>
-<td>,</td>
-<td>"</td><td port="c" bgcolor="yellow">s</td><td bgcolor="yellow">t</td><td bgcolor="yellow">a</td><td bgcolor="yellow">r</td><td bgcolor="yellow">s</td><td bgcolor="yellow">\\0</td><td>t</td><td>a</td><td>r</td><td>s</td>
-<td>:</td>
-<td>1</td><td>0</td>
-<td>}</td>
-</tr></table>
->, xlabel="After Parsing"]
-	}
-
-	subgraph cluster1 {
-		margin="10,10"
-		labeljust="left"
-		label = "Document by In situ Parsing"
-		style=filled
-		fillcolor=gray95
-		node [shape=Mrecord, style=filled, colorscheme=spectral7]
-		
-		root [label="{object|}", fillcolor=3]
-
-		{			
-			msg [label="{string|<a>}", fillcolor=5]
-			helloworld [label="{string|<a>}", fillcolor=5]
-			stars [label="{string|<a>}", fillcolor=5]
-			ten [label="{number|10}", fillcolor=6]
-		}
-	}
-
-	oldjson -> root [label=" ParseInsitu()" lhead="cluster1"]
-	edge [arrowhead=vee]
-	root -> { msg; stars }
-
-	edge [arrowhead="none"]
-	msg  -> helloworld
-	stars -> ten
-
-	{
-		edge [arrowhead=vee, arrowtail=dot, arrowsize=0.5, dir=both, tailclip=false]
-		msg:a:c -> newjson:a
-		helloworld:a:c -> newjson:b
-		stars:a:c -> newjson:c
-	}
-
-	//oldjson -> newjson [style=invis]
-}

+ 0 - 0
thirdparty/rapidjson/doc/diagram/insituparsing.png


Some files were not shown because too many files changed in this diff