simdjson 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/.travis.yml +10 -3
- data/README.md +2 -0
- data/Rakefile +1 -1
- data/benchmark/run_benchmark.rb +4 -0
- data/ext/simdjson/extconf.rb +1 -1
- data/ext/simdjson/simdjson.cpp +34 -41
- data/lib/simdjson/version.rb +1 -1
- data/simdjson.gemspec +2 -1
- data/vendor/simdjson/AUTHORS +2 -1
- data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdC/a.out +0 -0
- data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdCXX/a.out +0 -0
- data/vendor/simdjson/CMakeLists.txt +68 -39
- data/vendor/simdjson/CONTRIBUTING.md +92 -0
- data/vendor/simdjson/CONTRIBUTORS +12 -0
- data/vendor/simdjson/Dockerfile +88 -10
- data/vendor/simdjson/Doxyfile +2578 -0
- data/vendor/simdjson/HACKING.md +652 -0
- data/vendor/simdjson/README.md +156 -547
- data/vendor/simdjson/RELEASES.md +50 -0
- data/vendor/simdjson/benchmark/CMakeLists.txt +37 -8
- data/vendor/simdjson/benchmark/Dockerfile +19 -0
- data/vendor/simdjson/benchmark/bench_dom_api.cpp +552 -0
- data/vendor/simdjson/benchmark/bench_parse_call.cpp +162 -0
- data/vendor/simdjson/benchmark/benchfeatures.cpp +466 -0
- data/vendor/simdjson/benchmark/benchmark.h +62 -179
- data/vendor/simdjson/benchmark/benchmarker.h +522 -0
- data/vendor/simdjson/benchmark/checkperf.cmake +101 -0
- data/vendor/simdjson/benchmark/distinctuseridcompetition.cpp +108 -49
- data/vendor/simdjson/benchmark/event_counter.h +152 -0
- data/vendor/simdjson/benchmark/get_corpus_benchmark.cpp +57 -0
- data/vendor/simdjson/benchmark/linux/linux-perf-events.h +24 -16
- data/vendor/simdjson/benchmark/minifiercompetition.cpp +47 -44
- data/vendor/simdjson/benchmark/parse.cpp +174 -345
- data/vendor/simdjson/benchmark/parse_stream.cpp +191 -0
- data/vendor/simdjson/benchmark/parseandstatcompetition.cpp +260 -77
- data/vendor/simdjson/benchmark/parsingcompetition.cpp +138 -75
- data/vendor/simdjson/benchmark/perfdiff.cpp +114 -0
- data/vendor/simdjson/benchmark/statisticalmodel.cpp +75 -76
- data/vendor/simdjson/cmake/add_cpp_test.cmake +49 -0
- data/vendor/simdjson/cmake/simdjson-flags.cmake +155 -0
- data/vendor/simdjson/cmake/simdjson-user-cmakecache.cmake +24 -0
- data/vendor/simdjson/dependencies/CMakeLists.txt +89 -0
- data/vendor/simdjson/dependencies/benchmark/AUTHORS +56 -0
- data/vendor/simdjson/dependencies/benchmark/BUILD.bazel +44 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeFiles/progress.marks +1 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeLists.txt +279 -0
- data/vendor/simdjson/dependencies/benchmark/CONTRIBUTING.md +58 -0
- data/vendor/simdjson/dependencies/benchmark/CONTRIBUTORS +78 -0
- data/vendor/simdjson/dependencies/benchmark/CTestTestfile.cmake +7 -0
- data/vendor/simdjson/dependencies/benchmark/LICENSE +202 -0
- data/vendor/simdjson/dependencies/benchmark/Makefile +220 -0
- data/vendor/simdjson/dependencies/benchmark/README.md +1290 -0
- data/vendor/simdjson/dependencies/benchmark/WORKSPACE +15 -0
- data/vendor/simdjson/dependencies/benchmark/_config.yml +1 -0
- data/vendor/simdjson/dependencies/benchmark/appveyor.yml +50 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Config.cmake.in +1 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GetGitVersion.cmake +54 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake +41 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake.in +58 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/benchmark.pc.in +12 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/llvm-toolchain.cmake +8 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/posix_regex.cpp +14 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/split_list.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/std_regex.cpp +10 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/steady_clock.cpp +7 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- data/vendor/simdjson/dependencies/benchmark/cmake_install.cmake +45 -0
- data/vendor/simdjson/dependencies/benchmark/conan/CMakeLists.txt +7 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/CMakeLists.txt +10 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/conanfile.py +19 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/test_package.cpp +18 -0
- data/vendor/simdjson/dependencies/benchmark/conanfile.py +79 -0
- data/vendor/simdjson/dependencies/benchmark/dependencies.md +18 -0
- data/vendor/simdjson/dependencies/benchmark/docs/AssemblyTests.md +147 -0
- data/vendor/simdjson/dependencies/benchmark/docs/_config.yml +1 -0
- data/vendor/simdjson/dependencies/benchmark/docs/tools.md +199 -0
- data/vendor/simdjson/dependencies/benchmark/include/benchmark/benchmark.h +1586 -0
- data/vendor/simdjson/dependencies/benchmark/mingw.py +320 -0
- data/vendor/simdjson/dependencies/benchmark/releasing.md +16 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/CXX.includecache +738 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/DependInfo.cmake +47 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/build.make +354 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean.cmake +27 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean_target.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.internal +157 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.make +157 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/flags.make +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/link.txt +2 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/progress.make +20 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/CXX.includecache +40 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/DependInfo.cmake +31 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/build.make +99 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean.cmake +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean_target.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.internal +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.make +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/flags.make +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/link.txt +2 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/progress.make +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/progress.marks +1 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeLists.txt +116 -0
- data/vendor/simdjson/dependencies/benchmark/src/CTestTestfile.cmake +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/Makefile +822 -0
- data/vendor/simdjson/dependencies/benchmark/src/arraysize.h +33 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark.cc +499 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.cc +15 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.h +53 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_main.cc +17 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_name.cc +58 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.cc +506 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.h +107 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.cc +361 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.h +51 -0
- data/vendor/simdjson/dependencies/benchmark/src/check.h +82 -0
- data/vendor/simdjson/dependencies/benchmark/src/cmake_install.cmake +39 -0
- data/vendor/simdjson/dependencies/benchmark/src/colorprint.cc +188 -0
- data/vendor/simdjson/dependencies/benchmark/src/colorprint.h +33 -0
- data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.cc +228 -0
- data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.h +103 -0
- data/vendor/simdjson/dependencies/benchmark/src/complexity.cc +238 -0
- data/vendor/simdjson/dependencies/benchmark/src/complexity.h +55 -0
- data/vendor/simdjson/dependencies/benchmark/src/console_reporter.cc +177 -0
- data/vendor/simdjson/dependencies/benchmark/src/counter.cc +80 -0
- data/vendor/simdjson/dependencies/benchmark/src/counter.h +32 -0
- data/vendor/simdjson/dependencies/benchmark/src/csv_reporter.cc +154 -0
- data/vendor/simdjson/dependencies/benchmark/src/cycleclock.h +192 -0
- data/vendor/simdjson/dependencies/benchmark/src/internal_macros.h +94 -0
- data/vendor/simdjson/dependencies/benchmark/src/json_reporter.cc +253 -0
- data/vendor/simdjson/dependencies/benchmark/src/log.h +74 -0
- data/vendor/simdjson/dependencies/benchmark/src/mutex.h +155 -0
- data/vendor/simdjson/dependencies/benchmark/src/re.h +158 -0
- data/vendor/simdjson/dependencies/benchmark/src/reporter.cc +105 -0
- data/vendor/simdjson/dependencies/benchmark/src/sleep.cc +51 -0
- data/vendor/simdjson/dependencies/benchmark/src/sleep.h +15 -0
- data/vendor/simdjson/dependencies/benchmark/src/statistics.cc +193 -0
- data/vendor/simdjson/dependencies/benchmark/src/statistics.h +37 -0
- data/vendor/simdjson/dependencies/benchmark/src/string_util.cc +252 -0
- data/vendor/simdjson/dependencies/benchmark/src/string_util.h +59 -0
- data/vendor/simdjson/dependencies/benchmark/src/sysinfo.cc +708 -0
- data/vendor/simdjson/dependencies/benchmark/src/thread_manager.h +64 -0
- data/vendor/simdjson/dependencies/benchmark/src/thread_timer.h +86 -0
- data/vendor/simdjson/dependencies/benchmark/src/timers.cc +217 -0
- data/vendor/simdjson/dependencies/benchmark/src/timers.h +48 -0
- data/vendor/simdjson/dependencies/benchmark/test/AssemblyTests.cmake +46 -0
- data/vendor/simdjson/dependencies/benchmark/test/BUILD +73 -0
- data/vendor/simdjson/dependencies/benchmark/test/CMakeLists.txt +260 -0
- data/vendor/simdjson/dependencies/benchmark/test/basic_test.cc +136 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_gtest.cc +128 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_name_gtest.cc +74 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_test.cc +245 -0
- data/vendor/simdjson/dependencies/benchmark/test/clobber_memory_assembly_test.cc +64 -0
- data/vendor/simdjson/dependencies/benchmark/test/commandlineflags_gtest.cc +201 -0
- data/vendor/simdjson/dependencies/benchmark/test/complexity_test.cc +213 -0
- data/vendor/simdjson/dependencies/benchmark/test/cxx03_test.cc +63 -0
- data/vendor/simdjson/dependencies/benchmark/test/diagnostics_test.cc +80 -0
- data/vendor/simdjson/dependencies/benchmark/test/display_aggregates_only_test.cc +43 -0
- data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_assembly_test.cc +163 -0
- data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_test.cc +52 -0
- data/vendor/simdjson/dependencies/benchmark/test/filter_test.cc +104 -0
- data/vendor/simdjson/dependencies/benchmark/test/fixture_test.cc +49 -0
- data/vendor/simdjson/dependencies/benchmark/test/internal_threading_test.cc +184 -0
- data/vendor/simdjson/dependencies/benchmark/test/link_main_test.cc +8 -0
- data/vendor/simdjson/dependencies/benchmark/test/map_test.cc +57 -0
- data/vendor/simdjson/dependencies/benchmark/test/memory_manager_test.cc +44 -0
- data/vendor/simdjson/dependencies/benchmark/test/multiple_ranges_test.cc +96 -0
- data/vendor/simdjson/dependencies/benchmark/test/options_test.cc +75 -0
- data/vendor/simdjson/dependencies/benchmark/test/output_test.h +213 -0
- data/vendor/simdjson/dependencies/benchmark/test/output_test_helper.cc +515 -0
- data/vendor/simdjson/dependencies/benchmark/test/register_benchmark_test.cc +184 -0
- data/vendor/simdjson/dependencies/benchmark/test/report_aggregates_only_test.cc +39 -0
- data/vendor/simdjson/dependencies/benchmark/test/reporter_output_test.cc +748 -0
- data/vendor/simdjson/dependencies/benchmark/test/skip_with_error_test.cc +189 -0
- data/vendor/simdjson/dependencies/benchmark/test/state_assembly_test.cc +68 -0
- data/vendor/simdjson/dependencies/benchmark/test/statistics_gtest.cc +28 -0
- data/vendor/simdjson/dependencies/benchmark/test/string_util_gtest.cc +153 -0
- data/vendor/simdjson/dependencies/benchmark/test/templated_fixture_test.cc +28 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_tabular_test.cc +285 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_test.cc +531 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_thousands_test.cc +173 -0
- data/vendor/simdjson/dependencies/benchmark/tools/compare.py +408 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/__init__.py +8 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/report.py +541 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/util.py +164 -0
- data/vendor/simdjson/dependencies/benchmark/tools/strip_asm.py +151 -0
- data/vendor/simdjson/dependencies/cJSON/CHANGELOG.md +375 -0
- data/vendor/simdjson/dependencies/cJSON/CMakeLists.txt +251 -0
- data/vendor/simdjson/dependencies/cJSON/CONTRIBUTORS.md +51 -0
- data/vendor/simdjson/dependencies/cJSON/LICENSE +20 -0
- data/vendor/simdjson/dependencies/cJSON/Makefile +157 -0
- data/vendor/simdjson/dependencies/cJSON/README.md +533 -0
- data/vendor/simdjson/dependencies/cJSON/appveyor.yml +86 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON.c +2936 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON.h +285 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.c +1450 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.h +88 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl-prepare-linux.sh +5 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.c +176 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.sh +9 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test1 +22 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test10 +1 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test11 +8 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test2 +11 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3 +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.bu +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uf +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uu +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test4 +88 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test5 +27 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test6 +16 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test7 +22 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test8 +13 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test9 +5 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/json.dict +47 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfig.cmake.in +29 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfigVersion.cmake.in +11 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/libcjson.pc.in +10 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/libcjson_utils.pc.in +10 -0
- data/vendor/simdjson/dependencies/cJSON/test.c +268 -0
- data/vendor/simdjson/dependencies/cJSON/tests/CMakeLists.txt +115 -0
- data/vendor/simdjson/dependencies/cJSON/tests/cjson_add.c +422 -0
- data/vendor/simdjson/dependencies/cJSON/tests/common.h +122 -0
- data/vendor/simdjson/dependencies/cJSON/tests/compare_tests.c +205 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1 +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1.expected +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10 +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10.expected +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11 +8 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11.expected +10 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2 +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2.expected +18 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3 +26 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3.expected +28 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4 +88 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4.expected +94 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5 +27 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5.expected +54 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test6 +16 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7 +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7.expected +19 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8 +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8.expected +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9 +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9.expected +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/json-patch-tests/README.md +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/json_patch_tests.c +243 -0
- data/vendor/simdjson/dependencies/cJSON/tests/misc_tests.c +579 -0
- data/vendor/simdjson/dependencies/cJSON/tests/misc_utils_tests.c +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/old_utils_tests.c +205 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_array.c +166 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_examples.c +214 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_hex4.c +73 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_number.c +110 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_object.c +176 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_string.c +135 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_value.c +112 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_with_opts.c +112 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_array.c +100 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_number.c +105 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_object.c +101 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_string.c +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_value.c +107 -0
- data/vendor/simdjson/dependencies/cJSON/tests/readme_examples.c +258 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/README.md +231 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_prompt.rb +118 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_reporter.rb +39 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_config.yml +36 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_module.rb +308 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_test_runner.rb +454 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/parse_output.rb +220 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/stylize_as_junit.rb +252 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/test_file_filter.rb +25 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/type_sanitizer.rb +6 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.py +139 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.rb +136 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_to_junit.py +146 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsReference.md +770 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityConfigurationGuide.md +435 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityGettingStartedGuide.md +191 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityHelperScriptsGuide.md +254 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/license.txt +21 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/makefile +71 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/readme.txt +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/makefile +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/readme.txt +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile.rb +43 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile_helper.rb +249 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/readme.txt +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/unity_config.h +239 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile.rb +48 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/readme.txt +9 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.c +432 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.h +83 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_internals.h +51 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/Makefile +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/main/AllTests.c +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/template_fixture_tests.c +39 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_Test.c +543 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/release/build.info +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/release/version.info +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.c +1570 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.h +503 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity_internals.h +870 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/Makefile +66 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_cmd.c +61 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_def.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.c +55 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.h +15 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_cmd.c +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_def.c +76 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.h +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new1.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new2.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_param.c +77 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run1.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run2.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_yaml.c +90 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new1.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new2.c +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_param.c +58 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run1.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run2.c +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_yaml.c +71 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile +125 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile_helper.rb +260 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/spec/generate_module_existing_file_spec.rb +158 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_file.yml +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_strict.yml +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_32.yml +49 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_64.yml +50 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_limits.yml +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_stdint.yml +59 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_manual_math.yml +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/hitech_picc18.yml +101 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v4.yml +90 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5.yml +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5_3.yml +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_cortexm3_v5.yml +84 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_msp430.yml +95 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_sh2a_v6.yml +86 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/CException.h +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/Defs.h +8 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/cmock.h +14 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/mockMock.h +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGenerator.c +183 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorSmall.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/test_generate_test_runner.rb +1252 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testparameterized.c +110 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testunity.c +5337 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity_setup.c +3 -0
- data/vendor/simdjson/dependencies/cJSON/valgrind.supp +6 -0
- data/vendor/simdjson/dependencies/cxxopts/CHANGELOG.md +97 -0
- data/vendor/simdjson/dependencies/cxxopts/CMakeLists.txt +108 -0
- data/vendor/simdjson/dependencies/cxxopts/INSTALL +23 -0
- data/vendor/simdjson/dependencies/cxxopts/LICENSE +19 -0
- data/vendor/simdjson/dependencies/cxxopts/README.md +208 -0
- data/vendor/simdjson/dependencies/cxxopts/cxxopts-config.cmake.in +4 -0
- data/vendor/simdjson/dependencies/cxxopts/include/cxxopts.hpp +2193 -0
- data/vendor/simdjson/dependencies/cxxopts/src/CMakeLists.txt +24 -0
- data/vendor/simdjson/dependencies/cxxopts/src/example.cpp +167 -0
- data/vendor/simdjson/dependencies/cxxopts/test/CMakeLists.txt +35 -0
- data/vendor/simdjson/dependencies/cxxopts/test/add-subdirectory-test/CMakeLists.txt +11 -0
- data/vendor/simdjson/dependencies/cxxopts/test/catch.hpp +10460 -0
- data/vendor/simdjson/dependencies/cxxopts/test/find-package-test/CMakeLists.txt +11 -0
- data/vendor/simdjson/dependencies/cxxopts/test/link_a.cpp +6 -0
- data/vendor/simdjson/dependencies/cxxopts/test/link_b.cpp +1 -0
- data/vendor/simdjson/dependencies/cxxopts/test/main.cpp +2 -0
- data/vendor/simdjson/dependencies/cxxopts/test/options.cpp +776 -0
- data/vendor/simdjson/dependencies/fastjson/LICENSE.txt +24 -0
- data/vendor/simdjson/dependencies/fastjson/Makefile +5 -0
- data/vendor/simdjson/dependencies/fastjson/README.md +68 -0
- data/vendor/simdjson/dependencies/fastjson/SConstruct +44 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/Makefile +2 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/README.markdown +5 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/address_book.cpp +166 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/core.h +146 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/dom.h +799 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/error.h +64 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/fastjson.h +161 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/utils.h +62 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson.cpp +1016 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson2.cpp +440 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson_dom.cpp +165 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-00-bad-parse.cpp +59 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp +88 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-02-unicode-escape.cpp +66 -0
- data/vendor/simdjson/dependencies/fastjson/tests/01-dom-00-dict-const-get.cpp +35 -0
- data/vendor/simdjson/dependencies/fastjson/tests/01-dom-01-vector-from-json.cpp +36 -0
- data/vendor/simdjson/dependencies/fastjson/tests/Makefile +4 -0
- data/vendor/simdjson/dependencies/fastjson/tests/clone_token.cpp +49 -0
- data/vendor/simdjson/dependencies/fastjson/tests/dom_from_string.cpp +77 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/dynamic_test.cpp +49 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/from_file.cpp +57 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test.cpp +127 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test_boost.cpp +115 -0
- data/vendor/simdjson/dependencies/fastjson/tests/saruconf +3 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test0.cpp +385 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test1.cpp +237 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test2.cpp +301 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_count.cpp +100 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_parse.cpp +83 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_roundtrip.cpp +64 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_utils.cpp +176 -0
- data/vendor/simdjson/dependencies/gason/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/gason/LICENSE +20 -0
- data/vendor/simdjson/dependencies/gason/README.md +167 -0
- data/vendor/simdjson/dependencies/gason/data/download.sh +5 -0
- data/vendor/simdjson/dependencies/gason/ruberoid/AndroidManifest.xml +32 -0
- data/vendor/simdjson/dependencies/gason/ruberoid/res/values/strings.xml +4 -0
- data/vendor/simdjson/dependencies/gason/src/benchmark.cpp +257 -0
- data/vendor/simdjson/dependencies/gason/src/gason.cpp +334 -0
- data/vendor/simdjson/dependencies/gason/src/gason.h +135 -0
- data/vendor/simdjson/dependencies/gason/src/pretty-print.cpp +192 -0
- data/vendor/simdjson/dependencies/gason/src/test-suite.cpp +146 -0
- data/vendor/simdjson/dependencies/jsmn/LICENSE +20 -0
- data/vendor/simdjson/dependencies/jsmn/Makefile +41 -0
- data/vendor/simdjson/dependencies/jsmn/README.md +168 -0
- data/vendor/simdjson/dependencies/jsmn/example/jsondump.c +126 -0
- data/vendor/simdjson/dependencies/jsmn/example/simple.c +76 -0
- data/vendor/simdjson/dependencies/jsmn/jsmn.c +314 -0
- data/vendor/simdjson/dependencies/jsmn/jsmn.h +76 -0
- data/vendor/simdjson/dependencies/jsmn/test/test.h +27 -0
- data/vendor/simdjson/dependencies/jsmn/test/tests.c +407 -0
- data/vendor/simdjson/dependencies/jsmn/test/testutil.h +94 -0
- data/vendor/simdjson/dependencies/json/CMakeLists.txt +131 -0
- data/vendor/simdjson/dependencies/json/CODE_OF_CONDUCT.md +46 -0
- data/vendor/simdjson/dependencies/json/ChangeLog.md +1670 -0
- data/vendor/simdjson/dependencies/json/LICENSE.MIT +21 -0
- data/vendor/simdjson/dependencies/json/Makefile +629 -0
- data/vendor/simdjson/dependencies/json/README.md +1370 -0
- data/vendor/simdjson/dependencies/json/appveyor.yml +111 -0
- data/vendor/simdjson/dependencies/json/benchmarks/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/json/benchmarks/src/benchmarks.cpp +109 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/AUTHORS +46 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/BUILD.bazel +42 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CMakeLists.txt +251 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTING.md +58 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTORS +65 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/LICENSE +202 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/README.md +950 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/WORKSPACE +7 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/appveyor.yml +56 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Config.cmake.in +1 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/GetGitVersion.cmake +54 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake +113 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/benchmark.pc.in +11 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/llvm-toolchain.cmake +8 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/posix_regex.cpp +14 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/split_list.cmake +3 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/std_regex.cpp +10 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/steady_clock.cpp +7 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/AssemblyTests.md +147 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/tools.md +242 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/include/benchmark/benchmark.h +1456 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/mingw.py +320 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/releasing.md +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/CMakeLists.txt +105 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/arraysize.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark.cc +630 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_api_internal.h +47 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_main.cc +17 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.cc +461 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/check.h +79 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.cc +188 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.cc +218 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.h +79 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.cc +220 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.h +55 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/console_reporter.cc +182 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.cc +68 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.h +26 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/csv_reporter.cc +149 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/cycleclock.h +177 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/internal_macros.h +89 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/json_reporter.cc +205 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/log.h +73 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/mutex.h +155 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/re.h +152 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/reporter.cc +87 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.cc +51 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.h +15 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.cc +178 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.h +37 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.cc +172 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.h +40 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sysinfo.cc +587 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_manager.h +66 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_timer.h +69 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.cc +217 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.h +48 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare.py +316 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare_bench.py +67 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/__init__.py +8 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/report.py +208 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/util.py +159 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/strip_asm.py +151 -0
- data/vendor/simdjson/dependencies/json/cmake/config.cmake.in +15 -0
- data/vendor/simdjson/dependencies/json/doc/Doxyfile +335 -0
- data/vendor/simdjson/dependencies/json/doc/Makefile +90 -0
- data/vendor/simdjson/dependencies/json/doc/avatars.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/binary_formats.md +171 -0
- data/vendor/simdjson/dependencies/json/doc/css/mylayout.css +26 -0
- data/vendor/simdjson/dependencies/json/doc/css/mylayout_docset.css +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.cpp +39 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.output +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.cpp +42 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.cpp +43 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.cpp +37 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.cpp +103 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.cpp +79 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.cpp +38 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.cpp +218 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.output +39 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.cpp +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.cpp +45 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.output +10 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.cpp +36 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.output +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.output +55 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.cpp +50 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.cpp +60 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.cpp +47 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.cpp +35 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.cpp +40 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.cpp +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.output +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.cpp +60 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.cpp +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.cpp +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.cpp +38 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.cpp +26 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.output +13 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.output +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.output +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.cpp +13 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.output +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.cpp +58 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.output +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.cpp +49 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.output +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.cpp +124 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.cpp +63 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.cpp +26 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.output +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/faq.md +87 -0
- data/vendor/simdjson/dependencies/json/doc/images/binary.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/images/callback_events.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/images/range-begin-end.svg +435 -0
- data/vendor/simdjson/dependencies/json/doc/images/range-rbegin-rend.svg +1232 -0
- data/vendor/simdjson/dependencies/json/doc/index.md +332 -0
- data/vendor/simdjson/dependencies/json/doc/json.gif +0 -0
- data/vendor/simdjson/dependencies/json/doc/scripts/git-update-ghpages +193 -0
- data/vendor/simdjson/dependencies/json/doc/scripts/send_to_wandbox.py +120 -0
- data/vendor/simdjson/dependencies/json/doc/usages/ios.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/usages/macos.png +0 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/adl_serializer.hpp +49 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/from_json.hpp +389 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_chars.hpp +1106 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_json.hpp +344 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/exceptions.hpp +356 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/binary_reader.hpp +1983 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/input_adapters.hpp +442 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/json_sax.hpp +701 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/lexer.hpp +1512 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/parser.hpp +498 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/position_t.hpp +27 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/internal_iterator.hpp +25 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iter_impl.hpp +638 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iteration_proxy.hpp +170 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iterator_traits.hpp +51 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +119 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/primitive_iterator.hpp +120 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_pointer.hpp +1011 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_ref.hpp +69 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_scope.hpp +121 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_unscope.hpp +21 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/cpp_future.hpp +63 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/detected.hpp +58 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/is_sax.hpp +142 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/type_traits.hpp +361 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/void_t.hpp +13 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/binary_writer.hpp +1336 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/output_adapters.hpp +123 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/serializer.hpp +840 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/value_t.hpp +77 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/json.hpp +8134 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/json_fwd.hpp +64 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley.hpp +1505 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +121 -0
- data/vendor/simdjson/dependencies/json/meson.build +23 -0
- data/vendor/simdjson/dependencies/json/nlohmann_json.natvis +32 -0
- data/vendor/simdjson/dependencies/json/single_include/nlohmann/json.hpp +22684 -0
- data/vendor/simdjson/dependencies/json/test/CMakeLists.txt +150 -0
- data/vendor/simdjson/dependencies/json/test/Makefile +110 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/CMakeLists.txt +13 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/project/CMakeLists.txt +12 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/CMakeLists.txt +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/data/big-list-of-naughty-strings/LICENSE +22 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test01 +1 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test02 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test03 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test04 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test05 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test06 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test07 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test08 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test09 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test10 +1 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test11 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test12 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test13 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test14 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test15 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test16 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test17 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test18 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test19 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test20 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test21 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json-patch-tests/README.md +75 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.cbor +4 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/README.md +10 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/markus_kuhn/UTF-8-test.txt +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.cbor +2 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.msgpack +2 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/README.md +55 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/exec_speed.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/fuzz.tiff +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/high_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/index.html +10 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/low_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/README.md +31 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_Nlohmann (C++11).md +670 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_overall_Result.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_1._Parse_Memory_(byte).png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_1._Parse_Time_(ms).png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_2._Stringify_Time_(ms).png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_3._Prettify_Time_(ms).png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_7._Code_size_FileSize_(byte).png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/exec_speed.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/fuzz.tiff +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/high_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/index.html +10 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/low_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-driver_afl.cpp +38 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_bson.cpp +73 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_cbor.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_json.cpp +69 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_msgpack.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_ubjson.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-algorithms.cpp +320 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-allocator.cpp +236 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-alt-string.cpp +264 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-bson.cpp +1254 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-capacity.cpp +563 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-cbor.cpp +2189 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_const_iterator.cpp +419 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_iterator.cpp +403 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_lexer.cpp +181 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_parser.cpp +1770 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-comparison.cpp +263 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-concepts.cpp +171 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-constructor1.cpp +1537 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-constructor2.cpp +192 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-convenience.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-conversions.cpp +1577 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-deserialization.cpp +1026 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-element_access1.cpp +974 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-element_access2.cpp +1109 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-inspection.cpp +442 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-items.cpp +1450 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-iterators1.cpp +1692 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-iterators2.cpp +906 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-json_patch.cpp +1295 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-json_pointer.cpp +646 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-merge_patch.cpp +262 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-meta.cpp +57 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-modifiers.cpp +941 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-msgpack.cpp +1607 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-noexcept.cpp +82 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-pointer_access.cpp +444 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-readme.cpp +327 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-reference_access.cpp +318 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-regression.cpp +1830 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-serialization.cpp +191 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-testsuites.cpp +1415 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-to_chars.cpp +537 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-ubjson.cpp +2295 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-udt.cpp +830 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-unicode.cpp +1610 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-wstring.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/src/unit.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/CMakeLists.txt +45 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCorpus.h +217 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCrossOver.cpp +52 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDefs.h +89 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDictionary.h +124 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDriver.cpp +545 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.def +50 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.h +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsDlsym.cpp +52 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeak.cpp +53 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeakAlias.cpp +56 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerFlags.def +115 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.h +64 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOPosix.cpp +88 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOWindows.cpp +282 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInterface.h +67 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInternal.h +182 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerLoop.cpp +792 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMain.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.cpp +261 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.h +70 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.cpp +527 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.h +145 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerOptions.h +68 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerRandom.h +36 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.cpp +222 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.h +33 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.cpp +339 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.h +158 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTraceState.cpp +325 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.cpp +218 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.h +72 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilDarwin.cpp +152 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilLinux.cpp +24 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilPosix.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilWindows.cpp +182 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerValueBitMap.h +87 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/README.txt +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/afl/afl_driver.cpp +295 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/build.sh +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/cxx.dict +122 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c +41 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AFLDriverTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstant64Test.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstantTest.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AccumulateAllocationsTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/BufferOverflowOnInput.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CMakeLists.txt +217 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CallerCalleeTest.cpp +59 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CounterTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomCrossOverTest.cpp +63 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomMutatorTest.cpp +38 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO1.cpp +12 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO2.cpp +12 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestExtra.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestMain.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DivTest.cpp +20 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/EmptyTest.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FourIndependentBranchesTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FullCoverageSetTest.cpp +24 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FuzzerUnittest.cpp +738 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/InitializeTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTimeoutTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LoadTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/MemcmpTest.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NthRunCrashTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefOnEmptyTest.cpp +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OneHugeAllocTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemoryTest.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedBytesTest.cpp +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedMemcmp.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkControlFlowTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkValueProfileTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SignedIntOverflowTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleCmpTest.cpp +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleDictionaryTest.cpp +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleHashTest.cpp +40 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleThreadedTest.cpp +25 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleMemcmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrcmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrncmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SpamyTest.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrcmpTest.cpp +32 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpOOBTest.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrstrTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwapCmpTest.cpp +34 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/Switch2Test.cpp +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwitchTest.cpp +58 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedLeakTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutEmptyTest.cpp +14 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TraceMallocTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/UninstrumentedTest.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-extra-stats.test +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-stderr.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/caller-callee.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/coverage.test +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dict1.txt +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dump_coverage.test +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-customcrossover.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-custommutator.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dict.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dirs.test +15 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-fdmask.test +30 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-finalstats.test +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-flags.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-jobs.test +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-leak.test +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom-with-profile.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom.test +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-printcovpcs.test +8 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-runs.test +8 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-seed.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-segv.test +5 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-singleinputs.test +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-threaded.test +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-timeout.test +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-traces-hooks.test +25 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-ubsan.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer.test +57 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/hi.txt +1 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.cfg +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.site.cfg.in +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/merge.test +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/minimize_crash.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/no-coverage/CMakeLists.txt +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/repeated-bytes.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/shrink.test +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/simple-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/standalone.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/swap-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/trace-malloc.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ubsan/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ulimit.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/uninstrumented/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.cfg +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.site.cfg.in +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp2.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp3.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp4.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-div.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-load.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-mem.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-set.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strcmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strncmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-switch.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/LICENSE.txt +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest.h +6025 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest_compatibility.h +37 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/README.md +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/fastcov.py +372 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/LICENSE.MIT +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/fifo_map.hpp +530 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/filterbr.py +109 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/gpl-3.0.txt +674 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/CHANGES.md +10 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/LICENSE.md +27 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/README.md +66 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/amalgamate.py +299 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/LICENSE +27 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/README.rst +80 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/cpplint.py +6583 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/update.sh +5 -0
- data/vendor/simdjson/dependencies/json11/CMakeLists.txt +57 -0
- data/vendor/simdjson/dependencies/json11/LICENSE.txt +19 -0
- data/vendor/simdjson/dependencies/json11/Makefile +15 -0
- data/vendor/simdjson/dependencies/json11/README.md +42 -0
- data/vendor/simdjson/dependencies/json11/json11.cpp +788 -0
- data/vendor/simdjson/dependencies/json11/json11.hpp +232 -0
- data/vendor/simdjson/dependencies/json11/json11.pc.in +9 -0
- data/vendor/simdjson/dependencies/json11/test.cpp +281 -0
- data/vendor/simdjson/dependencies/jsoncpp/AUTHORS +111 -0
- data/vendor/simdjson/dependencies/jsoncpp/CMakeLists.txt +186 -0
- data/vendor/simdjson/dependencies/jsoncpp/CTestConfig.cmake +15 -0
- data/vendor/simdjson/dependencies/jsoncpp/LICENSE +55 -0
- data/vendor/simdjson/dependencies/jsoncpp/README.md +144 -0
- data/vendor/simdjson/dependencies/jsoncpp/amalgamate.py +155 -0
- data/vendor/simdjson/dependencies/jsoncpp/appveyor.yml +26 -0
- data/vendor/simdjson/dependencies/jsoncpp/dev.makefile +35 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/__init__.py +6 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/antglob.py +205 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/batchbuild.py +278 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/fixeol.py +70 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/licenseupdater.py +94 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/tarball.py +52 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/doxyfile.in +2302 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/footer.html +21 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/header.html +64 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/jsoncpp.dox +164 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/readme.txt +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/roadmap.dox +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/web_doxyfile.in +2290 -0
- data/vendor/simdjson/dependencies/jsoncpp/doxybuild.py +189 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/CMakeLists.txt +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/allocator.h +89 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/assertions.h +59 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/autolink.h +25 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/config.h +198 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/features.h +61 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/forwards.h +37 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/json.h +15 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/reader.h +417 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/value.h +909 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/version.h +22 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/writer.h +368 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsoncpp.sln +42 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj +96 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj.filters +13 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj +143 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj.filters +33 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj +109 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj.filters +24 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsoncpp.sln +64 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsontest.vcxproj +168 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/lib_json.vcxproj +258 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/test_lib_json.vcxproj +189 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsoncpp.sln +46 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsontest.vcproj +119 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/lib_json.vcproj +205 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/test_lib_json.vcproj +130 -0
- data/vendor/simdjson/dependencies/jsoncpp/makerelease.py +390 -0
- data/vendor/simdjson/dependencies/jsoncpp/meson.build +115 -0
- data/vendor/simdjson/dependencies/jsoncpp/pkg-config/jsoncpp.pc.in +9 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/CMakeLists.txt +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/CMakeLists.txt +36 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/main.cpp +300 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/CMakeLists.txt +145 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_reader.cpp +2008 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_tool.h +134 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_value.cpp +1713 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_valueiterator.inl +159 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_writer.cpp +1253 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/version.h.in +20 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/CMakeLists.txt +40 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.cpp +435 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.h +276 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/main.cpp +2597 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/cleantests.py +16 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_03.expected +6 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_04.expected +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_05.expected +100 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_06.expected +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_07.expected +2122 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_03.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_06.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_07.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_08.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_09.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_00.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_01.expected +10 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_02.expected +23 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_complex_01.expected +20 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_01.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_03.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_04.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_06_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_07_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_08_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_large_01.expected +2122 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_03.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_preserve_comment_01.expected +11 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_01.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_02.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_03.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_04.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_05.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_06.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_07.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_08.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_09.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_10.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_11.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_12.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_03.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_03.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_04.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/generate_expected.py +17 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/jsonchecker/readme.txt +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/pyjsontestrunner.py +71 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/runjsontests.py +210 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/rununittests.py +84 -0
- data/vendor/simdjson/dependencies/jsoncpp/version +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/version.in +1 -0
- data/vendor/simdjson/dependencies/jsoncppdist/jsoncpp.cpp +8 -0
- data/vendor/simdjson/dependencies/rapidjson/CHANGELOG.md +158 -0
- data/vendor/simdjson/dependencies/rapidjson/CMakeLists.txt +221 -0
- data/vendor/simdjson/dependencies/rapidjson/CMakeModules/FindGTestSrc.cmake +30 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSON.pc.in +7 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfig.cmake.in +15 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfigVersion.cmake.in +10 -0
- data/vendor/simdjson/dependencies/rapidjson/appveyor.yml +41 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/data/readme.txt +1 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/draft-04/schema +150 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonchecker/readme.txt +3 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/LICENSE +19 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/README.md +148 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/bin/jsonschema_suite +283 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/tox.ini +8 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/types/readme.txt +1 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/LICENSE +45 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/README.md +7 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/rapidjson.natvis +38 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/CMakeLists.txt +27 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.in +2369 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.zh-cn.in +2369 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.dot +50 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.dot +65 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +62 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/makefile +8 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.dot +47 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.dot +62 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.dot +60 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.dot +56 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.dot +54 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.dot +58 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.dot +73 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/dom.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/dom.zh-cn.md +284 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/encoding.md +146 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/encoding.zh-cn.md +152 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/faq.md +289 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/faq.zh-cn.md +290 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/features.md +104 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/features.zh-cn.md +103 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/internals.md +368 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/internals.zh-cn.md +363 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.svg +119 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/DoxygenLayout.xml +194 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/doxygenextra.css +274 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/footer.html +11 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/header.html +24 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/npm.md +31 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/performance.md +26 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/performance.zh-cn.md +26 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/pointer.md +234 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/pointer.zh-cn.md +234 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/sax.md +509 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/sax.zh-cn.md +487 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/schema.md +505 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/schema.zh-cn.md +237 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/stream.md +429 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/stream.zh-cn.md +429 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.md +536 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.zh-cn.md +534 -0
- data/vendor/simdjson/dependencies/rapidjson/docker/debian/Dockerfile +8 -0
- data/vendor/simdjson/dependencies/rapidjson/example/CMakeLists.txt +45 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.cpp +292 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.h +145 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archivertest.cpp +287 -0
- data/vendor/simdjson/dependencies/rapidjson/example/capitalize/capitalize.cpp +67 -0
- data/vendor/simdjson/dependencies/rapidjson/example/condense/condense.cpp +32 -0
- data/vendor/simdjson/dependencies/rapidjson/example/filterkey/filterkey.cpp +135 -0
- data/vendor/simdjson/dependencies/rapidjson/example/filterkeydom/filterkeydom.cpp +170 -0
- data/vendor/simdjson/dependencies/rapidjson/example/jsonx/jsonx.cpp +207 -0
- data/vendor/simdjson/dependencies/rapidjson/example/lookaheadparser/lookaheadparser.cpp +350 -0
- data/vendor/simdjson/dependencies/rapidjson/example/messagereader/messagereader.cpp +105 -0
- data/vendor/simdjson/dependencies/rapidjson/example/parsebyparts/parsebyparts.cpp +176 -0
- data/vendor/simdjson/dependencies/rapidjson/example/pretty/pretty.cpp +30 -0
- data/vendor/simdjson/dependencies/rapidjson/example/prettyauto/prettyauto.cpp +56 -0
- data/vendor/simdjson/dependencies/rapidjson/example/schemavalidator/schemavalidator.cpp +78 -0
- data/vendor/simdjson/dependencies/rapidjson/example/serialize/serialize.cpp +173 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simpledom/simpledom.cpp +29 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplepullreader/simplepullreader.cpp +53 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplereader/simplereader.cpp +42 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplewriter/simplewriter.cpp +36 -0
- data/vendor/simdjson/dependencies/rapidjson/example/tutorial/tutorial.cpp +151 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/allocators.h +284 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/cursorstreamwrapper.h +78 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/document.h +2658 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodedstream.h +299 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodings.h +716 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/en.h +74 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/error.h +161 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filereadstream.h +99 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filewritestream.h +104 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/fwd.h +151 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/biginteger.h +290 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/diyfp.h +258 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/dtoa.h +245 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/ieee754.h +78 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/itoa.h +309 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/meta.h +186 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/pow10.h +55 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/regex.h +732 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/stack.h +231 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strfunc.h +69 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strtod.h +269 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/swap.h +46 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/istreamwrapper.h +113 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorybuffer.h +70 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorystream.h +71 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/inttypes.h +316 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/stdint.h +300 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/ostreamwrapper.h +81 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/pointer.h +1357 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/prettywriter.h +277 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/rapidjson.h +628 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/reader.h +2216 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/schema.h +2483 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stream.h +223 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stringbuffer.h +121 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/writer.h +710 -0
- data/vendor/simdjson/dependencies/rapidjson/include_dirs.js +2 -0
- data/vendor/simdjson/dependencies/rapidjson/license.txt +57 -0
- data/vendor/simdjson/dependencies/rapidjson/rapidjson.autopkg +77 -0
- data/vendor/simdjson/dependencies/rapidjson/readme.md +160 -0
- data/vendor/simdjson/dependencies/rapidjson/readme.zh-cn.md +152 -0
- data/vendor/simdjson/dependencies/rapidjson/test/CMakeLists.txt +20 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/misctest.cpp +974 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.cpp +24 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.h +185 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/platformtest.cpp +166 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/rapidjsontest.cpp +472 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/schematest.cpp +216 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/CMakeLists.txt +92 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/allocatorstest.cpp +102 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/bigintegertest.cpp +133 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/cursorstreamwrappertest.cpp +115 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/documenttest.cpp +672 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/dtoatest.cpp +98 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodedstreamtest.cpp +313 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodingstest.cpp +451 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/filestreamtest.cpp +112 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/fwdtest.cpp +230 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/istreamwrappertest.cpp +181 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/itoatest.cpp +160 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/jsoncheckertest.cpp +143 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/namespacetest.cpp +70 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/ostreamwrappertest.cpp +92 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/pointertest.cpp +1529 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/prettywritertest.cpp +344 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/readertest.cpp +1895 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/regextest.cpp +638 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/schematest.cpp +2045 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/simdtest.cpp +219 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/strfunctest.cpp +30 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/stringbuffertest.cpp +192 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/strtodtest.cpp +132 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.cpp +51 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.h +140 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/valuetest.cpp +1851 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/writertest.cpp +598 -0
- data/vendor/simdjson/dependencies/rapidjson/test/valgrind.supp +17 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/README.md +141 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CHANGES +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +202 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/LICENSE +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/Makefile.am +224 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/README.md +333 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/configure.ac +146 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +562 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +3675 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +132 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +525 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +3250 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +11 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +624 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +534 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +3342 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +556 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +3432 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +1205 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +2377 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +794 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +1095 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +291 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +2179 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +672 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +397 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +161 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +4399 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +246 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +58 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +1847 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +94 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +8 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +10 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +39 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +279 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +136 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +511 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +91 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/make/Makefile +101 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +191 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +15 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +187 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +201 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +101 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +84 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +90 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +103 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +240 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +203 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +35 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +115 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +1733 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +227 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +448 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +287 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +31 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +303 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +640 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +1387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +78 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +47 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +156 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +174 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +498 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +823 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +183 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +54 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +1411 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +428 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +1228 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +622 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +127 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +1286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +699 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +5648 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +708 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +424 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +2644 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +51 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +81 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +108 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +100 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +669 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +180 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +291 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +310 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +322 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +220 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +112 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CHANGES +157 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +37 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/LICENSE +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/Makefile.am +310 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/README.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +242 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +138 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +54 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +38 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/configure.ac +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +2182 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/FAQ.md +1087 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +502 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +2096 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +886 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +497 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +2178 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +1038 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +501 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +2181 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +1082 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +501 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +294 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +250 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +1444 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +510 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +993 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +232 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +179 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +263 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +2236 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +358 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +58 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +206 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +1238 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +731 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +2554 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +167 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +363 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +74 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/make/Makefile +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +129 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +129 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +164 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +164 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +123 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +144 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +153 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +56 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +85 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +109 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +172 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +151 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +53 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +199 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +224 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +130 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +173 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +160 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/common.py +83 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +253 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +730 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +274 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +855 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +158 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +78 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +48 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +1342 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +1183 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +1259 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +373 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +110 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +118 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +5388 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +38 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +1427 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +662 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +154 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +311 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +159 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +215 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +65 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +1055 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +1304 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +1635 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +208 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +320 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +380 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +66 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +341 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +47 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +212 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +237 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +311 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +130 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +71 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +117 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +192 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +636 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +140 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +172 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +207 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +157 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +56 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +340 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +1062 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +743 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +2427 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +127 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +253 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +325 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +103 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +256 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +320 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +92 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +171 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +72 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +70 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +7706 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +49 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +49 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +132 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +308 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +181 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +194 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.cc +36 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.h +55 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +30 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +17 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +18 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +8 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +30 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +457 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +62 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +63 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +65 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +100 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +1135 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/travis.sh +15 -0
- data/vendor/simdjson/dependencies/rapidjson/travis-doxygen.sh +121 -0
- data/vendor/simdjson/dependencies/sajson/LICENSE.txt +7 -0
- data/vendor/simdjson/dependencies/sajson/README.md +73 -0
- data/vendor/simdjson/dependencies/sajson/SConscript +41 -0
- data/vendor/simdjson/dependencies/sajson/SConstruct +95 -0
- data/vendor/simdjson/dependencies/sajson/benchmark/benchmark.cpp +92 -0
- data/vendor/simdjson/dependencies/sajson/doc/doxygen.config +2427 -0
- data/vendor/simdjson/dependencies/sajson/example/main.cpp +127 -0
- data/vendor/simdjson/dependencies/sajson/example/zero-allocation.cpp +28 -0
- data/vendor/simdjson/dependencies/sajson/include/sajson.h +2493 -0
- data/vendor/simdjson/dependencies/sajson/include/sajson_ostream.h +20 -0
- data/vendor/simdjson/dependencies/sajson/s/bench +15 -0
- data/vendor/simdjson/dependencies/sajson/s/build +4 -0
- data/vendor/simdjson/dependencies/sajson/s/doxygen +4 -0
- data/vendor/simdjson/dependencies/sajson/s/test +21 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/build.sh +4 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/json.dict +44 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run-primary.sh +4 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run.sh +3 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.pbxproj +665 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/xcshareddata/xcschemes/sajson-macOS.xcscheme +100 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/Info.plist +24 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-ffi.cpp +79 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-swift/sajson-ffi.h +35 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson.swift +409 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson_swift.h +3 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/Info.plist +22 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/sajsonTests.swift +122 -0
- data/vendor/simdjson/dependencies/sajson/tests/test.cpp +1049 -0
- data/vendor/simdjson/dependencies/sajson/tests/test_no_stl.cpp +2 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/COPYING +20 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/Makefile +96 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/README +68 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2003.vcproj +174 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2005.vcproj +256 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.sln +30 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.vcproj +226 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.sln +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.vcproj +318 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/docs/UnitTest++.html +260 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.cpp +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CheckMacros.h +122 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.h +158 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Config.h +31 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.cpp +18 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.h +17 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.cpp +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.cpp +25 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.h +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ExecuteTest.h +46 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.cpp +149 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.h +67 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.cpp +46 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.h +42 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.cpp +33 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.cpp +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.h +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.cpp +41 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.h +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.cpp +22 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.h +24 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.cpp +39 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.h +32 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestMacros.h +113 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.cpp +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.h +20 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.cpp +41 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.h +19 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.cpp +60 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.h +36 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.cpp +76 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.h +61 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestSuite.h +14 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.cpp +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.h +33 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeHelpers.h +7 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/UnitTest++.h +18 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.h +48 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.cpp +127 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.h +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/Main.cpp +8 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/RecordingReporter.h +98 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/ScopedCurrentTest.h +37 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestAssertHandler.cpp +44 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCheckMacros.cpp +801 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestChecks.cpp +293 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCurrentTest.cpp +38 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestDeferredTestReporter.cpp +117 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestMemoryOutStream.cpp +151 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTest.cpp +129 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestList.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestMacros.cpp +212 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestResults.cpp +111 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestRunner.cpp +307 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestSuite.cpp +12 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraint.cpp +69 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraintMacro.cpp +35 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestUnitTest++.cpp +156 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestXmlTestReporter.cpp +183 -0
- data/vendor/simdjson/dependencies/sajson/tools/genpow10.js +39 -0
- data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajson.h +310 -0
- data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajsondec.c +891 -0
- data/vendor/simdjson/dependencies/ujson4c/LICENSE.txt +31 -0
- data/vendor/simdjson/dependencies/ujson4c/README.rst +43 -0
- data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.c +836 -0
- data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.h +261 -0
- data/vendor/simdjson/dependencies/ujson4c/tests/benchmark.c +225 -0
- data/vendor/simdjson/dependencies/ujson4c/tests/tests.c +102 -0
- data/vendor/simdjson/doc/Multiline_JSON_Parse_Competition.png +0 -0
- data/vendor/simdjson/doc/basics.md +574 -0
- data/vendor/simdjson/doc/basics_doxygen.md +556 -0
- data/vendor/simdjson/doc/gbps.png +0 -0
- data/vendor/simdjson/doc/growing.png +0 -0
- data/vendor/simdjson/doc/implementation-selection.md +83 -0
- data/vendor/simdjson/doc/parse_many.md +160 -0
- data/vendor/simdjson/doc/performance.md +172 -0
- data/vendor/simdjson/{tape.md → doc/tape.md} +40 -38
- data/vendor/simdjson/examples/CMakeLists.txt +1 -0
- data/vendor/simdjson/examples/quickstart/CMakeLists.txt +60 -0
- data/vendor/simdjson/examples/quickstart/Makefile +32 -0
- data/vendor/simdjson/examples/quickstart/quickstart.cpp +7 -0
- data/vendor/simdjson/examples/quickstart/quickstart_noexceptions.cpp +16 -0
- data/vendor/simdjson/extra/dumpbits.h +19 -0
- data/vendor/simdjson/fuzz/CMakeLists.txt +63 -0
- data/vendor/simdjson/fuzz/Fuzzing.md +86 -0
- data/vendor/simdjson/fuzz/NullBuffer.h +21 -0
- data/vendor/simdjson/fuzz/build_corpus.sh +18 -0
- data/vendor/simdjson/fuzz/build_fuzzer_variants.sh +174 -0
- data/vendor/simdjson/fuzz/build_like_ossfuzz.sh +22 -0
- data/vendor/simdjson/fuzz/fuzz_dump.cpp +60 -0
- data/vendor/simdjson/fuzz/fuzz_dump_raw_tape.cpp +18 -0
- data/vendor/simdjson/fuzz/fuzz_minify.cpp +19 -0
- data/vendor/simdjson/fuzz/fuzz_parser.cpp +10 -0
- data/vendor/simdjson/fuzz/fuzz_print_json.cpp +18 -0
- data/vendor/simdjson/fuzz/main.cpp +26 -0
- data/vendor/simdjson/fuzz/measure_coverage.sh +34 -0
- data/vendor/simdjson/fuzz/ossfuzz.sh +44 -0
- data/vendor/simdjson/images/logotiny.png +0 -0
- data/vendor/simdjson/include/CMakeLists.txt +13 -0
- data/vendor/simdjson/include/simdjson.h +47 -0
- data/vendor/simdjson/include/simdjson/common_defs.h +177 -71
- data/vendor/simdjson/include/simdjson/compiler_check.h +35 -0
- data/vendor/simdjson/include/simdjson/dom/array.h +158 -0
- data/vendor/simdjson/include/simdjson/dom/document.h +78 -0
- data/vendor/simdjson/include/simdjson/dom/document_stream.h +261 -0
- data/vendor/simdjson/include/simdjson/dom/element.h +545 -0
- data/vendor/simdjson/include/simdjson/dom/jsonparser.h +117 -0
- data/vendor/simdjson/include/simdjson/dom/object.h +264 -0
- data/vendor/simdjson/include/simdjson/dom/parsedjson.h +17 -0
- data/vendor/simdjson/include/simdjson/dom/parsedjson_iterator.h +270 -0
- data/vendor/simdjson/include/simdjson/dom/parser.h +434 -0
- data/vendor/simdjson/include/simdjson/error.h +252 -0
- data/vendor/simdjson/include/simdjson/implementation.h +244 -0
- data/vendor/simdjson/include/simdjson/inline/array.h +153 -0
- data/vendor/simdjson/include/simdjson/inline/document.h +141 -0
- data/vendor/simdjson/include/simdjson/inline/document_stream.h +255 -0
- data/vendor/simdjson/include/simdjson/inline/element.h +535 -0
- data/vendor/simdjson/include/simdjson/inline/error.h +155 -0
- data/vendor/simdjson/include/simdjson/inline/object.h +255 -0
- data/vendor/simdjson/include/simdjson/inline/padded_string.h +150 -0
- data/vendor/simdjson/include/simdjson/inline/parsedjson_iterator.h +486 -0
- data/vendor/simdjson/include/simdjson/inline/parser.h +206 -0
- data/vendor/simdjson/include/simdjson/inline/tape_ref.h +105 -0
- data/vendor/simdjson/include/simdjson/internal/dom_parser_implementation.h +181 -0
- data/vendor/simdjson/include/simdjson/internal/jsonformatutils.h +65 -0
- data/vendor/simdjson/include/simdjson/internal/tape_ref.h +51 -0
- data/vendor/simdjson/include/simdjson/internal/tape_type.h +28 -0
- data/vendor/simdjson/include/simdjson/jsonioutil.h +10 -22
- data/vendor/simdjson/include/simdjson/minify.h +75 -0
- data/vendor/simdjson/include/simdjson/nonstd/string_view.hpp +1529 -0
- data/vendor/simdjson/include/simdjson/padded_string.h +144 -58
- data/vendor/simdjson/include/simdjson/portability.h +162 -93
- data/vendor/simdjson/include/simdjson/simdjson.h +9 -43
- data/vendor/simdjson/include/simdjson/simdjson_version.h +20 -7
- data/vendor/simdjson/jsonchecker/CMakeLists.txt +3 -0
- data/vendor/simdjson/jsonexamples/CMakeLists.txt +16 -0
- data/vendor/simdjson/jsonexamples/generated/CMakeLists.txt +18 -0
- data/vendor/simdjson/jsonexamples/generated/genfeaturejson.rb +117 -0
- data/vendor/simdjson/jsonexamples/generated/genfeaturejsonseed.rb +49 -0
- data/vendor/simdjson/jsonexamples/generated/miss-templates/128.txt +10000 -0
- data/vendor/simdjson/jsonexamples/generated/miss-templates/64.txt +10000 -0
- data/vendor/simdjson/jsonexamples/small/jsoniter_scala/README.md +25 -1
- data/vendor/simdjson/scripts/ruby/kostya_large.rb +32 -0
- data/vendor/simdjson/scripts/shootout.sh +32 -0
- data/vendor/simdjson/singleheader/CMakeLists.txt +151 -0
- data/vendor/simdjson/singleheader/README.md +2 -1
- data/vendor/simdjson/singleheader/amalgamate.sh +196 -0
- data/vendor/simdjson/singleheader/amalgamate_demo.cpp +46 -0
- data/vendor/simdjson/singleheader/simdjson.cpp +14045 -1541
- data/vendor/simdjson/singleheader/simdjson.h +7250 -39226
- data/vendor/simdjson/src/CMakeLists.txt +91 -50
- data/vendor/simdjson/src/arm64/bitmanipulation.h +73 -0
- data/vendor/simdjson/src/arm64/bitmask.h +43 -0
- data/vendor/simdjson/src/arm64/dom_parser_implementation.cpp +137 -0
- data/vendor/simdjson/src/arm64/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/arm64/implementation.cpp +25 -0
- data/vendor/simdjson/src/arm64/implementation.h +27 -0
- data/vendor/simdjson/src/arm64/intrinsics.h +10 -0
- data/vendor/simdjson/src/arm64/numberparsing.h +39 -0
- data/vendor/simdjson/src/arm64/simd.h +522 -0
- data/vendor/simdjson/src/arm64/stringparsing.h +53 -0
- data/vendor/simdjson/src/error.cpp +34 -0
- data/vendor/simdjson/src/fallback/bitmanipulation.h +77 -0
- data/vendor/simdjson/src/fallback/dom_parser_implementation.cpp +335 -0
- data/vendor/simdjson/src/fallback/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/fallback/implementation.cpp +25 -0
- data/vendor/simdjson/src/fallback/implementation.h +32 -0
- data/vendor/simdjson/src/fallback/numberparsing.h +35 -0
- data/vendor/simdjson/src/fallback/stringparsing.h +35 -0
- data/vendor/simdjson/src/generic/dom_parser_implementation.h +59 -0
- data/vendor/simdjson/src/generic/stage1/allocate.h +17 -0
- data/vendor/simdjson/src/generic/stage1/buf_block_reader.h +83 -0
- data/vendor/simdjson/src/generic/stage1/find_next_document_index.h +86 -0
- data/vendor/simdjson/src/generic/stage1/json_minifier.h +77 -0
- data/vendor/simdjson/src/generic/stage1/json_scanner.h +104 -0
- data/vendor/simdjson/src/generic/stage1/json_string_scanner.h +139 -0
- data/vendor/simdjson/src/generic/stage1/json_structural_indexer.h +198 -0
- data/vendor/simdjson/src/generic/stage1/utf8_fastvalidate_algorithm.h +178 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup2_algorithm.h +218 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup3_algorithm.h +230 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup_algorithm.h +299 -0
- data/vendor/simdjson/src/generic/stage1/utf8_range_algorithm.h +180 -0
- data/vendor/simdjson/src/generic/stage1/utf8_validator.h +26 -0
- data/vendor/simdjson/src/generic/stage1/utf8_zwegner_algorithm.h +360 -0
- data/vendor/simdjson/src/generic/stage2/allocate.h +18 -0
- data/vendor/simdjson/src/generic/stage2/atomparsing.h +51 -0
- data/vendor/simdjson/src/generic/stage2/logger.h +64 -0
- data/vendor/simdjson/src/generic/stage2/numberparsing.h +572 -0
- data/vendor/simdjson/src/generic/stage2/streaming_structural_parser.h +168 -0
- data/vendor/simdjson/{include/simdjson → src/generic/stage2}/stringparsing.h +54 -36
- data/vendor/simdjson/src/generic/stage2/structural_iterator.h +70 -0
- data/vendor/simdjson/src/generic/stage2/structural_parser.h +474 -0
- data/vendor/simdjson/src/generic/stage2/tape_writer.h +95 -0
- data/vendor/simdjson/src/haswell/bitmanipulation.h +80 -0
- data/vendor/simdjson/src/haswell/bitmask.h +30 -0
- data/vendor/simdjson/src/haswell/dom_parser_implementation.cpp +127 -0
- data/vendor/simdjson/src/haswell/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/haswell/implementation.cpp +25 -0
- data/vendor/simdjson/src/haswell/implementation.h +29 -0
- data/vendor/simdjson/src/haswell/intrinsics.h +54 -0
- data/vendor/simdjson/src/haswell/numberparsing.h +49 -0
- data/vendor/simdjson/src/haswell/simd.h +377 -0
- data/vendor/simdjson/src/haswell/stringparsing.h +50 -0
- data/vendor/simdjson/src/implementation.cpp +155 -0
- data/vendor/simdjson/{include/simdjson → src}/isadetection.h +26 -11
- data/vendor/simdjson/src/jsoncharutils.h +1336 -0
- data/vendor/simdjson/src/simdjson.cpp +30 -28
- data/vendor/simdjson/src/simdprune_tables.h +136 -0
- data/vendor/simdjson/src/westmere/bitmanipulation.h +89 -0
- data/vendor/simdjson/src/westmere/bitmask.h +29 -0
- data/vendor/simdjson/src/westmere/dom_parser_implementation.cpp +128 -0
- data/vendor/simdjson/src/westmere/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/westmere/implementation.cpp +25 -0
- data/vendor/simdjson/src/westmere/implementation.h +28 -0
- data/vendor/simdjson/src/westmere/intrinsics.h +27 -0
- data/vendor/simdjson/src/westmere/numberparsing.h +50 -0
- data/vendor/simdjson/src/westmere/simd.h +362 -0
- data/vendor/simdjson/src/westmere/stringparsing.h +52 -0
- data/vendor/simdjson/tests/CMakeLists.txt +182 -11
- data/vendor/simdjson/tests/allparserscheckfile.cpp +24 -28
- data/vendor/simdjson/tests/basictests.cpp +1963 -54
- data/vendor/simdjson/tests/cast_tester.h +271 -0
- data/vendor/simdjson/tests/checkimplementation.cpp +23 -0
- data/vendor/simdjson/tests/compilation_failure_tests/CMakeLists.txt +25 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_load.cpp +15 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_padstring.cpp +16 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_stdstring.cpp +16 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp +17 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uint8.cpp +17 -0
- data/vendor/simdjson/tests/compilation_failure_tests/example_compiletest.cpp +20 -0
- data/vendor/simdjson/tests/errortests.cpp +160 -0
- data/vendor/simdjson/tests/extracting_values_example.cpp +12 -0
- data/vendor/simdjson/tests/integer_tests.cpp +95 -0
- data/vendor/simdjson/{scripts → tests}/issue150.sh +1 -2
- data/vendor/simdjson/tests/jsoncheck.cpp +37 -29
- data/vendor/simdjson/tests/numberparsingcheck.cpp +35 -20
- data/vendor/simdjson/tests/parse_many_test.cpp +146 -0
- data/vendor/simdjson/tests/pointercheck.cpp +81 -33
- data/vendor/simdjson/tests/readme_examples.cpp +298 -0
- data/vendor/simdjson/tests/readme_examples_noexceptions.cpp +197 -0
- data/vendor/simdjson/tests/singleheadertest.cpp +8 -12
- data/vendor/simdjson/tests/staticchecks.cpp +29 -0
- data/vendor/simdjson/tests/stringparsingcheck.cpp +29 -30
- data/vendor/simdjson/tests/test_macros.h +55 -0
- data/vendor/simdjson/tests/testjson2json.sh +39 -0
- data/vendor/simdjson/tests/unicode_tests.cpp +246 -0
- data/vendor/simdjson/tools/CMakeLists.txt +9 -3
- data/vendor/simdjson/tools/json2json.cpp +56 -95
- data/vendor/simdjson/tools/jsonpointer.cpp +16 -64
- data/vendor/simdjson/tools/jsonstats.cpp +225 -85
- data/vendor/simdjson/tools/minify.cpp +70 -12
- data/vendor/simdjson/tools/release.py +92 -20
- data/vendor/simdjson/windows/CMakeLists.txt +6 -0
- data/vendor/simdjson/windows/dirent_portable.h +6 -1039
- data/vendor/simdjson/windows/getopt.h +658 -0
- data/vendor/simdjson/windows/toni_ronnko_dirent.h +1075 -0
- data/vendor/simdjson/windows/unistd.h +3 -0
- metadata +2544 -47
- data/vendor/simdjson/Makefile +0 -203
- data/vendor/simdjson/Notes.md +0 -85
- data/vendor/simdjson/amalgamation.sh +0 -158
- data/vendor/simdjson/include/simdjson/jsoncharutils.h +0 -301
- data/vendor/simdjson/include/simdjson/jsonformatutils.h +0 -202
- data/vendor/simdjson/include/simdjson/jsonminifier.h +0 -30
- data/vendor/simdjson/include/simdjson/jsonparser.h +0 -250
- data/vendor/simdjson/include/simdjson/numberparsing.h +0 -587
- data/vendor/simdjson/include/simdjson/parsedjson.h +0 -544
- data/vendor/simdjson/include/simdjson/simdprune_tables.h +0 -35074
- data/vendor/simdjson/include/simdjson/simdutf8check_arm64.h +0 -180
- data/vendor/simdjson/include/simdjson/simdutf8check_haswell.h +0 -198
- data/vendor/simdjson/include/simdjson/simdutf8check_westmere.h +0 -169
- data/vendor/simdjson/include/simdjson/stage1_find_marks.h +0 -121
- data/vendor/simdjson/include/simdjson/stage1_find_marks_arm64.h +0 -210
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten.h +0 -93
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten_haswell.h +0 -95
- data/vendor/simdjson/include/simdjson/stage1_find_marks_haswell.h +0 -210
- data/vendor/simdjson/include/simdjson/stage1_find_marks_macros.h +0 -239
- data/vendor/simdjson/include/simdjson/stage1_find_marks_westmere.h +0 -194
- data/vendor/simdjson/include/simdjson/stage2_build_tape.h +0 -85
- data/vendor/simdjson/include/simdjson/stringparsing_arm64.h +0 -56
- data/vendor/simdjson/include/simdjson/stringparsing_haswell.h +0 -43
- data/vendor/simdjson/include/simdjson/stringparsing_macros.h +0 -88
- data/vendor/simdjson/include/simdjson/stringparsing_westmere.h +0 -41
- data/vendor/simdjson/scripts/testjson2json.sh +0 -99
- data/vendor/simdjson/singleheader/amalgamation_demo.cpp +0 -20
- data/vendor/simdjson/src/jsonioutil.cpp +0 -35
- data/vendor/simdjson/src/jsonminifier.cpp +0 -285
- data/vendor/simdjson/src/jsonparser.cpp +0 -91
- data/vendor/simdjson/src/parsedjson.cpp +0 -323
- data/vendor/simdjson/src/parsedjsoniterator.cpp +0 -272
- data/vendor/simdjson/src/stage1_find_marks.cpp +0 -41
- data/vendor/simdjson/src/stage2_build_tape.cpp +0 -567
- data/vendor/simdjson/tools/cmake/FindCTargets.cmake +0 -15
- data/vendor/simdjson/tools/cmake/FindOptions.cmake +0 -52
@@ -0,0 +1,2483 @@
|
|
1
|
+
// Tencent is pleased to support the open source community by making RapidJSON available->
|
2
|
+
//
|
3
|
+
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip-> All rights reserved->
|
4
|
+
//
|
5
|
+
// Licensed under the MIT License (the "License"); you may not use this file except
|
6
|
+
// in compliance with the License-> You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://opensource->org/licenses/MIT
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software distributed
|
11
|
+
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
12
|
+
// CONDITIONS OF ANY KIND, either express or implied-> See the License for the
|
13
|
+
// specific language governing permissions and limitations under the License->
|
14
|
+
|
15
|
+
#ifndef RAPIDJSON_SCHEMA_H_
|
16
|
+
#define RAPIDJSON_SCHEMA_H_
|
17
|
+
|
18
|
+
#include "document.h"
|
19
|
+
#include "pointer.h"
|
20
|
+
#include "stringbuffer.h"
|
21
|
+
#include <cmath> // abs, floor
|
22
|
+
|
23
|
+
#if !defined(RAPIDJSON_SCHEMA_USE_INTERNALREGEX)
|
24
|
+
#define RAPIDJSON_SCHEMA_USE_INTERNALREGEX 1
|
25
|
+
#else
|
26
|
+
#define RAPIDJSON_SCHEMA_USE_INTERNALREGEX 0
|
27
|
+
#endif
|
28
|
+
|
29
|
+
#if !RAPIDJSON_SCHEMA_USE_INTERNALREGEX && defined(RAPIDJSON_SCHEMA_USE_STDREGEX) && (__cplusplus >=201103L || (defined(_MSC_VER) && _MSC_VER >= 1800))
|
30
|
+
#define RAPIDJSON_SCHEMA_USE_STDREGEX 1
|
31
|
+
#else
|
32
|
+
#define RAPIDJSON_SCHEMA_USE_STDREGEX 0
|
33
|
+
#endif
|
34
|
+
|
35
|
+
#if RAPIDJSON_SCHEMA_USE_INTERNALREGEX
|
36
|
+
#include "internal/regex.h"
|
37
|
+
#elif RAPIDJSON_SCHEMA_USE_STDREGEX
|
38
|
+
#include <regex>
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#if RAPIDJSON_SCHEMA_USE_INTERNALREGEX || RAPIDJSON_SCHEMA_USE_STDREGEX
|
42
|
+
#define RAPIDJSON_SCHEMA_HAS_REGEX 1
|
43
|
+
#else
|
44
|
+
#define RAPIDJSON_SCHEMA_HAS_REGEX 0
|
45
|
+
#endif
|
46
|
+
|
47
|
+
#ifndef RAPIDJSON_SCHEMA_VERBOSE
|
48
|
+
#define RAPIDJSON_SCHEMA_VERBOSE 0
|
49
|
+
#endif
|
50
|
+
|
51
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
52
|
+
#include "stringbuffer.h"
|
53
|
+
#endif
|
54
|
+
|
55
|
+
RAPIDJSON_DIAG_PUSH
|
56
|
+
|
57
|
+
#if defined(__GNUC__)
|
58
|
+
RAPIDJSON_DIAG_OFF(effc++)
|
59
|
+
#endif
|
60
|
+
|
61
|
+
#ifdef __clang__
|
62
|
+
RAPIDJSON_DIAG_OFF(weak-vtables)
|
63
|
+
RAPIDJSON_DIAG_OFF(exit-time-destructors)
|
64
|
+
RAPIDJSON_DIAG_OFF(c++98-compat-pedantic)
|
65
|
+
RAPIDJSON_DIAG_OFF(variadic-macros)
|
66
|
+
#elif defined(_MSC_VER)
|
67
|
+
RAPIDJSON_DIAG_OFF(4512) // assignment operator could not be generated
|
68
|
+
#endif
|
69
|
+
|
70
|
+
RAPIDJSON_NAMESPACE_BEGIN
|
71
|
+
|
72
|
+
///////////////////////////////////////////////////////////////////////////////
|
73
|
+
// Verbose Utilities
|
74
|
+
|
75
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
76
|
+
|
77
|
+
namespace internal {
|
78
|
+
|
79
|
+
inline void PrintInvalidKeyword(const char* keyword) {
|
80
|
+
printf("Fail keyword: %s\n", keyword);
|
81
|
+
}
|
82
|
+
|
83
|
+
inline void PrintInvalidKeyword(const wchar_t* keyword) {
|
84
|
+
wprintf(L"Fail keyword: %ls\n", keyword);
|
85
|
+
}
|
86
|
+
|
87
|
+
inline void PrintInvalidDocument(const char* document) {
|
88
|
+
printf("Fail document: %s\n\n", document);
|
89
|
+
}
|
90
|
+
|
91
|
+
inline void PrintInvalidDocument(const wchar_t* document) {
|
92
|
+
wprintf(L"Fail document: %ls\n\n", document);
|
93
|
+
}
|
94
|
+
|
95
|
+
inline void PrintValidatorPointers(unsigned depth, const char* s, const char* d) {
|
96
|
+
printf("S: %*s%s\nD: %*s%s\n\n", depth * 4, " ", s, depth * 4, " ", d);
|
97
|
+
}
|
98
|
+
|
99
|
+
inline void PrintValidatorPointers(unsigned depth, const wchar_t* s, const wchar_t* d) {
|
100
|
+
wprintf(L"S: %*ls%ls\nD: %*ls%ls\n\n", depth * 4, L" ", s, depth * 4, L" ", d);
|
101
|
+
}
|
102
|
+
|
103
|
+
} // namespace internal
|
104
|
+
|
105
|
+
#endif // RAPIDJSON_SCHEMA_VERBOSE
|
106
|
+
|
107
|
+
///////////////////////////////////////////////////////////////////////////////
|
108
|
+
// RAPIDJSON_INVALID_KEYWORD_RETURN
|
109
|
+
|
110
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
111
|
+
#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword) internal::PrintInvalidKeyword(keyword)
|
112
|
+
#else
|
113
|
+
#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword)
|
114
|
+
#endif
|
115
|
+
|
116
|
+
#define RAPIDJSON_INVALID_KEYWORD_RETURN(keyword)\
|
117
|
+
RAPIDJSON_MULTILINEMACRO_BEGIN\
|
118
|
+
context.invalidKeyword = keyword.GetString();\
|
119
|
+
RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword.GetString());\
|
120
|
+
return false;\
|
121
|
+
RAPIDJSON_MULTILINEMACRO_END
|
122
|
+
|
123
|
+
///////////////////////////////////////////////////////////////////////////////
|
124
|
+
// Forward declarations
|
125
|
+
|
126
|
+
template <typename ValueType, typename Allocator>
|
127
|
+
class GenericSchemaDocument;
|
128
|
+
|
129
|
+
namespace internal {
|
130
|
+
|
131
|
+
template <typename SchemaDocumentType>
|
132
|
+
class Schema;
|
133
|
+
|
134
|
+
///////////////////////////////////////////////////////////////////////////////
|
135
|
+
// ISchemaValidator
|
136
|
+
|
137
|
+
class ISchemaValidator {
|
138
|
+
public:
|
139
|
+
virtual ~ISchemaValidator() {}
|
140
|
+
virtual bool IsValid() const = 0;
|
141
|
+
};
|
142
|
+
|
143
|
+
///////////////////////////////////////////////////////////////////////////////
|
144
|
+
// ISchemaStateFactory
|
145
|
+
|
146
|
+
template <typename SchemaType>
|
147
|
+
class ISchemaStateFactory {
|
148
|
+
public:
|
149
|
+
virtual ~ISchemaStateFactory() {}
|
150
|
+
virtual ISchemaValidator* CreateSchemaValidator(const SchemaType&) = 0;
|
151
|
+
virtual void DestroySchemaValidator(ISchemaValidator* validator) = 0;
|
152
|
+
virtual void* CreateHasher() = 0;
|
153
|
+
virtual uint64_t GetHashCode(void* hasher) = 0;
|
154
|
+
virtual void DestroryHasher(void* hasher) = 0;
|
155
|
+
virtual void* MallocState(size_t size) = 0;
|
156
|
+
virtual void FreeState(void* p) = 0;
|
157
|
+
};
|
158
|
+
|
159
|
+
///////////////////////////////////////////////////////////////////////////////
|
160
|
+
// IValidationErrorHandler
|
161
|
+
|
162
|
+
template <typename SchemaType>
|
163
|
+
class IValidationErrorHandler {
|
164
|
+
public:
|
165
|
+
typedef typename SchemaType::Ch Ch;
|
166
|
+
typedef typename SchemaType::SValue SValue;
|
167
|
+
|
168
|
+
virtual ~IValidationErrorHandler() {}
|
169
|
+
|
170
|
+
virtual void NotMultipleOf(int64_t actual, const SValue& expected) = 0;
|
171
|
+
virtual void NotMultipleOf(uint64_t actual, const SValue& expected) = 0;
|
172
|
+
virtual void NotMultipleOf(double actual, const SValue& expected) = 0;
|
173
|
+
virtual void AboveMaximum(int64_t actual, const SValue& expected, bool exclusive) = 0;
|
174
|
+
virtual void AboveMaximum(uint64_t actual, const SValue& expected, bool exclusive) = 0;
|
175
|
+
virtual void AboveMaximum(double actual, const SValue& expected, bool exclusive) = 0;
|
176
|
+
virtual void BelowMinimum(int64_t actual, const SValue& expected, bool exclusive) = 0;
|
177
|
+
virtual void BelowMinimum(uint64_t actual, const SValue& expected, bool exclusive) = 0;
|
178
|
+
virtual void BelowMinimum(double actual, const SValue& expected, bool exclusive) = 0;
|
179
|
+
|
180
|
+
virtual void TooLong(const Ch* str, SizeType length, SizeType expected) = 0;
|
181
|
+
virtual void TooShort(const Ch* str, SizeType length, SizeType expected) = 0;
|
182
|
+
virtual void DoesNotMatch(const Ch* str, SizeType length) = 0;
|
183
|
+
|
184
|
+
virtual void DisallowedItem(SizeType index) = 0;
|
185
|
+
virtual void TooFewItems(SizeType actualCount, SizeType expectedCount) = 0;
|
186
|
+
virtual void TooManyItems(SizeType actualCount, SizeType expectedCount) = 0;
|
187
|
+
virtual void DuplicateItems(SizeType index1, SizeType index2) = 0;
|
188
|
+
|
189
|
+
virtual void TooManyProperties(SizeType actualCount, SizeType expectedCount) = 0;
|
190
|
+
virtual void TooFewProperties(SizeType actualCount, SizeType expectedCount) = 0;
|
191
|
+
virtual void StartMissingProperties() = 0;
|
192
|
+
virtual void AddMissingProperty(const SValue& name) = 0;
|
193
|
+
virtual bool EndMissingProperties() = 0;
|
194
|
+
virtual void PropertyViolations(ISchemaValidator** subvalidators, SizeType count) = 0;
|
195
|
+
virtual void DisallowedProperty(const Ch* name, SizeType length) = 0;
|
196
|
+
|
197
|
+
virtual void StartDependencyErrors() = 0;
|
198
|
+
virtual void StartMissingDependentProperties() = 0;
|
199
|
+
virtual void AddMissingDependentProperty(const SValue& targetName) = 0;
|
200
|
+
virtual void EndMissingDependentProperties(const SValue& sourceName) = 0;
|
201
|
+
virtual void AddDependencySchemaError(const SValue& souceName, ISchemaValidator* subvalidator) = 0;
|
202
|
+
virtual bool EndDependencyErrors() = 0;
|
203
|
+
|
204
|
+
virtual void DisallowedValue() = 0;
|
205
|
+
virtual void StartDisallowedType() = 0;
|
206
|
+
virtual void AddExpectedType(const typename SchemaType::ValueType& expectedType) = 0;
|
207
|
+
virtual void EndDisallowedType(const typename SchemaType::ValueType& actualType) = 0;
|
208
|
+
virtual void NotAllOf(ISchemaValidator** subvalidators, SizeType count) = 0;
|
209
|
+
virtual void NoneOf(ISchemaValidator** subvalidators, SizeType count) = 0;
|
210
|
+
virtual void NotOneOf(ISchemaValidator** subvalidators, SizeType count) = 0;
|
211
|
+
virtual void Disallowed() = 0;
|
212
|
+
};
|
213
|
+
|
214
|
+
|
215
|
+
///////////////////////////////////////////////////////////////////////////////
|
216
|
+
// Hasher
|
217
|
+
|
218
|
+
// For comparison of compound value
|
219
|
+
template<typename Encoding, typename Allocator>
|
220
|
+
class Hasher {
|
221
|
+
public:
|
222
|
+
typedef typename Encoding::Ch Ch;
|
223
|
+
|
224
|
+
Hasher(Allocator* allocator = 0, size_t stackCapacity = kDefaultSize) : stack_(allocator, stackCapacity) {}
|
225
|
+
|
226
|
+
bool Null() { return WriteType(kNullType); }
|
227
|
+
bool Bool(bool b) { return WriteType(b ? kTrueType : kFalseType); }
|
228
|
+
bool Int(int i) { Number n; n.u.i = i; n.d = static_cast<double>(i); return WriteNumber(n); }
|
229
|
+
bool Uint(unsigned u) { Number n; n.u.u = u; n.d = static_cast<double>(u); return WriteNumber(n); }
|
230
|
+
bool Int64(int64_t i) { Number n; n.u.i = i; n.d = static_cast<double>(i); return WriteNumber(n); }
|
231
|
+
bool Uint64(uint64_t u) { Number n; n.u.u = u; n.d = static_cast<double>(u); return WriteNumber(n); }
|
232
|
+
bool Double(double d) {
|
233
|
+
Number n;
|
234
|
+
if (d < 0) n.u.i = static_cast<int64_t>(d);
|
235
|
+
else n.u.u = static_cast<uint64_t>(d);
|
236
|
+
n.d = d;
|
237
|
+
return WriteNumber(n);
|
238
|
+
}
|
239
|
+
|
240
|
+
bool RawNumber(const Ch* str, SizeType len, bool) {
|
241
|
+
WriteBuffer(kNumberType, str, len * sizeof(Ch));
|
242
|
+
return true;
|
243
|
+
}
|
244
|
+
|
245
|
+
bool String(const Ch* str, SizeType len, bool) {
|
246
|
+
WriteBuffer(kStringType, str, len * sizeof(Ch));
|
247
|
+
return true;
|
248
|
+
}
|
249
|
+
|
250
|
+
bool StartObject() { return true; }
|
251
|
+
bool Key(const Ch* str, SizeType len, bool copy) { return String(str, len, copy); }
|
252
|
+
bool EndObject(SizeType memberCount) {
|
253
|
+
uint64_t h = Hash(0, kObjectType);
|
254
|
+
uint64_t* kv = stack_.template Pop<uint64_t>(memberCount * 2);
|
255
|
+
for (SizeType i = 0; i < memberCount; i++)
|
256
|
+
h ^= Hash(kv[i * 2], kv[i * 2 + 1]); // Use xor to achieve member order insensitive
|
257
|
+
*stack_.template Push<uint64_t>() = h;
|
258
|
+
return true;
|
259
|
+
}
|
260
|
+
|
261
|
+
bool StartArray() { return true; }
|
262
|
+
bool EndArray(SizeType elementCount) {
|
263
|
+
uint64_t h = Hash(0, kArrayType);
|
264
|
+
uint64_t* e = stack_.template Pop<uint64_t>(elementCount);
|
265
|
+
for (SizeType i = 0; i < elementCount; i++)
|
266
|
+
h = Hash(h, e[i]); // Use hash to achieve element order sensitive
|
267
|
+
*stack_.template Push<uint64_t>() = h;
|
268
|
+
return true;
|
269
|
+
}
|
270
|
+
|
271
|
+
bool IsValid() const { return stack_.GetSize() == sizeof(uint64_t); }
|
272
|
+
|
273
|
+
uint64_t GetHashCode() const {
|
274
|
+
RAPIDJSON_ASSERT(IsValid());
|
275
|
+
return *stack_.template Top<uint64_t>();
|
276
|
+
}
|
277
|
+
|
278
|
+
private:
|
279
|
+
static const size_t kDefaultSize = 256;
|
280
|
+
struct Number {
|
281
|
+
union U {
|
282
|
+
uint64_t u;
|
283
|
+
int64_t i;
|
284
|
+
}u;
|
285
|
+
double d;
|
286
|
+
};
|
287
|
+
|
288
|
+
bool WriteType(Type type) { return WriteBuffer(type, 0, 0); }
|
289
|
+
|
290
|
+
bool WriteNumber(const Number& n) { return WriteBuffer(kNumberType, &n, sizeof(n)); }
|
291
|
+
|
292
|
+
bool WriteBuffer(Type type, const void* data, size_t len) {
|
293
|
+
// FNV-1a from http://isthe.com/chongo/tech/comp/fnv/
|
294
|
+
uint64_t h = Hash(RAPIDJSON_UINT64_C2(0x84222325, 0xcbf29ce4), type);
|
295
|
+
const unsigned char* d = static_cast<const unsigned char*>(data);
|
296
|
+
for (size_t i = 0; i < len; i++)
|
297
|
+
h = Hash(h, d[i]);
|
298
|
+
*stack_.template Push<uint64_t>() = h;
|
299
|
+
return true;
|
300
|
+
}
|
301
|
+
|
302
|
+
static uint64_t Hash(uint64_t h, uint64_t d) {
|
303
|
+
static const uint64_t kPrime = RAPIDJSON_UINT64_C2(0x00000100, 0x000001b3);
|
304
|
+
h ^= d;
|
305
|
+
h *= kPrime;
|
306
|
+
return h;
|
307
|
+
}
|
308
|
+
|
309
|
+
Stack<Allocator> stack_;
|
310
|
+
};
|
311
|
+
|
312
|
+
///////////////////////////////////////////////////////////////////////////////
|
313
|
+
// SchemaValidationContext
|
314
|
+
|
315
|
+
template <typename SchemaDocumentType>
|
316
|
+
struct SchemaValidationContext {
|
317
|
+
typedef Schema<SchemaDocumentType> SchemaType;
|
318
|
+
typedef ISchemaStateFactory<SchemaType> SchemaValidatorFactoryType;
|
319
|
+
typedef IValidationErrorHandler<SchemaType> ErrorHandlerType;
|
320
|
+
typedef typename SchemaType::ValueType ValueType;
|
321
|
+
typedef typename ValueType::Ch Ch;
|
322
|
+
|
323
|
+
enum PatternValidatorType {
|
324
|
+
kPatternValidatorOnly,
|
325
|
+
kPatternValidatorWithProperty,
|
326
|
+
kPatternValidatorWithAdditionalProperty
|
327
|
+
};
|
328
|
+
|
329
|
+
SchemaValidationContext(SchemaValidatorFactoryType& f, ErrorHandlerType& eh, const SchemaType* s) :
|
330
|
+
factory(f),
|
331
|
+
error_handler(eh),
|
332
|
+
schema(s),
|
333
|
+
valueSchema(),
|
334
|
+
invalidKeyword(),
|
335
|
+
hasher(),
|
336
|
+
arrayElementHashCodes(),
|
337
|
+
validators(),
|
338
|
+
validatorCount(),
|
339
|
+
patternPropertiesValidators(),
|
340
|
+
patternPropertiesValidatorCount(),
|
341
|
+
patternPropertiesSchemas(),
|
342
|
+
patternPropertiesSchemaCount(),
|
343
|
+
valuePatternValidatorType(kPatternValidatorOnly),
|
344
|
+
propertyExist(),
|
345
|
+
inArray(false),
|
346
|
+
valueUniqueness(false),
|
347
|
+
arrayUniqueness(false)
|
348
|
+
{
|
349
|
+
}
|
350
|
+
|
351
|
+
~SchemaValidationContext() {
|
352
|
+
if (hasher)
|
353
|
+
factory.DestroryHasher(hasher);
|
354
|
+
if (validators) {
|
355
|
+
for (SizeType i = 0; i < validatorCount; i++)
|
356
|
+
factory.DestroySchemaValidator(validators[i]);
|
357
|
+
factory.FreeState(validators);
|
358
|
+
}
|
359
|
+
if (patternPropertiesValidators) {
|
360
|
+
for (SizeType i = 0; i < patternPropertiesValidatorCount; i++)
|
361
|
+
factory.DestroySchemaValidator(patternPropertiesValidators[i]);
|
362
|
+
factory.FreeState(patternPropertiesValidators);
|
363
|
+
}
|
364
|
+
if (patternPropertiesSchemas)
|
365
|
+
factory.FreeState(patternPropertiesSchemas);
|
366
|
+
if (propertyExist)
|
367
|
+
factory.FreeState(propertyExist);
|
368
|
+
}
|
369
|
+
|
370
|
+
SchemaValidatorFactoryType& factory;
|
371
|
+
ErrorHandlerType& error_handler;
|
372
|
+
const SchemaType* schema;
|
373
|
+
const SchemaType* valueSchema;
|
374
|
+
const Ch* invalidKeyword;
|
375
|
+
void* hasher; // Only validator access
|
376
|
+
void* arrayElementHashCodes; // Only validator access this
|
377
|
+
ISchemaValidator** validators;
|
378
|
+
SizeType validatorCount;
|
379
|
+
ISchemaValidator** patternPropertiesValidators;
|
380
|
+
SizeType patternPropertiesValidatorCount;
|
381
|
+
const SchemaType** patternPropertiesSchemas;
|
382
|
+
SizeType patternPropertiesSchemaCount;
|
383
|
+
PatternValidatorType valuePatternValidatorType;
|
384
|
+
PatternValidatorType objectPatternValidatorType;
|
385
|
+
SizeType arrayElementIndex;
|
386
|
+
bool* propertyExist;
|
387
|
+
bool inArray;
|
388
|
+
bool valueUniqueness;
|
389
|
+
bool arrayUniqueness;
|
390
|
+
};
|
391
|
+
|
392
|
+
///////////////////////////////////////////////////////////////////////////////
|
393
|
+
// Schema
|
394
|
+
|
395
|
+
template <typename SchemaDocumentType>
|
396
|
+
class Schema {
|
397
|
+
public:
|
398
|
+
typedef typename SchemaDocumentType::ValueType ValueType;
|
399
|
+
typedef typename SchemaDocumentType::AllocatorType AllocatorType;
|
400
|
+
typedef typename SchemaDocumentType::PointerType PointerType;
|
401
|
+
typedef typename ValueType::EncodingType EncodingType;
|
402
|
+
typedef typename EncodingType::Ch Ch;
|
403
|
+
typedef SchemaValidationContext<SchemaDocumentType> Context;
|
404
|
+
typedef Schema<SchemaDocumentType> SchemaType;
|
405
|
+
typedef GenericValue<EncodingType, AllocatorType> SValue;
|
406
|
+
typedef IValidationErrorHandler<Schema> ErrorHandler;
|
407
|
+
friend class GenericSchemaDocument<ValueType, AllocatorType>;
|
408
|
+
|
409
|
+
Schema(SchemaDocumentType* schemaDocument, const PointerType& p, const ValueType& value, const ValueType& document, AllocatorType* allocator) :
|
410
|
+
allocator_(allocator),
|
411
|
+
uri_(schemaDocument->GetURI(), *allocator),
|
412
|
+
pointer_(p),
|
413
|
+
typeless_(schemaDocument->GetTypeless()),
|
414
|
+
enum_(),
|
415
|
+
enumCount_(),
|
416
|
+
not_(),
|
417
|
+
type_((1 << kTotalSchemaType) - 1), // typeless
|
418
|
+
validatorCount_(),
|
419
|
+
notValidatorIndex_(),
|
420
|
+
properties_(),
|
421
|
+
additionalPropertiesSchema_(),
|
422
|
+
patternProperties_(),
|
423
|
+
patternPropertyCount_(),
|
424
|
+
propertyCount_(),
|
425
|
+
minProperties_(),
|
426
|
+
maxProperties_(SizeType(~0)),
|
427
|
+
additionalProperties_(true),
|
428
|
+
hasDependencies_(),
|
429
|
+
hasRequired_(),
|
430
|
+
hasSchemaDependencies_(),
|
431
|
+
additionalItemsSchema_(),
|
432
|
+
itemsList_(),
|
433
|
+
itemsTuple_(),
|
434
|
+
itemsTupleCount_(),
|
435
|
+
minItems_(),
|
436
|
+
maxItems_(SizeType(~0)),
|
437
|
+
additionalItems_(true),
|
438
|
+
uniqueItems_(false),
|
439
|
+
pattern_(),
|
440
|
+
minLength_(0),
|
441
|
+
maxLength_(~SizeType(0)),
|
442
|
+
exclusiveMinimum_(false),
|
443
|
+
exclusiveMaximum_(false)
|
444
|
+
{
|
445
|
+
typedef typename SchemaDocumentType::ValueType ValueType;
|
446
|
+
typedef typename ValueType::ConstValueIterator ConstValueIterator;
|
447
|
+
typedef typename ValueType::ConstMemberIterator ConstMemberIterator;
|
448
|
+
|
449
|
+
if (!value.IsObject())
|
450
|
+
return;
|
451
|
+
|
452
|
+
if (const ValueType* v = GetMember(value, GetTypeString())) {
|
453
|
+
type_ = 0;
|
454
|
+
if (v->IsString())
|
455
|
+
AddType(*v);
|
456
|
+
else if (v->IsArray())
|
457
|
+
for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr)
|
458
|
+
AddType(*itr);
|
459
|
+
}
|
460
|
+
|
461
|
+
if (const ValueType* v = GetMember(value, GetEnumString()))
|
462
|
+
if (v->IsArray() && v->Size() > 0) {
|
463
|
+
enum_ = static_cast<uint64_t*>(allocator_->Malloc(sizeof(uint64_t) * v->Size()));
|
464
|
+
for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) {
|
465
|
+
typedef Hasher<EncodingType, MemoryPoolAllocator<> > EnumHasherType;
|
466
|
+
char buffer[256 + 24];
|
467
|
+
MemoryPoolAllocator<> hasherAllocator(buffer, sizeof(buffer));
|
468
|
+
EnumHasherType h(&hasherAllocator, 256);
|
469
|
+
itr->Accept(h);
|
470
|
+
enum_[enumCount_++] = h.GetHashCode();
|
471
|
+
}
|
472
|
+
}
|
473
|
+
|
474
|
+
if (schemaDocument) {
|
475
|
+
AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document);
|
476
|
+
AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document);
|
477
|
+
AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document);
|
478
|
+
}
|
479
|
+
|
480
|
+
if (const ValueType* v = GetMember(value, GetNotString())) {
|
481
|
+
schemaDocument->CreateSchema(¬_, p.Append(GetNotString(), allocator_), *v, document);
|
482
|
+
notValidatorIndex_ = validatorCount_;
|
483
|
+
validatorCount_++;
|
484
|
+
}
|
485
|
+
|
486
|
+
// Object
|
487
|
+
|
488
|
+
const ValueType* properties = GetMember(value, GetPropertiesString());
|
489
|
+
const ValueType* required = GetMember(value, GetRequiredString());
|
490
|
+
const ValueType* dependencies = GetMember(value, GetDependenciesString());
|
491
|
+
{
|
492
|
+
// Gather properties from properties/required/dependencies
|
493
|
+
SValue allProperties(kArrayType);
|
494
|
+
|
495
|
+
if (properties && properties->IsObject())
|
496
|
+
for (ConstMemberIterator itr = properties->MemberBegin(); itr != properties->MemberEnd(); ++itr)
|
497
|
+
AddUniqueElement(allProperties, itr->name);
|
498
|
+
|
499
|
+
if (required && required->IsArray())
|
500
|
+
for (ConstValueIterator itr = required->Begin(); itr != required->End(); ++itr)
|
501
|
+
if (itr->IsString())
|
502
|
+
AddUniqueElement(allProperties, *itr);
|
503
|
+
|
504
|
+
if (dependencies && dependencies->IsObject())
|
505
|
+
for (ConstMemberIterator itr = dependencies->MemberBegin(); itr != dependencies->MemberEnd(); ++itr) {
|
506
|
+
AddUniqueElement(allProperties, itr->name);
|
507
|
+
if (itr->value.IsArray())
|
508
|
+
for (ConstValueIterator i = itr->value.Begin(); i != itr->value.End(); ++i)
|
509
|
+
if (i->IsString())
|
510
|
+
AddUniqueElement(allProperties, *i);
|
511
|
+
}
|
512
|
+
|
513
|
+
if (allProperties.Size() > 0) {
|
514
|
+
propertyCount_ = allProperties.Size();
|
515
|
+
properties_ = static_cast<Property*>(allocator_->Malloc(sizeof(Property) * propertyCount_));
|
516
|
+
for (SizeType i = 0; i < propertyCount_; i++) {
|
517
|
+
new (&properties_[i]) Property();
|
518
|
+
properties_[i].name = allProperties[i];
|
519
|
+
properties_[i].schema = typeless_;
|
520
|
+
}
|
521
|
+
}
|
522
|
+
}
|
523
|
+
|
524
|
+
if (properties && properties->IsObject()) {
|
525
|
+
PointerType q = p.Append(GetPropertiesString(), allocator_);
|
526
|
+
for (ConstMemberIterator itr = properties->MemberBegin(); itr != properties->MemberEnd(); ++itr) {
|
527
|
+
SizeType index;
|
528
|
+
if (FindPropertyIndex(itr->name, &index))
|
529
|
+
schemaDocument->CreateSchema(&properties_[index].schema, q.Append(itr->name, allocator_), itr->value, document);
|
530
|
+
}
|
531
|
+
}
|
532
|
+
|
533
|
+
if (const ValueType* v = GetMember(value, GetPatternPropertiesString())) {
|
534
|
+
PointerType q = p.Append(GetPatternPropertiesString(), allocator_);
|
535
|
+
patternProperties_ = static_cast<PatternProperty*>(allocator_->Malloc(sizeof(PatternProperty) * v->MemberCount()));
|
536
|
+
patternPropertyCount_ = 0;
|
537
|
+
|
538
|
+
for (ConstMemberIterator itr = v->MemberBegin(); itr != v->MemberEnd(); ++itr) {
|
539
|
+
new (&patternProperties_[patternPropertyCount_]) PatternProperty();
|
540
|
+
patternProperties_[patternPropertyCount_].pattern = CreatePattern(itr->name);
|
541
|
+
schemaDocument->CreateSchema(&patternProperties_[patternPropertyCount_].schema, q.Append(itr->name, allocator_), itr->value, document);
|
542
|
+
patternPropertyCount_++;
|
543
|
+
}
|
544
|
+
}
|
545
|
+
|
546
|
+
if (required && required->IsArray())
|
547
|
+
for (ConstValueIterator itr = required->Begin(); itr != required->End(); ++itr)
|
548
|
+
if (itr->IsString()) {
|
549
|
+
SizeType index;
|
550
|
+
if (FindPropertyIndex(*itr, &index)) {
|
551
|
+
properties_[index].required = true;
|
552
|
+
hasRequired_ = true;
|
553
|
+
}
|
554
|
+
}
|
555
|
+
|
556
|
+
if (dependencies && dependencies->IsObject()) {
|
557
|
+
PointerType q = p.Append(GetDependenciesString(), allocator_);
|
558
|
+
hasDependencies_ = true;
|
559
|
+
for (ConstMemberIterator itr = dependencies->MemberBegin(); itr != dependencies->MemberEnd(); ++itr) {
|
560
|
+
SizeType sourceIndex;
|
561
|
+
if (FindPropertyIndex(itr->name, &sourceIndex)) {
|
562
|
+
if (itr->value.IsArray()) {
|
563
|
+
properties_[sourceIndex].dependencies = static_cast<bool*>(allocator_->Malloc(sizeof(bool) * propertyCount_));
|
564
|
+
std::memset(properties_[sourceIndex].dependencies, 0, sizeof(bool)* propertyCount_);
|
565
|
+
for (ConstValueIterator targetItr = itr->value.Begin(); targetItr != itr->value.End(); ++targetItr) {
|
566
|
+
SizeType targetIndex;
|
567
|
+
if (FindPropertyIndex(*targetItr, &targetIndex))
|
568
|
+
properties_[sourceIndex].dependencies[targetIndex] = true;
|
569
|
+
}
|
570
|
+
}
|
571
|
+
else if (itr->value.IsObject()) {
|
572
|
+
hasSchemaDependencies_ = true;
|
573
|
+
schemaDocument->CreateSchema(&properties_[sourceIndex].dependenciesSchema, q.Append(itr->name, allocator_), itr->value, document);
|
574
|
+
properties_[sourceIndex].dependenciesValidatorIndex = validatorCount_;
|
575
|
+
validatorCount_++;
|
576
|
+
}
|
577
|
+
}
|
578
|
+
}
|
579
|
+
}
|
580
|
+
|
581
|
+
if (const ValueType* v = GetMember(value, GetAdditionalPropertiesString())) {
|
582
|
+
if (v->IsBool())
|
583
|
+
additionalProperties_ = v->GetBool();
|
584
|
+
else if (v->IsObject())
|
585
|
+
schemaDocument->CreateSchema(&additionalPropertiesSchema_, p.Append(GetAdditionalPropertiesString(), allocator_), *v, document);
|
586
|
+
}
|
587
|
+
|
588
|
+
AssignIfExist(minProperties_, value, GetMinPropertiesString());
|
589
|
+
AssignIfExist(maxProperties_, value, GetMaxPropertiesString());
|
590
|
+
|
591
|
+
// Array
|
592
|
+
if (const ValueType* v = GetMember(value, GetItemsString())) {
|
593
|
+
PointerType q = p.Append(GetItemsString(), allocator_);
|
594
|
+
if (v->IsObject()) // List validation
|
595
|
+
schemaDocument->CreateSchema(&itemsList_, q, *v, document);
|
596
|
+
else if (v->IsArray()) { // Tuple validation
|
597
|
+
itemsTuple_ = static_cast<const Schema**>(allocator_->Malloc(sizeof(const Schema*) * v->Size()));
|
598
|
+
SizeType index = 0;
|
599
|
+
for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr, index++)
|
600
|
+
schemaDocument->CreateSchema(&itemsTuple_[itemsTupleCount_++], q.Append(index, allocator_), *itr, document);
|
601
|
+
}
|
602
|
+
}
|
603
|
+
|
604
|
+
AssignIfExist(minItems_, value, GetMinItemsString());
|
605
|
+
AssignIfExist(maxItems_, value, GetMaxItemsString());
|
606
|
+
|
607
|
+
if (const ValueType* v = GetMember(value, GetAdditionalItemsString())) {
|
608
|
+
if (v->IsBool())
|
609
|
+
additionalItems_ = v->GetBool();
|
610
|
+
else if (v->IsObject())
|
611
|
+
schemaDocument->CreateSchema(&additionalItemsSchema_, p.Append(GetAdditionalItemsString(), allocator_), *v, document);
|
612
|
+
}
|
613
|
+
|
614
|
+
AssignIfExist(uniqueItems_, value, GetUniqueItemsString());
|
615
|
+
|
616
|
+
// String
|
617
|
+
AssignIfExist(minLength_, value, GetMinLengthString());
|
618
|
+
AssignIfExist(maxLength_, value, GetMaxLengthString());
|
619
|
+
|
620
|
+
if (const ValueType* v = GetMember(value, GetPatternString()))
|
621
|
+
pattern_ = CreatePattern(*v);
|
622
|
+
|
623
|
+
// Number
|
624
|
+
if (const ValueType* v = GetMember(value, GetMinimumString()))
|
625
|
+
if (v->IsNumber())
|
626
|
+
minimum_.CopyFrom(*v, *allocator_);
|
627
|
+
|
628
|
+
if (const ValueType* v = GetMember(value, GetMaximumString()))
|
629
|
+
if (v->IsNumber())
|
630
|
+
maximum_.CopyFrom(*v, *allocator_);
|
631
|
+
|
632
|
+
AssignIfExist(exclusiveMinimum_, value, GetExclusiveMinimumString());
|
633
|
+
AssignIfExist(exclusiveMaximum_, value, GetExclusiveMaximumString());
|
634
|
+
|
635
|
+
if (const ValueType* v = GetMember(value, GetMultipleOfString()))
|
636
|
+
if (v->IsNumber() && v->GetDouble() > 0.0)
|
637
|
+
multipleOf_.CopyFrom(*v, *allocator_);
|
638
|
+
}
|
639
|
+
|
640
|
+
~Schema() {
|
641
|
+
AllocatorType::Free(enum_);
|
642
|
+
if (properties_) {
|
643
|
+
for (SizeType i = 0; i < propertyCount_; i++)
|
644
|
+
properties_[i].~Property();
|
645
|
+
AllocatorType::Free(properties_);
|
646
|
+
}
|
647
|
+
if (patternProperties_) {
|
648
|
+
for (SizeType i = 0; i < patternPropertyCount_; i++)
|
649
|
+
patternProperties_[i].~PatternProperty();
|
650
|
+
AllocatorType::Free(patternProperties_);
|
651
|
+
}
|
652
|
+
AllocatorType::Free(itemsTuple_);
|
653
|
+
#if RAPIDJSON_SCHEMA_HAS_REGEX
|
654
|
+
if (pattern_) {
|
655
|
+
pattern_->~RegexType();
|
656
|
+
AllocatorType::Free(pattern_);
|
657
|
+
}
|
658
|
+
#endif
|
659
|
+
}
|
660
|
+
|
661
|
+
const SValue& GetURI() const {
|
662
|
+
return uri_;
|
663
|
+
}
|
664
|
+
|
665
|
+
const PointerType& GetPointer() const {
|
666
|
+
return pointer_;
|
667
|
+
}
|
668
|
+
|
669
|
+
bool BeginValue(Context& context) const {
|
670
|
+
if (context.inArray) {
|
671
|
+
if (uniqueItems_)
|
672
|
+
context.valueUniqueness = true;
|
673
|
+
|
674
|
+
if (itemsList_)
|
675
|
+
context.valueSchema = itemsList_;
|
676
|
+
else if (itemsTuple_) {
|
677
|
+
if (context.arrayElementIndex < itemsTupleCount_)
|
678
|
+
context.valueSchema = itemsTuple_[context.arrayElementIndex];
|
679
|
+
else if (additionalItemsSchema_)
|
680
|
+
context.valueSchema = additionalItemsSchema_;
|
681
|
+
else if (additionalItems_)
|
682
|
+
context.valueSchema = typeless_;
|
683
|
+
else {
|
684
|
+
context.error_handler.DisallowedItem(context.arrayElementIndex);
|
685
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetItemsString());
|
686
|
+
}
|
687
|
+
}
|
688
|
+
else
|
689
|
+
context.valueSchema = typeless_;
|
690
|
+
|
691
|
+
context.arrayElementIndex++;
|
692
|
+
}
|
693
|
+
return true;
|
694
|
+
}
|
695
|
+
|
696
|
+
RAPIDJSON_FORCEINLINE bool EndValue(Context& context) const {
|
697
|
+
if (context.patternPropertiesValidatorCount > 0) {
|
698
|
+
bool otherValid = false;
|
699
|
+
SizeType count = context.patternPropertiesValidatorCount;
|
700
|
+
if (context.objectPatternValidatorType != Context::kPatternValidatorOnly)
|
701
|
+
otherValid = context.patternPropertiesValidators[--count]->IsValid();
|
702
|
+
|
703
|
+
bool patternValid = true;
|
704
|
+
for (SizeType i = 0; i < count; i++)
|
705
|
+
if (!context.patternPropertiesValidators[i]->IsValid()) {
|
706
|
+
patternValid = false;
|
707
|
+
break;
|
708
|
+
}
|
709
|
+
|
710
|
+
if (context.objectPatternValidatorType == Context::kPatternValidatorOnly) {
|
711
|
+
if (!patternValid) {
|
712
|
+
context.error_handler.PropertyViolations(context.patternPropertiesValidators, count);
|
713
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetPatternPropertiesString());
|
714
|
+
}
|
715
|
+
}
|
716
|
+
else if (context.objectPatternValidatorType == Context::kPatternValidatorWithProperty) {
|
717
|
+
if (!patternValid || !otherValid) {
|
718
|
+
context.error_handler.PropertyViolations(context.patternPropertiesValidators, count + 1);
|
719
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetPatternPropertiesString());
|
720
|
+
}
|
721
|
+
}
|
722
|
+
else if (!patternValid && !otherValid) { // kPatternValidatorWithAdditionalProperty)
|
723
|
+
context.error_handler.PropertyViolations(context.patternPropertiesValidators, count + 1);
|
724
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetPatternPropertiesString());
|
725
|
+
}
|
726
|
+
}
|
727
|
+
|
728
|
+
if (enum_) {
|
729
|
+
const uint64_t h = context.factory.GetHashCode(context.hasher);
|
730
|
+
for (SizeType i = 0; i < enumCount_; i++)
|
731
|
+
if (enum_[i] == h)
|
732
|
+
goto foundEnum;
|
733
|
+
context.error_handler.DisallowedValue();
|
734
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetEnumString());
|
735
|
+
foundEnum:;
|
736
|
+
}
|
737
|
+
|
738
|
+
if (allOf_.schemas)
|
739
|
+
for (SizeType i = allOf_.begin; i < allOf_.begin + allOf_.count; i++)
|
740
|
+
if (!context.validators[i]->IsValid()) {
|
741
|
+
context.error_handler.NotAllOf(&context.validators[allOf_.begin], allOf_.count);
|
742
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetAllOfString());
|
743
|
+
}
|
744
|
+
|
745
|
+
if (anyOf_.schemas) {
|
746
|
+
for (SizeType i = anyOf_.begin; i < anyOf_.begin + anyOf_.count; i++)
|
747
|
+
if (context.validators[i]->IsValid())
|
748
|
+
goto foundAny;
|
749
|
+
context.error_handler.NoneOf(&context.validators[anyOf_.begin], anyOf_.count);
|
750
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetAnyOfString());
|
751
|
+
foundAny:;
|
752
|
+
}
|
753
|
+
|
754
|
+
if (oneOf_.schemas) {
|
755
|
+
bool oneValid = false;
|
756
|
+
for (SizeType i = oneOf_.begin; i < oneOf_.begin + oneOf_.count; i++)
|
757
|
+
if (context.validators[i]->IsValid()) {
|
758
|
+
if (oneValid) {
|
759
|
+
context.error_handler.NotOneOf(&context.validators[oneOf_.begin], oneOf_.count);
|
760
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetOneOfString());
|
761
|
+
} else
|
762
|
+
oneValid = true;
|
763
|
+
}
|
764
|
+
if (!oneValid) {
|
765
|
+
context.error_handler.NotOneOf(&context.validators[oneOf_.begin], oneOf_.count);
|
766
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetOneOfString());
|
767
|
+
}
|
768
|
+
}
|
769
|
+
|
770
|
+
if (not_ && context.validators[notValidatorIndex_]->IsValid()) {
|
771
|
+
context.error_handler.Disallowed();
|
772
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetNotString());
|
773
|
+
}
|
774
|
+
|
775
|
+
return true;
|
776
|
+
}
|
777
|
+
|
778
|
+
bool Null(Context& context) const {
|
779
|
+
if (!(type_ & (1 << kNullSchemaType))) {
|
780
|
+
DisallowedType(context, GetNullString());
|
781
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
782
|
+
}
|
783
|
+
return CreateParallelValidator(context);
|
784
|
+
}
|
785
|
+
|
786
|
+
bool Bool(Context& context, bool) const {
|
787
|
+
if (!(type_ & (1 << kBooleanSchemaType))) {
|
788
|
+
DisallowedType(context, GetBooleanString());
|
789
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
790
|
+
}
|
791
|
+
return CreateParallelValidator(context);
|
792
|
+
}
|
793
|
+
|
794
|
+
bool Int(Context& context, int i) const {
|
795
|
+
if (!CheckInt(context, i))
|
796
|
+
return false;
|
797
|
+
return CreateParallelValidator(context);
|
798
|
+
}
|
799
|
+
|
800
|
+
bool Uint(Context& context, unsigned u) const {
|
801
|
+
if (!CheckUint(context, u))
|
802
|
+
return false;
|
803
|
+
return CreateParallelValidator(context);
|
804
|
+
}
|
805
|
+
|
806
|
+
bool Int64(Context& context, int64_t i) const {
|
807
|
+
if (!CheckInt(context, i))
|
808
|
+
return false;
|
809
|
+
return CreateParallelValidator(context);
|
810
|
+
}
|
811
|
+
|
812
|
+
bool Uint64(Context& context, uint64_t u) const {
|
813
|
+
if (!CheckUint(context, u))
|
814
|
+
return false;
|
815
|
+
return CreateParallelValidator(context);
|
816
|
+
}
|
817
|
+
|
818
|
+
bool Double(Context& context, double d) const {
|
819
|
+
if (!(type_ & (1 << kNumberSchemaType))) {
|
820
|
+
DisallowedType(context, GetNumberString());
|
821
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
822
|
+
}
|
823
|
+
|
824
|
+
if (!minimum_.IsNull() && !CheckDoubleMinimum(context, d))
|
825
|
+
return false;
|
826
|
+
|
827
|
+
if (!maximum_.IsNull() && !CheckDoubleMaximum(context, d))
|
828
|
+
return false;
|
829
|
+
|
830
|
+
if (!multipleOf_.IsNull() && !CheckDoubleMultipleOf(context, d))
|
831
|
+
return false;
|
832
|
+
|
833
|
+
return CreateParallelValidator(context);
|
834
|
+
}
|
835
|
+
|
836
|
+
bool String(Context& context, const Ch* str, SizeType length, bool) const {
|
837
|
+
if (!(type_ & (1 << kStringSchemaType))) {
|
838
|
+
DisallowedType(context, GetStringString());
|
839
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
840
|
+
}
|
841
|
+
|
842
|
+
if (minLength_ != 0 || maxLength_ != SizeType(~0)) {
|
843
|
+
SizeType count;
|
844
|
+
if (internal::CountStringCodePoint<EncodingType>(str, length, &count)) {
|
845
|
+
if (count < minLength_) {
|
846
|
+
context.error_handler.TooShort(str, length, minLength_);
|
847
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinLengthString());
|
848
|
+
}
|
849
|
+
if (count > maxLength_) {
|
850
|
+
context.error_handler.TooLong(str, length, maxLength_);
|
851
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaxLengthString());
|
852
|
+
}
|
853
|
+
}
|
854
|
+
}
|
855
|
+
|
856
|
+
if (pattern_ && !IsPatternMatch(pattern_, str, length)) {
|
857
|
+
context.error_handler.DoesNotMatch(str, length);
|
858
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetPatternString());
|
859
|
+
}
|
860
|
+
|
861
|
+
return CreateParallelValidator(context);
|
862
|
+
}
|
863
|
+
|
864
|
+
bool StartObject(Context& context) const {
|
865
|
+
if (!(type_ & (1 << kObjectSchemaType))) {
|
866
|
+
DisallowedType(context, GetObjectString());
|
867
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
868
|
+
}
|
869
|
+
|
870
|
+
if (hasDependencies_ || hasRequired_) {
|
871
|
+
context.propertyExist = static_cast<bool*>(context.factory.MallocState(sizeof(bool) * propertyCount_));
|
872
|
+
std::memset(context.propertyExist, 0, sizeof(bool) * propertyCount_);
|
873
|
+
}
|
874
|
+
|
875
|
+
if (patternProperties_) { // pre-allocate schema array
|
876
|
+
SizeType count = patternPropertyCount_ + 1; // extra for valuePatternValidatorType
|
877
|
+
context.patternPropertiesSchemas = static_cast<const SchemaType**>(context.factory.MallocState(sizeof(const SchemaType*) * count));
|
878
|
+
context.patternPropertiesSchemaCount = 0;
|
879
|
+
std::memset(context.patternPropertiesSchemas, 0, sizeof(SchemaType*) * count);
|
880
|
+
}
|
881
|
+
|
882
|
+
return CreateParallelValidator(context);
|
883
|
+
}
|
884
|
+
|
885
|
+
bool Key(Context& context, const Ch* str, SizeType len, bool) const {
|
886
|
+
if (patternProperties_) {
|
887
|
+
context.patternPropertiesSchemaCount = 0;
|
888
|
+
for (SizeType i = 0; i < patternPropertyCount_; i++)
|
889
|
+
if (patternProperties_[i].pattern && IsPatternMatch(patternProperties_[i].pattern, str, len)) {
|
890
|
+
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = patternProperties_[i].schema;
|
891
|
+
context.valueSchema = typeless_;
|
892
|
+
}
|
893
|
+
}
|
894
|
+
|
895
|
+
SizeType index;
|
896
|
+
if (FindPropertyIndex(ValueType(str, len).Move(), &index)) {
|
897
|
+
if (context.patternPropertiesSchemaCount > 0) {
|
898
|
+
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = properties_[index].schema;
|
899
|
+
context.valueSchema = typeless_;
|
900
|
+
context.valuePatternValidatorType = Context::kPatternValidatorWithProperty;
|
901
|
+
}
|
902
|
+
else
|
903
|
+
context.valueSchema = properties_[index].schema;
|
904
|
+
|
905
|
+
if (context.propertyExist)
|
906
|
+
context.propertyExist[index] = true;
|
907
|
+
|
908
|
+
return true;
|
909
|
+
}
|
910
|
+
|
911
|
+
if (additionalPropertiesSchema_) {
|
912
|
+
if (additionalPropertiesSchema_ && context.patternPropertiesSchemaCount > 0) {
|
913
|
+
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = additionalPropertiesSchema_;
|
914
|
+
context.valueSchema = typeless_;
|
915
|
+
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty;
|
916
|
+
}
|
917
|
+
else
|
918
|
+
context.valueSchema = additionalPropertiesSchema_;
|
919
|
+
return true;
|
920
|
+
}
|
921
|
+
else if (additionalProperties_) {
|
922
|
+
context.valueSchema = typeless_;
|
923
|
+
return true;
|
924
|
+
}
|
925
|
+
|
926
|
+
if (context.patternPropertiesSchemaCount == 0) { // patternProperties are not additional properties
|
927
|
+
context.error_handler.DisallowedProperty(str, len);
|
928
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetAdditionalPropertiesString());
|
929
|
+
}
|
930
|
+
|
931
|
+
return true;
|
932
|
+
}
|
933
|
+
|
934
|
+
bool EndObject(Context& context, SizeType memberCount) const {
|
935
|
+
if (hasRequired_) {
|
936
|
+
context.error_handler.StartMissingProperties();
|
937
|
+
for (SizeType index = 0; index < propertyCount_; index++)
|
938
|
+
if (properties_[index].required && !context.propertyExist[index])
|
939
|
+
context.error_handler.AddMissingProperty(properties_[index].name);
|
940
|
+
if (context.error_handler.EndMissingProperties())
|
941
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetRequiredString());
|
942
|
+
}
|
943
|
+
|
944
|
+
if (memberCount < minProperties_) {
|
945
|
+
context.error_handler.TooFewProperties(memberCount, minProperties_);
|
946
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinPropertiesString());
|
947
|
+
}
|
948
|
+
|
949
|
+
if (memberCount > maxProperties_) {
|
950
|
+
context.error_handler.TooManyProperties(memberCount, maxProperties_);
|
951
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaxPropertiesString());
|
952
|
+
}
|
953
|
+
|
954
|
+
if (hasDependencies_) {
|
955
|
+
context.error_handler.StartDependencyErrors();
|
956
|
+
for (SizeType sourceIndex = 0; sourceIndex < propertyCount_; sourceIndex++) {
|
957
|
+
const Property& source = properties_[sourceIndex];
|
958
|
+
if (context.propertyExist[sourceIndex]) {
|
959
|
+
if (source.dependencies) {
|
960
|
+
context.error_handler.StartMissingDependentProperties();
|
961
|
+
for (SizeType targetIndex = 0; targetIndex < propertyCount_; targetIndex++)
|
962
|
+
if (source.dependencies[targetIndex] && !context.propertyExist[targetIndex])
|
963
|
+
context.error_handler.AddMissingDependentProperty(properties_[targetIndex].name);
|
964
|
+
context.error_handler.EndMissingDependentProperties(source.name);
|
965
|
+
}
|
966
|
+
else if (source.dependenciesSchema) {
|
967
|
+
ISchemaValidator* dependenciesValidator = context.validators[source.dependenciesValidatorIndex];
|
968
|
+
if (!dependenciesValidator->IsValid())
|
969
|
+
context.error_handler.AddDependencySchemaError(source.name, dependenciesValidator);
|
970
|
+
}
|
971
|
+
}
|
972
|
+
}
|
973
|
+
if (context.error_handler.EndDependencyErrors())
|
974
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetDependenciesString());
|
975
|
+
}
|
976
|
+
|
977
|
+
return true;
|
978
|
+
}
|
979
|
+
|
980
|
+
bool StartArray(Context& context) const {
|
981
|
+
if (!(type_ & (1 << kArraySchemaType))) {
|
982
|
+
DisallowedType(context, GetArrayString());
|
983
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
984
|
+
}
|
985
|
+
|
986
|
+
context.arrayElementIndex = 0;
|
987
|
+
context.inArray = true;
|
988
|
+
|
989
|
+
return CreateParallelValidator(context);
|
990
|
+
}
|
991
|
+
|
992
|
+
bool EndArray(Context& context, SizeType elementCount) const {
|
993
|
+
context.inArray = false;
|
994
|
+
|
995
|
+
if (elementCount < minItems_) {
|
996
|
+
context.error_handler.TooFewItems(elementCount, minItems_);
|
997
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinItemsString());
|
998
|
+
}
|
999
|
+
|
1000
|
+
if (elementCount > maxItems_) {
|
1001
|
+
context.error_handler.TooManyItems(elementCount, maxItems_);
|
1002
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaxItemsString());
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
return true;
|
1006
|
+
}
|
1007
|
+
|
1008
|
+
// Generate functions for string literal according to Ch
|
1009
|
+
#define RAPIDJSON_STRING_(name, ...) \
|
1010
|
+
static const ValueType& Get##name##String() {\
|
1011
|
+
static const Ch s[] = { __VA_ARGS__, '\0' };\
|
1012
|
+
static const ValueType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1));\
|
1013
|
+
return v;\
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
RAPIDJSON_STRING_(Null, 'n', 'u', 'l', 'l')
|
1017
|
+
RAPIDJSON_STRING_(Boolean, 'b', 'o', 'o', 'l', 'e', 'a', 'n')
|
1018
|
+
RAPIDJSON_STRING_(Object, 'o', 'b', 'j', 'e', 'c', 't')
|
1019
|
+
RAPIDJSON_STRING_(Array, 'a', 'r', 'r', 'a', 'y')
|
1020
|
+
RAPIDJSON_STRING_(String, 's', 't', 'r', 'i', 'n', 'g')
|
1021
|
+
RAPIDJSON_STRING_(Number, 'n', 'u', 'm', 'b', 'e', 'r')
|
1022
|
+
RAPIDJSON_STRING_(Integer, 'i', 'n', 't', 'e', 'g', 'e', 'r')
|
1023
|
+
RAPIDJSON_STRING_(Type, 't', 'y', 'p', 'e')
|
1024
|
+
RAPIDJSON_STRING_(Enum, 'e', 'n', 'u', 'm')
|
1025
|
+
RAPIDJSON_STRING_(AllOf, 'a', 'l', 'l', 'O', 'f')
|
1026
|
+
RAPIDJSON_STRING_(AnyOf, 'a', 'n', 'y', 'O', 'f')
|
1027
|
+
RAPIDJSON_STRING_(OneOf, 'o', 'n', 'e', 'O', 'f')
|
1028
|
+
RAPIDJSON_STRING_(Not, 'n', 'o', 't')
|
1029
|
+
RAPIDJSON_STRING_(Properties, 'p', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's')
|
1030
|
+
RAPIDJSON_STRING_(Required, 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd')
|
1031
|
+
RAPIDJSON_STRING_(Dependencies, 'd', 'e', 'p', 'e', 'n', 'd', 'e', 'n', 'c', 'i', 'e', 's')
|
1032
|
+
RAPIDJSON_STRING_(PatternProperties, 'p', 'a', 't', 't', 'e', 'r', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's')
|
1033
|
+
RAPIDJSON_STRING_(AdditionalProperties, 'a', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's')
|
1034
|
+
RAPIDJSON_STRING_(MinProperties, 'm', 'i', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's')
|
1035
|
+
RAPIDJSON_STRING_(MaxProperties, 'm', 'a', 'x', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's')
|
1036
|
+
RAPIDJSON_STRING_(Items, 'i', 't', 'e', 'm', 's')
|
1037
|
+
RAPIDJSON_STRING_(MinItems, 'm', 'i', 'n', 'I', 't', 'e', 'm', 's')
|
1038
|
+
RAPIDJSON_STRING_(MaxItems, 'm', 'a', 'x', 'I', 't', 'e', 'm', 's')
|
1039
|
+
RAPIDJSON_STRING_(AdditionalItems, 'a', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'I', 't', 'e', 'm', 's')
|
1040
|
+
RAPIDJSON_STRING_(UniqueItems, 'u', 'n', 'i', 'q', 'u', 'e', 'I', 't', 'e', 'm', 's')
|
1041
|
+
RAPIDJSON_STRING_(MinLength, 'm', 'i', 'n', 'L', 'e', 'n', 'g', 't', 'h')
|
1042
|
+
RAPIDJSON_STRING_(MaxLength, 'm', 'a', 'x', 'L', 'e', 'n', 'g', 't', 'h')
|
1043
|
+
RAPIDJSON_STRING_(Pattern, 'p', 'a', 't', 't', 'e', 'r', 'n')
|
1044
|
+
RAPIDJSON_STRING_(Minimum, 'm', 'i', 'n', 'i', 'm', 'u', 'm')
|
1045
|
+
RAPIDJSON_STRING_(Maximum, 'm', 'a', 'x', 'i', 'm', 'u', 'm')
|
1046
|
+
RAPIDJSON_STRING_(ExclusiveMinimum, 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', 'M', 'i', 'n', 'i', 'm', 'u', 'm')
|
1047
|
+
RAPIDJSON_STRING_(ExclusiveMaximum, 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', 'M', 'a', 'x', 'i', 'm', 'u', 'm')
|
1048
|
+
RAPIDJSON_STRING_(MultipleOf, 'm', 'u', 'l', 't', 'i', 'p', 'l', 'e', 'O', 'f')
|
1049
|
+
|
1050
|
+
#undef RAPIDJSON_STRING_
|
1051
|
+
|
1052
|
+
private:
|
1053
|
+
enum SchemaValueType {
|
1054
|
+
kNullSchemaType,
|
1055
|
+
kBooleanSchemaType,
|
1056
|
+
kObjectSchemaType,
|
1057
|
+
kArraySchemaType,
|
1058
|
+
kStringSchemaType,
|
1059
|
+
kNumberSchemaType,
|
1060
|
+
kIntegerSchemaType,
|
1061
|
+
kTotalSchemaType
|
1062
|
+
};
|
1063
|
+
|
1064
|
+
#if RAPIDJSON_SCHEMA_USE_INTERNALREGEX
|
1065
|
+
typedef internal::GenericRegex<EncodingType, AllocatorType> RegexType;
|
1066
|
+
#elif RAPIDJSON_SCHEMA_USE_STDREGEX
|
1067
|
+
typedef std::basic_regex<Ch> RegexType;
|
1068
|
+
#else
|
1069
|
+
typedef char RegexType;
|
1070
|
+
#endif
|
1071
|
+
|
1072
|
+
struct SchemaArray {
|
1073
|
+
SchemaArray() : schemas(), count() {}
|
1074
|
+
~SchemaArray() { AllocatorType::Free(schemas); }
|
1075
|
+
const SchemaType** schemas;
|
1076
|
+
SizeType begin; // begin index of context.validators
|
1077
|
+
SizeType count;
|
1078
|
+
};
|
1079
|
+
|
1080
|
+
template <typename V1, typename V2>
|
1081
|
+
void AddUniqueElement(V1& a, const V2& v) {
|
1082
|
+
for (typename V1::ConstValueIterator itr = a.Begin(); itr != a.End(); ++itr)
|
1083
|
+
if (*itr == v)
|
1084
|
+
return;
|
1085
|
+
V1 c(v, *allocator_);
|
1086
|
+
a.PushBack(c, *allocator_);
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
static const ValueType* GetMember(const ValueType& value, const ValueType& name) {
|
1090
|
+
typename ValueType::ConstMemberIterator itr = value.FindMember(name);
|
1091
|
+
return itr != value.MemberEnd() ? &(itr->value) : 0;
|
1092
|
+
}
|
1093
|
+
|
1094
|
+
static void AssignIfExist(bool& out, const ValueType& value, const ValueType& name) {
|
1095
|
+
if (const ValueType* v = GetMember(value, name))
|
1096
|
+
if (v->IsBool())
|
1097
|
+
out = v->GetBool();
|
1098
|
+
}
|
1099
|
+
|
1100
|
+
static void AssignIfExist(SizeType& out, const ValueType& value, const ValueType& name) {
|
1101
|
+
if (const ValueType* v = GetMember(value, name))
|
1102
|
+
if (v->IsUint64() && v->GetUint64() <= SizeType(~0))
|
1103
|
+
out = static_cast<SizeType>(v->GetUint64());
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
void AssignIfExist(SchemaArray& out, SchemaDocumentType& schemaDocument, const PointerType& p, const ValueType& value, const ValueType& name, const ValueType& document) {
|
1107
|
+
if (const ValueType* v = GetMember(value, name)) {
|
1108
|
+
if (v->IsArray() && v->Size() > 0) {
|
1109
|
+
PointerType q = p.Append(name, allocator_);
|
1110
|
+
out.count = v->Size();
|
1111
|
+
out.schemas = static_cast<const Schema**>(allocator_->Malloc(out.count * sizeof(const Schema*)));
|
1112
|
+
memset(out.schemas, 0, sizeof(Schema*)* out.count);
|
1113
|
+
for (SizeType i = 0; i < out.count; i++)
|
1114
|
+
schemaDocument.CreateSchema(&out.schemas[i], q.Append(i, allocator_), (*v)[i], document);
|
1115
|
+
out.begin = validatorCount_;
|
1116
|
+
validatorCount_ += out.count;
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
|
1121
|
+
#if RAPIDJSON_SCHEMA_USE_INTERNALREGEX
|
1122
|
+
template <typename ValueType>
|
1123
|
+
RegexType* CreatePattern(const ValueType& value) {
|
1124
|
+
if (value.IsString()) {
|
1125
|
+
RegexType* r = new (allocator_->Malloc(sizeof(RegexType))) RegexType(value.GetString(), allocator_);
|
1126
|
+
if (!r->IsValid()) {
|
1127
|
+
r->~RegexType();
|
1128
|
+
AllocatorType::Free(r);
|
1129
|
+
r = 0;
|
1130
|
+
}
|
1131
|
+
return r;
|
1132
|
+
}
|
1133
|
+
return 0;
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
static bool IsPatternMatch(const RegexType* pattern, const Ch *str, SizeType) {
|
1137
|
+
GenericRegexSearch<RegexType> rs(*pattern);
|
1138
|
+
return rs.Search(str);
|
1139
|
+
}
|
1140
|
+
#elif RAPIDJSON_SCHEMA_USE_STDREGEX
|
1141
|
+
template <typename ValueType>
|
1142
|
+
RegexType* CreatePattern(const ValueType& value) {
|
1143
|
+
if (value.IsString())
|
1144
|
+
try {
|
1145
|
+
return new (allocator_->Malloc(sizeof(RegexType))) RegexType(value.GetString(), std::size_t(value.GetStringLength()), std::regex_constants::ECMAScript);
|
1146
|
+
}
|
1147
|
+
catch (const std::regex_error&) {
|
1148
|
+
}
|
1149
|
+
return 0;
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
static bool IsPatternMatch(const RegexType* pattern, const Ch *str, SizeType length) {
|
1153
|
+
std::match_results<const Ch*> r;
|
1154
|
+
return std::regex_search(str, str + length, r, *pattern);
|
1155
|
+
}
|
1156
|
+
#else
|
1157
|
+
template <typename ValueType>
|
1158
|
+
RegexType* CreatePattern(const ValueType&) { return 0; }
|
1159
|
+
|
1160
|
+
static bool IsPatternMatch(const RegexType*, const Ch *, SizeType) { return true; }
|
1161
|
+
#endif // RAPIDJSON_SCHEMA_USE_STDREGEX
|
1162
|
+
|
1163
|
+
void AddType(const ValueType& type) {
|
1164
|
+
if (type == GetNullString() ) type_ |= 1 << kNullSchemaType;
|
1165
|
+
else if (type == GetBooleanString()) type_ |= 1 << kBooleanSchemaType;
|
1166
|
+
else if (type == GetObjectString() ) type_ |= 1 << kObjectSchemaType;
|
1167
|
+
else if (type == GetArrayString() ) type_ |= 1 << kArraySchemaType;
|
1168
|
+
else if (type == GetStringString() ) type_ |= 1 << kStringSchemaType;
|
1169
|
+
else if (type == GetIntegerString()) type_ |= 1 << kIntegerSchemaType;
|
1170
|
+
else if (type == GetNumberString() ) type_ |= (1 << kNumberSchemaType) | (1 << kIntegerSchemaType);
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
bool CreateParallelValidator(Context& context) const {
|
1174
|
+
if (enum_ || context.arrayUniqueness)
|
1175
|
+
context.hasher = context.factory.CreateHasher();
|
1176
|
+
|
1177
|
+
if (validatorCount_) {
|
1178
|
+
RAPIDJSON_ASSERT(context.validators == 0);
|
1179
|
+
context.validators = static_cast<ISchemaValidator**>(context.factory.MallocState(sizeof(ISchemaValidator*) * validatorCount_));
|
1180
|
+
context.validatorCount = validatorCount_;
|
1181
|
+
|
1182
|
+
if (allOf_.schemas)
|
1183
|
+
CreateSchemaValidators(context, allOf_);
|
1184
|
+
|
1185
|
+
if (anyOf_.schemas)
|
1186
|
+
CreateSchemaValidators(context, anyOf_);
|
1187
|
+
|
1188
|
+
if (oneOf_.schemas)
|
1189
|
+
CreateSchemaValidators(context, oneOf_);
|
1190
|
+
|
1191
|
+
if (not_)
|
1192
|
+
context.validators[notValidatorIndex_] = context.factory.CreateSchemaValidator(*not_);
|
1193
|
+
|
1194
|
+
if (hasSchemaDependencies_) {
|
1195
|
+
for (SizeType i = 0; i < propertyCount_; i++)
|
1196
|
+
if (properties_[i].dependenciesSchema)
|
1197
|
+
context.validators[properties_[i].dependenciesValidatorIndex] = context.factory.CreateSchemaValidator(*properties_[i].dependenciesSchema);
|
1198
|
+
}
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
return true;
|
1202
|
+
}
|
1203
|
+
|
1204
|
+
void CreateSchemaValidators(Context& context, const SchemaArray& schemas) const {
|
1205
|
+
for (SizeType i = 0; i < schemas.count; i++)
|
1206
|
+
context.validators[schemas.begin + i] = context.factory.CreateSchemaValidator(*schemas.schemas[i]);
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
// O(n)
|
1210
|
+
bool FindPropertyIndex(const ValueType& name, SizeType* outIndex) const {
|
1211
|
+
SizeType len = name.GetStringLength();
|
1212
|
+
const Ch* str = name.GetString();
|
1213
|
+
for (SizeType index = 0; index < propertyCount_; index++)
|
1214
|
+
if (properties_[index].name.GetStringLength() == len &&
|
1215
|
+
(std::memcmp(properties_[index].name.GetString(), str, sizeof(Ch) * len) == 0))
|
1216
|
+
{
|
1217
|
+
*outIndex = index;
|
1218
|
+
return true;
|
1219
|
+
}
|
1220
|
+
return false;
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
bool CheckInt(Context& context, int64_t i) const {
|
1224
|
+
if (!(type_ & ((1 << kIntegerSchemaType) | (1 << kNumberSchemaType)))) {
|
1225
|
+
DisallowedType(context, GetIntegerString());
|
1226
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
if (!minimum_.IsNull()) {
|
1230
|
+
if (minimum_.IsInt64()) {
|
1231
|
+
if (exclusiveMinimum_ ? i <= minimum_.GetInt64() : i < minimum_.GetInt64()) {
|
1232
|
+
context.error_handler.BelowMinimum(i, minimum_, exclusiveMinimum_);
|
1233
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinimumString());
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
else if (minimum_.IsUint64()) {
|
1237
|
+
context.error_handler.BelowMinimum(i, minimum_, exclusiveMinimum_);
|
1238
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinimumString()); // i <= max(int64_t) < minimum.GetUint64()
|
1239
|
+
}
|
1240
|
+
else if (!CheckDoubleMinimum(context, static_cast<double>(i)))
|
1241
|
+
return false;
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
if (!maximum_.IsNull()) {
|
1245
|
+
if (maximum_.IsInt64()) {
|
1246
|
+
if (exclusiveMaximum_ ? i >= maximum_.GetInt64() : i > maximum_.GetInt64()) {
|
1247
|
+
context.error_handler.AboveMaximum(i, maximum_, exclusiveMaximum_);
|
1248
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaximumString());
|
1249
|
+
}
|
1250
|
+
}
|
1251
|
+
else if (maximum_.IsUint64()) { }
|
1252
|
+
/* do nothing */ // i <= max(int64_t) < maximum_.GetUint64()
|
1253
|
+
else if (!CheckDoubleMaximum(context, static_cast<double>(i)))
|
1254
|
+
return false;
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
if (!multipleOf_.IsNull()) {
|
1258
|
+
if (multipleOf_.IsUint64()) {
|
1259
|
+
if (static_cast<uint64_t>(i >= 0 ? i : -i) % multipleOf_.GetUint64() != 0) {
|
1260
|
+
context.error_handler.NotMultipleOf(i, multipleOf_);
|
1261
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMultipleOfString());
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
else if (!CheckDoubleMultipleOf(context, static_cast<double>(i)))
|
1265
|
+
return false;
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
return true;
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
bool CheckUint(Context& context, uint64_t i) const {
|
1272
|
+
if (!(type_ & ((1 << kIntegerSchemaType) | (1 << kNumberSchemaType)))) {
|
1273
|
+
DisallowedType(context, GetIntegerString());
|
1274
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
if (!minimum_.IsNull()) {
|
1278
|
+
if (minimum_.IsUint64()) {
|
1279
|
+
if (exclusiveMinimum_ ? i <= minimum_.GetUint64() : i < minimum_.GetUint64()) {
|
1280
|
+
context.error_handler.BelowMinimum(i, minimum_, exclusiveMinimum_);
|
1281
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinimumString());
|
1282
|
+
}
|
1283
|
+
}
|
1284
|
+
else if (minimum_.IsInt64())
|
1285
|
+
/* do nothing */; // i >= 0 > minimum.Getint64()
|
1286
|
+
else if (!CheckDoubleMinimum(context, static_cast<double>(i)))
|
1287
|
+
return false;
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
if (!maximum_.IsNull()) {
|
1291
|
+
if (maximum_.IsUint64()) {
|
1292
|
+
if (exclusiveMaximum_ ? i >= maximum_.GetUint64() : i > maximum_.GetUint64()) {
|
1293
|
+
context.error_handler.AboveMaximum(i, maximum_, exclusiveMaximum_);
|
1294
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaximumString());
|
1295
|
+
}
|
1296
|
+
}
|
1297
|
+
else if (maximum_.IsInt64()) {
|
1298
|
+
context.error_handler.AboveMaximum(i, maximum_, exclusiveMaximum_);
|
1299
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaximumString()); // i >= 0 > maximum_
|
1300
|
+
}
|
1301
|
+
else if (!CheckDoubleMaximum(context, static_cast<double>(i)))
|
1302
|
+
return false;
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
if (!multipleOf_.IsNull()) {
|
1306
|
+
if (multipleOf_.IsUint64()) {
|
1307
|
+
if (i % multipleOf_.GetUint64() != 0) {
|
1308
|
+
context.error_handler.NotMultipleOf(i, multipleOf_);
|
1309
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMultipleOfString());
|
1310
|
+
}
|
1311
|
+
}
|
1312
|
+
else if (!CheckDoubleMultipleOf(context, static_cast<double>(i)))
|
1313
|
+
return false;
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
return true;
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
bool CheckDoubleMinimum(Context& context, double d) const {
|
1320
|
+
if (exclusiveMinimum_ ? d <= minimum_.GetDouble() : d < minimum_.GetDouble()) {
|
1321
|
+
context.error_handler.BelowMinimum(d, minimum_, exclusiveMinimum_);
|
1322
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMinimumString());
|
1323
|
+
}
|
1324
|
+
return true;
|
1325
|
+
}
|
1326
|
+
|
1327
|
+
bool CheckDoubleMaximum(Context& context, double d) const {
|
1328
|
+
if (exclusiveMaximum_ ? d >= maximum_.GetDouble() : d > maximum_.GetDouble()) {
|
1329
|
+
context.error_handler.AboveMaximum(d, maximum_, exclusiveMaximum_);
|
1330
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaximumString());
|
1331
|
+
}
|
1332
|
+
return true;
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
bool CheckDoubleMultipleOf(Context& context, double d) const {
|
1336
|
+
double a = std::abs(d), b = std::abs(multipleOf_.GetDouble());
|
1337
|
+
double q = std::floor(a / b);
|
1338
|
+
double r = a - q * b;
|
1339
|
+
if (r > 0.0) {
|
1340
|
+
context.error_handler.NotMultipleOf(d, multipleOf_);
|
1341
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMultipleOfString());
|
1342
|
+
}
|
1343
|
+
return true;
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
void DisallowedType(Context& context, const ValueType& actualType) const {
|
1347
|
+
ErrorHandler& eh = context.error_handler;
|
1348
|
+
eh.StartDisallowedType();
|
1349
|
+
|
1350
|
+
if (type_ & (1 << kNullSchemaType)) eh.AddExpectedType(GetNullString());
|
1351
|
+
if (type_ & (1 << kBooleanSchemaType)) eh.AddExpectedType(GetBooleanString());
|
1352
|
+
if (type_ & (1 << kObjectSchemaType)) eh.AddExpectedType(GetObjectString());
|
1353
|
+
if (type_ & (1 << kArraySchemaType)) eh.AddExpectedType(GetArrayString());
|
1354
|
+
if (type_ & (1 << kStringSchemaType)) eh.AddExpectedType(GetStringString());
|
1355
|
+
|
1356
|
+
if (type_ & (1 << kNumberSchemaType)) eh.AddExpectedType(GetNumberString());
|
1357
|
+
else if (type_ & (1 << kIntegerSchemaType)) eh.AddExpectedType(GetIntegerString());
|
1358
|
+
|
1359
|
+
eh.EndDisallowedType(actualType);
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
struct Property {
|
1363
|
+
Property() : schema(), dependenciesSchema(), dependenciesValidatorIndex(), dependencies(), required(false) {}
|
1364
|
+
~Property() { AllocatorType::Free(dependencies); }
|
1365
|
+
SValue name;
|
1366
|
+
const SchemaType* schema;
|
1367
|
+
const SchemaType* dependenciesSchema;
|
1368
|
+
SizeType dependenciesValidatorIndex;
|
1369
|
+
bool* dependencies;
|
1370
|
+
bool required;
|
1371
|
+
};
|
1372
|
+
|
1373
|
+
struct PatternProperty {
|
1374
|
+
PatternProperty() : schema(), pattern() {}
|
1375
|
+
~PatternProperty() {
|
1376
|
+
if (pattern) {
|
1377
|
+
pattern->~RegexType();
|
1378
|
+
AllocatorType::Free(pattern);
|
1379
|
+
}
|
1380
|
+
}
|
1381
|
+
const SchemaType* schema;
|
1382
|
+
RegexType* pattern;
|
1383
|
+
};
|
1384
|
+
|
1385
|
+
AllocatorType* allocator_;
|
1386
|
+
SValue uri_;
|
1387
|
+
PointerType pointer_;
|
1388
|
+
const SchemaType* typeless_;
|
1389
|
+
uint64_t* enum_;
|
1390
|
+
SizeType enumCount_;
|
1391
|
+
SchemaArray allOf_;
|
1392
|
+
SchemaArray anyOf_;
|
1393
|
+
SchemaArray oneOf_;
|
1394
|
+
const SchemaType* not_;
|
1395
|
+
unsigned type_; // bitmask of kSchemaType
|
1396
|
+
SizeType validatorCount_;
|
1397
|
+
SizeType notValidatorIndex_;
|
1398
|
+
|
1399
|
+
Property* properties_;
|
1400
|
+
const SchemaType* additionalPropertiesSchema_;
|
1401
|
+
PatternProperty* patternProperties_;
|
1402
|
+
SizeType patternPropertyCount_;
|
1403
|
+
SizeType propertyCount_;
|
1404
|
+
SizeType minProperties_;
|
1405
|
+
SizeType maxProperties_;
|
1406
|
+
bool additionalProperties_;
|
1407
|
+
bool hasDependencies_;
|
1408
|
+
bool hasRequired_;
|
1409
|
+
bool hasSchemaDependencies_;
|
1410
|
+
|
1411
|
+
const SchemaType* additionalItemsSchema_;
|
1412
|
+
const SchemaType* itemsList_;
|
1413
|
+
const SchemaType** itemsTuple_;
|
1414
|
+
SizeType itemsTupleCount_;
|
1415
|
+
SizeType minItems_;
|
1416
|
+
SizeType maxItems_;
|
1417
|
+
bool additionalItems_;
|
1418
|
+
bool uniqueItems_;
|
1419
|
+
|
1420
|
+
RegexType* pattern_;
|
1421
|
+
SizeType minLength_;
|
1422
|
+
SizeType maxLength_;
|
1423
|
+
|
1424
|
+
SValue minimum_;
|
1425
|
+
SValue maximum_;
|
1426
|
+
SValue multipleOf_;
|
1427
|
+
bool exclusiveMinimum_;
|
1428
|
+
bool exclusiveMaximum_;
|
1429
|
+
};
|
1430
|
+
|
1431
|
+
template<typename Stack, typename Ch>
|
1432
|
+
struct TokenHelper {
|
1433
|
+
RAPIDJSON_FORCEINLINE static void AppendIndexToken(Stack& documentStack, SizeType index) {
|
1434
|
+
*documentStack.template Push<Ch>() = '/';
|
1435
|
+
char buffer[21];
|
1436
|
+
size_t length = static_cast<size_t>((sizeof(SizeType) == 4 ? u32toa(index, buffer) : u64toa(index, buffer)) - buffer);
|
1437
|
+
for (size_t i = 0; i < length; i++)
|
1438
|
+
*documentStack.template Push<Ch>() = static_cast<Ch>(buffer[i]);
|
1439
|
+
}
|
1440
|
+
};
|
1441
|
+
|
1442
|
+
// Partial specialized version for char to prevent buffer copying.
|
1443
|
+
template <typename Stack>
|
1444
|
+
struct TokenHelper<Stack, char> {
|
1445
|
+
RAPIDJSON_FORCEINLINE static void AppendIndexToken(Stack& documentStack, SizeType index) {
|
1446
|
+
if (sizeof(SizeType) == 4) {
|
1447
|
+
char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
|
1448
|
+
*buffer++ = '/';
|
1449
|
+
const char* end = internal::u32toa(index, buffer);
|
1450
|
+
documentStack.template Pop<char>(static_cast<size_t>(10 - (end - buffer)));
|
1451
|
+
}
|
1452
|
+
else {
|
1453
|
+
char *buffer = documentStack.template Push<char>(1 + 20); // '/' + uint64
|
1454
|
+
*buffer++ = '/';
|
1455
|
+
const char* end = internal::u64toa(index, buffer);
|
1456
|
+
documentStack.template Pop<char>(static_cast<size_t>(20 - (end - buffer)));
|
1457
|
+
}
|
1458
|
+
}
|
1459
|
+
};
|
1460
|
+
|
1461
|
+
} // namespace internal
|
1462
|
+
|
1463
|
+
///////////////////////////////////////////////////////////////////////////////
|
1464
|
+
// IGenericRemoteSchemaDocumentProvider
|
1465
|
+
|
1466
|
+
template <typename SchemaDocumentType>
|
1467
|
+
class IGenericRemoteSchemaDocumentProvider {
|
1468
|
+
public:
|
1469
|
+
typedef typename SchemaDocumentType::Ch Ch;
|
1470
|
+
|
1471
|
+
virtual ~IGenericRemoteSchemaDocumentProvider() {}
|
1472
|
+
virtual const SchemaDocumentType* GetRemoteDocument(const Ch* uri, SizeType length) = 0;
|
1473
|
+
};
|
1474
|
+
|
1475
|
+
///////////////////////////////////////////////////////////////////////////////
|
1476
|
+
// GenericSchemaDocument
|
1477
|
+
|
1478
|
+
//! JSON schema document.
|
1479
|
+
/*!
|
1480
|
+
A JSON schema document is a compiled version of a JSON schema.
|
1481
|
+
It is basically a tree of internal::Schema.
|
1482
|
+
|
1483
|
+
\note This is an immutable class (i.e. its instance cannot be modified after construction).
|
1484
|
+
\tparam ValueT Type of JSON value (e.g. \c Value ), which also determine the encoding.
|
1485
|
+
\tparam Allocator Allocator type for allocating memory of this document.
|
1486
|
+
*/
|
1487
|
+
template <typename ValueT, typename Allocator = CrtAllocator>
|
1488
|
+
class GenericSchemaDocument {
|
1489
|
+
public:
|
1490
|
+
typedef ValueT ValueType;
|
1491
|
+
typedef IGenericRemoteSchemaDocumentProvider<GenericSchemaDocument> IRemoteSchemaDocumentProviderType;
|
1492
|
+
typedef Allocator AllocatorType;
|
1493
|
+
typedef typename ValueType::EncodingType EncodingType;
|
1494
|
+
typedef typename EncodingType::Ch Ch;
|
1495
|
+
typedef internal::Schema<GenericSchemaDocument> SchemaType;
|
1496
|
+
typedef GenericPointer<ValueType, Allocator> PointerType;
|
1497
|
+
typedef GenericValue<EncodingType, Allocator> URIType;
|
1498
|
+
friend class internal::Schema<GenericSchemaDocument>;
|
1499
|
+
template <typename, typename, typename>
|
1500
|
+
friend class GenericSchemaValidator;
|
1501
|
+
|
1502
|
+
//! Constructor.
|
1503
|
+
/*!
|
1504
|
+
Compile a JSON document into schema document.
|
1505
|
+
|
1506
|
+
\param document A JSON document as source.
|
1507
|
+
\param uri The base URI of this schema document for purposes of violation reporting.
|
1508
|
+
\param uriLength Length of \c name, in code points.
|
1509
|
+
\param remoteProvider An optional remote schema document provider for resolving remote reference. Can be null.
|
1510
|
+
\param allocator An optional allocator instance for allocating memory. Can be null.
|
1511
|
+
*/
|
1512
|
+
explicit GenericSchemaDocument(const ValueType& document, const Ch* uri = 0, SizeType uriLength = 0,
|
1513
|
+
IRemoteSchemaDocumentProviderType* remoteProvider = 0, Allocator* allocator = 0) :
|
1514
|
+
remoteProvider_(remoteProvider),
|
1515
|
+
allocator_(allocator),
|
1516
|
+
ownAllocator_(),
|
1517
|
+
root_(),
|
1518
|
+
typeless_(),
|
1519
|
+
schemaMap_(allocator, kInitialSchemaMapSize),
|
1520
|
+
schemaRef_(allocator, kInitialSchemaRefSize)
|
1521
|
+
{
|
1522
|
+
if (!allocator_)
|
1523
|
+
ownAllocator_ = allocator_ = RAPIDJSON_NEW(Allocator)();
|
1524
|
+
|
1525
|
+
Ch noUri[1] = {0};
|
1526
|
+
uri_.SetString(uri ? uri : noUri, uriLength, *allocator_);
|
1527
|
+
|
1528
|
+
typeless_ = static_cast<SchemaType*>(allocator_->Malloc(sizeof(SchemaType)));
|
1529
|
+
new (typeless_) SchemaType(this, PointerType(), ValueType(kObjectType).Move(), ValueType(kObjectType).Move(), allocator_);
|
1530
|
+
|
1531
|
+
// Generate root schema, it will call CreateSchema() to create sub-schemas,
|
1532
|
+
// And call AddRefSchema() if there are $ref.
|
1533
|
+
CreateSchemaRecursive(&root_, PointerType(), document, document);
|
1534
|
+
|
1535
|
+
// Resolve $ref
|
1536
|
+
while (!schemaRef_.Empty()) {
|
1537
|
+
SchemaRefEntry* refEntry = schemaRef_.template Pop<SchemaRefEntry>(1);
|
1538
|
+
if (const SchemaType* s = GetSchema(refEntry->target)) {
|
1539
|
+
if (refEntry->schema)
|
1540
|
+
*refEntry->schema = s;
|
1541
|
+
|
1542
|
+
// Create entry in map if not exist
|
1543
|
+
if (!GetSchema(refEntry->source)) {
|
1544
|
+
new (schemaMap_.template Push<SchemaEntry>()) SchemaEntry(refEntry->source, const_cast<SchemaType*>(s), false, allocator_);
|
1545
|
+
}
|
1546
|
+
}
|
1547
|
+
else if (refEntry->schema)
|
1548
|
+
*refEntry->schema = typeless_;
|
1549
|
+
|
1550
|
+
refEntry->~SchemaRefEntry();
|
1551
|
+
}
|
1552
|
+
|
1553
|
+
RAPIDJSON_ASSERT(root_ != 0);
|
1554
|
+
|
1555
|
+
schemaRef_.ShrinkToFit(); // Deallocate all memory for ref
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
|
1559
|
+
//! Move constructor in C++11
|
1560
|
+
GenericSchemaDocument(GenericSchemaDocument&& rhs) RAPIDJSON_NOEXCEPT :
|
1561
|
+
remoteProvider_(rhs.remoteProvider_),
|
1562
|
+
allocator_(rhs.allocator_),
|
1563
|
+
ownAllocator_(rhs.ownAllocator_),
|
1564
|
+
root_(rhs.root_),
|
1565
|
+
typeless_(rhs.typeless_),
|
1566
|
+
schemaMap_(std::move(rhs.schemaMap_)),
|
1567
|
+
schemaRef_(std::move(rhs.schemaRef_)),
|
1568
|
+
uri_(std::move(rhs.uri_))
|
1569
|
+
{
|
1570
|
+
rhs.remoteProvider_ = 0;
|
1571
|
+
rhs.allocator_ = 0;
|
1572
|
+
rhs.ownAllocator_ = 0;
|
1573
|
+
rhs.typeless_ = 0;
|
1574
|
+
}
|
1575
|
+
#endif
|
1576
|
+
|
1577
|
+
//! Destructor
|
1578
|
+
~GenericSchemaDocument() {
|
1579
|
+
while (!schemaMap_.Empty())
|
1580
|
+
schemaMap_.template Pop<SchemaEntry>(1)->~SchemaEntry();
|
1581
|
+
|
1582
|
+
if (typeless_) {
|
1583
|
+
typeless_->~SchemaType();
|
1584
|
+
Allocator::Free(typeless_);
|
1585
|
+
}
|
1586
|
+
|
1587
|
+
RAPIDJSON_DELETE(ownAllocator_);
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
const URIType& GetURI() const { return uri_; }
|
1591
|
+
|
1592
|
+
//! Get the root schema.
|
1593
|
+
const SchemaType& GetRoot() const { return *root_; }
|
1594
|
+
|
1595
|
+
private:
|
1596
|
+
//! Prohibit copying
|
1597
|
+
GenericSchemaDocument(const GenericSchemaDocument&);
|
1598
|
+
//! Prohibit assignment
|
1599
|
+
GenericSchemaDocument& operator=(const GenericSchemaDocument&);
|
1600
|
+
|
1601
|
+
struct SchemaRefEntry {
|
1602
|
+
SchemaRefEntry(const PointerType& s, const PointerType& t, const SchemaType** outSchema, Allocator *allocator) : source(s, allocator), target(t, allocator), schema(outSchema) {}
|
1603
|
+
PointerType source;
|
1604
|
+
PointerType target;
|
1605
|
+
const SchemaType** schema;
|
1606
|
+
};
|
1607
|
+
|
1608
|
+
struct SchemaEntry {
|
1609
|
+
SchemaEntry(const PointerType& p, SchemaType* s, bool o, Allocator* allocator) : pointer(p, allocator), schema(s), owned(o) {}
|
1610
|
+
~SchemaEntry() {
|
1611
|
+
if (owned) {
|
1612
|
+
schema->~SchemaType();
|
1613
|
+
Allocator::Free(schema);
|
1614
|
+
}
|
1615
|
+
}
|
1616
|
+
PointerType pointer;
|
1617
|
+
SchemaType* schema;
|
1618
|
+
bool owned;
|
1619
|
+
};
|
1620
|
+
|
1621
|
+
void CreateSchemaRecursive(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& document) {
|
1622
|
+
if (schema)
|
1623
|
+
*schema = typeless_;
|
1624
|
+
|
1625
|
+
if (v.GetType() == kObjectType) {
|
1626
|
+
const SchemaType* s = GetSchema(pointer);
|
1627
|
+
if (!s)
|
1628
|
+
CreateSchema(schema, pointer, v, document);
|
1629
|
+
|
1630
|
+
for (typename ValueType::ConstMemberIterator itr = v.MemberBegin(); itr != v.MemberEnd(); ++itr)
|
1631
|
+
CreateSchemaRecursive(0, pointer.Append(itr->name, allocator_), itr->value, document);
|
1632
|
+
}
|
1633
|
+
else if (v.GetType() == kArrayType)
|
1634
|
+
for (SizeType i = 0; i < v.Size(); i++)
|
1635
|
+
CreateSchemaRecursive(0, pointer.Append(i, allocator_), v[i], document);
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
void CreateSchema(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& document) {
|
1639
|
+
RAPIDJSON_ASSERT(pointer.IsValid());
|
1640
|
+
if (v.IsObject()) {
|
1641
|
+
if (!HandleRefSchema(pointer, schema, v, document)) {
|
1642
|
+
SchemaType* s = new (allocator_->Malloc(sizeof(SchemaType))) SchemaType(this, pointer, v, document, allocator_);
|
1643
|
+
new (schemaMap_.template Push<SchemaEntry>()) SchemaEntry(pointer, s, true, allocator_);
|
1644
|
+
if (schema)
|
1645
|
+
*schema = s;
|
1646
|
+
}
|
1647
|
+
}
|
1648
|
+
}
|
1649
|
+
|
1650
|
+
bool HandleRefSchema(const PointerType& source, const SchemaType** schema, const ValueType& v, const ValueType& document) {
|
1651
|
+
static const Ch kRefString[] = { '$', 'r', 'e', 'f', '\0' };
|
1652
|
+
static const ValueType kRefValue(kRefString, 4);
|
1653
|
+
|
1654
|
+
typename ValueType::ConstMemberIterator itr = v.FindMember(kRefValue);
|
1655
|
+
if (itr == v.MemberEnd())
|
1656
|
+
return false;
|
1657
|
+
|
1658
|
+
if (itr->value.IsString()) {
|
1659
|
+
SizeType len = itr->value.GetStringLength();
|
1660
|
+
if (len > 0) {
|
1661
|
+
const Ch* s = itr->value.GetString();
|
1662
|
+
SizeType i = 0;
|
1663
|
+
while (i < len && s[i] != '#') // Find the first #
|
1664
|
+
i++;
|
1665
|
+
|
1666
|
+
if (i > 0) { // Remote reference, resolve immediately
|
1667
|
+
if (remoteProvider_) {
|
1668
|
+
if (const GenericSchemaDocument* remoteDocument = remoteProvider_->GetRemoteDocument(s, i)) {
|
1669
|
+
PointerType pointer(&s[i], len - i, allocator_);
|
1670
|
+
if (pointer.IsValid()) {
|
1671
|
+
if (const SchemaType* sc = remoteDocument->GetSchema(pointer)) {
|
1672
|
+
if (schema)
|
1673
|
+
*schema = sc;
|
1674
|
+
new (schemaMap_.template Push<SchemaEntry>()) SchemaEntry(source, const_cast<SchemaType*>(sc), false, allocator_);
|
1675
|
+
return true;
|
1676
|
+
}
|
1677
|
+
}
|
1678
|
+
}
|
1679
|
+
}
|
1680
|
+
}
|
1681
|
+
else if (s[i] == '#') { // Local reference, defer resolution
|
1682
|
+
PointerType pointer(&s[i], len - i, allocator_);
|
1683
|
+
if (pointer.IsValid()) {
|
1684
|
+
if (const ValueType* nv = pointer.Get(document))
|
1685
|
+
if (HandleRefSchema(source, schema, *nv, document))
|
1686
|
+
return true;
|
1687
|
+
|
1688
|
+
new (schemaRef_.template Push<SchemaRefEntry>()) SchemaRefEntry(source, pointer, schema, allocator_);
|
1689
|
+
return true;
|
1690
|
+
}
|
1691
|
+
}
|
1692
|
+
}
|
1693
|
+
}
|
1694
|
+
return false;
|
1695
|
+
}
|
1696
|
+
|
1697
|
+
const SchemaType* GetSchema(const PointerType& pointer) const {
|
1698
|
+
for (const SchemaEntry* target = schemaMap_.template Bottom<SchemaEntry>(); target != schemaMap_.template End<SchemaEntry>(); ++target)
|
1699
|
+
if (pointer == target->pointer)
|
1700
|
+
return target->schema;
|
1701
|
+
return 0;
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
PointerType GetPointer(const SchemaType* schema) const {
|
1705
|
+
for (const SchemaEntry* target = schemaMap_.template Bottom<SchemaEntry>(); target != schemaMap_.template End<SchemaEntry>(); ++target)
|
1706
|
+
if (schema == target->schema)
|
1707
|
+
return target->pointer;
|
1708
|
+
return PointerType();
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
const SchemaType* GetTypeless() const { return typeless_; }
|
1712
|
+
|
1713
|
+
static const size_t kInitialSchemaMapSize = 64;
|
1714
|
+
static const size_t kInitialSchemaRefSize = 64;
|
1715
|
+
|
1716
|
+
IRemoteSchemaDocumentProviderType* remoteProvider_;
|
1717
|
+
Allocator *allocator_;
|
1718
|
+
Allocator *ownAllocator_;
|
1719
|
+
const SchemaType* root_; //!< Root schema.
|
1720
|
+
SchemaType* typeless_;
|
1721
|
+
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
|
1722
|
+
internal::Stack<Allocator> schemaRef_; // Stores Pointer from $ref and schema which holds the $ref
|
1723
|
+
URIType uri_;
|
1724
|
+
};
|
1725
|
+
|
1726
|
+
//! GenericSchemaDocument using Value type.
|
1727
|
+
typedef GenericSchemaDocument<Value> SchemaDocument;
|
1728
|
+
//! IGenericRemoteSchemaDocumentProvider using SchemaDocument.
|
1729
|
+
typedef IGenericRemoteSchemaDocumentProvider<SchemaDocument> IRemoteSchemaDocumentProvider;
|
1730
|
+
|
1731
|
+
///////////////////////////////////////////////////////////////////////////////
|
1732
|
+
// GenericSchemaValidator
|
1733
|
+
|
1734
|
+
//! JSON Schema Validator.
|
1735
|
+
/*!
|
1736
|
+
A SAX style JSON schema validator.
|
1737
|
+
It uses a \c GenericSchemaDocument to validate SAX events.
|
1738
|
+
It delegates the incoming SAX events to an output handler.
|
1739
|
+
The default output handler does nothing.
|
1740
|
+
It can be reused multiple times by calling \c Reset().
|
1741
|
+
|
1742
|
+
\tparam SchemaDocumentType Type of schema document.
|
1743
|
+
\tparam OutputHandler Type of output handler. Default handler does nothing.
|
1744
|
+
\tparam StateAllocator Allocator for storing the internal validation states.
|
1745
|
+
*/
|
1746
|
+
template <
|
1747
|
+
typename SchemaDocumentType,
|
1748
|
+
typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>,
|
1749
|
+
typename StateAllocator = CrtAllocator>
|
1750
|
+
class GenericSchemaValidator :
|
1751
|
+
public internal::ISchemaStateFactory<typename SchemaDocumentType::SchemaType>,
|
1752
|
+
public internal::ISchemaValidator,
|
1753
|
+
public internal::IValidationErrorHandler<typename SchemaDocumentType::SchemaType>
|
1754
|
+
{
|
1755
|
+
public:
|
1756
|
+
typedef typename SchemaDocumentType::SchemaType SchemaType;
|
1757
|
+
typedef typename SchemaDocumentType::PointerType PointerType;
|
1758
|
+
typedef typename SchemaType::EncodingType EncodingType;
|
1759
|
+
typedef typename SchemaType::SValue SValue;
|
1760
|
+
typedef typename EncodingType::Ch Ch;
|
1761
|
+
typedef GenericStringRef<Ch> StringRefType;
|
1762
|
+
typedef GenericValue<EncodingType, StateAllocator> ValueType;
|
1763
|
+
|
1764
|
+
//! Constructor without output handler.
|
1765
|
+
/*!
|
1766
|
+
\param schemaDocument The schema document to conform to.
|
1767
|
+
\param allocator Optional allocator for storing internal validation states.
|
1768
|
+
\param schemaStackCapacity Optional initial capacity of schema path stack.
|
1769
|
+
\param documentStackCapacity Optional initial capacity of document path stack.
|
1770
|
+
*/
|
1771
|
+
GenericSchemaValidator(
|
1772
|
+
const SchemaDocumentType& schemaDocument,
|
1773
|
+
StateAllocator* allocator = 0,
|
1774
|
+
size_t schemaStackCapacity = kDefaultSchemaStackCapacity,
|
1775
|
+
size_t documentStackCapacity = kDefaultDocumentStackCapacity)
|
1776
|
+
:
|
1777
|
+
schemaDocument_(&schemaDocument),
|
1778
|
+
root_(schemaDocument.GetRoot()),
|
1779
|
+
stateAllocator_(allocator),
|
1780
|
+
ownStateAllocator_(0),
|
1781
|
+
schemaStack_(allocator, schemaStackCapacity),
|
1782
|
+
documentStack_(allocator, documentStackCapacity),
|
1783
|
+
outputHandler_(0),
|
1784
|
+
error_(kObjectType),
|
1785
|
+
currentError_(),
|
1786
|
+
missingDependents_(),
|
1787
|
+
valid_(true)
|
1788
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
1789
|
+
, depth_(0)
|
1790
|
+
#endif
|
1791
|
+
{
|
1792
|
+
}
|
1793
|
+
|
1794
|
+
//! Constructor with output handler.
|
1795
|
+
/*!
|
1796
|
+
\param schemaDocument The schema document to conform to.
|
1797
|
+
\param allocator Optional allocator for storing internal validation states.
|
1798
|
+
\param schemaStackCapacity Optional initial capacity of schema path stack.
|
1799
|
+
\param documentStackCapacity Optional initial capacity of document path stack.
|
1800
|
+
*/
|
1801
|
+
GenericSchemaValidator(
|
1802
|
+
const SchemaDocumentType& schemaDocument,
|
1803
|
+
OutputHandler& outputHandler,
|
1804
|
+
StateAllocator* allocator = 0,
|
1805
|
+
size_t schemaStackCapacity = kDefaultSchemaStackCapacity,
|
1806
|
+
size_t documentStackCapacity = kDefaultDocumentStackCapacity)
|
1807
|
+
:
|
1808
|
+
schemaDocument_(&schemaDocument),
|
1809
|
+
root_(schemaDocument.GetRoot()),
|
1810
|
+
stateAllocator_(allocator),
|
1811
|
+
ownStateAllocator_(0),
|
1812
|
+
schemaStack_(allocator, schemaStackCapacity),
|
1813
|
+
documentStack_(allocator, documentStackCapacity),
|
1814
|
+
outputHandler_(&outputHandler),
|
1815
|
+
error_(kObjectType),
|
1816
|
+
currentError_(),
|
1817
|
+
missingDependents_(),
|
1818
|
+
valid_(true)
|
1819
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
1820
|
+
, depth_(0)
|
1821
|
+
#endif
|
1822
|
+
{
|
1823
|
+
}
|
1824
|
+
|
1825
|
+
//! Destructor.
|
1826
|
+
~GenericSchemaValidator() {
|
1827
|
+
Reset();
|
1828
|
+
RAPIDJSON_DELETE(ownStateAllocator_);
|
1829
|
+
}
|
1830
|
+
|
1831
|
+
//! Reset the internal states.
|
1832
|
+
void Reset() {
|
1833
|
+
while (!schemaStack_.Empty())
|
1834
|
+
PopSchema();
|
1835
|
+
documentStack_.Clear();
|
1836
|
+
error_.SetObject();
|
1837
|
+
currentError_.SetNull();
|
1838
|
+
missingDependents_.SetNull();
|
1839
|
+
valid_ = true;
|
1840
|
+
}
|
1841
|
+
|
1842
|
+
//! Checks whether the current state is valid.
|
1843
|
+
// Implementation of ISchemaValidator
|
1844
|
+
virtual bool IsValid() const { return valid_; }
|
1845
|
+
|
1846
|
+
//! Gets the error object.
|
1847
|
+
ValueType& GetError() { return error_; }
|
1848
|
+
const ValueType& GetError() const { return error_; }
|
1849
|
+
|
1850
|
+
//! Gets the JSON pointer pointed to the invalid schema.
|
1851
|
+
PointerType GetInvalidSchemaPointer() const {
|
1852
|
+
return schemaStack_.Empty() ? PointerType() : CurrentSchema().GetPointer();
|
1853
|
+
}
|
1854
|
+
|
1855
|
+
//! Gets the keyword of invalid schema.
|
1856
|
+
const Ch* GetInvalidSchemaKeyword() const {
|
1857
|
+
return schemaStack_.Empty() ? 0 : CurrentContext().invalidKeyword;
|
1858
|
+
}
|
1859
|
+
|
1860
|
+
//! Gets the JSON pointer pointed to the invalid value.
|
1861
|
+
PointerType GetInvalidDocumentPointer() const {
|
1862
|
+
if (documentStack_.Empty()) {
|
1863
|
+
return PointerType();
|
1864
|
+
}
|
1865
|
+
else {
|
1866
|
+
return PointerType(documentStack_.template Bottom<Ch>(), documentStack_.GetSize() / sizeof(Ch));
|
1867
|
+
}
|
1868
|
+
}
|
1869
|
+
|
1870
|
+
void NotMultipleOf(int64_t actual, const SValue& expected) {
|
1871
|
+
AddNumberError(SchemaType::GetMultipleOfString(), ValueType(actual).Move(), expected);
|
1872
|
+
}
|
1873
|
+
void NotMultipleOf(uint64_t actual, const SValue& expected) {
|
1874
|
+
AddNumberError(SchemaType::GetMultipleOfString(), ValueType(actual).Move(), expected);
|
1875
|
+
}
|
1876
|
+
void NotMultipleOf(double actual, const SValue& expected) {
|
1877
|
+
AddNumberError(SchemaType::GetMultipleOfString(), ValueType(actual).Move(), expected);
|
1878
|
+
}
|
1879
|
+
void AboveMaximum(int64_t actual, const SValue& expected, bool exclusive) {
|
1880
|
+
AddNumberError(SchemaType::GetMaximumString(), ValueType(actual).Move(), expected,
|
1881
|
+
exclusive ? &SchemaType::GetExclusiveMaximumString : 0);
|
1882
|
+
}
|
1883
|
+
void AboveMaximum(uint64_t actual, const SValue& expected, bool exclusive) {
|
1884
|
+
AddNumberError(SchemaType::GetMaximumString(), ValueType(actual).Move(), expected,
|
1885
|
+
exclusive ? &SchemaType::GetExclusiveMaximumString : 0);
|
1886
|
+
}
|
1887
|
+
void AboveMaximum(double actual, const SValue& expected, bool exclusive) {
|
1888
|
+
AddNumberError(SchemaType::GetMaximumString(), ValueType(actual).Move(), expected,
|
1889
|
+
exclusive ? &SchemaType::GetExclusiveMaximumString : 0);
|
1890
|
+
}
|
1891
|
+
void BelowMinimum(int64_t actual, const SValue& expected, bool exclusive) {
|
1892
|
+
AddNumberError(SchemaType::GetMinimumString(), ValueType(actual).Move(), expected,
|
1893
|
+
exclusive ? &SchemaType::GetExclusiveMinimumString : 0);
|
1894
|
+
}
|
1895
|
+
void BelowMinimum(uint64_t actual, const SValue& expected, bool exclusive) {
|
1896
|
+
AddNumberError(SchemaType::GetMinimumString(), ValueType(actual).Move(), expected,
|
1897
|
+
exclusive ? &SchemaType::GetExclusiveMinimumString : 0);
|
1898
|
+
}
|
1899
|
+
void BelowMinimum(double actual, const SValue& expected, bool exclusive) {
|
1900
|
+
AddNumberError(SchemaType::GetMinimumString(), ValueType(actual).Move(), expected,
|
1901
|
+
exclusive ? &SchemaType::GetExclusiveMinimumString : 0);
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
void TooLong(const Ch* str, SizeType length, SizeType expected) {
|
1905
|
+
AddNumberError(SchemaType::GetMaxLengthString(),
|
1906
|
+
ValueType(str, length, GetStateAllocator()).Move(), SValue(expected).Move());
|
1907
|
+
}
|
1908
|
+
void TooShort(const Ch* str, SizeType length, SizeType expected) {
|
1909
|
+
AddNumberError(SchemaType::GetMinLengthString(),
|
1910
|
+
ValueType(str, length, GetStateAllocator()).Move(), SValue(expected).Move());
|
1911
|
+
}
|
1912
|
+
void DoesNotMatch(const Ch* str, SizeType length) {
|
1913
|
+
currentError_.SetObject();
|
1914
|
+
currentError_.AddMember(GetActualString(), ValueType(str, length, GetStateAllocator()).Move(), GetStateAllocator());
|
1915
|
+
AddCurrentError(SchemaType::GetPatternString());
|
1916
|
+
}
|
1917
|
+
|
1918
|
+
void DisallowedItem(SizeType index) {
|
1919
|
+
currentError_.SetObject();
|
1920
|
+
currentError_.AddMember(GetDisallowedString(), ValueType(index).Move(), GetStateAllocator());
|
1921
|
+
AddCurrentError(SchemaType::GetAdditionalItemsString(), true);
|
1922
|
+
}
|
1923
|
+
void TooFewItems(SizeType actualCount, SizeType expectedCount) {
|
1924
|
+
AddNumberError(SchemaType::GetMinItemsString(),
|
1925
|
+
ValueType(actualCount).Move(), SValue(expectedCount).Move());
|
1926
|
+
}
|
1927
|
+
void TooManyItems(SizeType actualCount, SizeType expectedCount) {
|
1928
|
+
AddNumberError(SchemaType::GetMaxItemsString(),
|
1929
|
+
ValueType(actualCount).Move(), SValue(expectedCount).Move());
|
1930
|
+
}
|
1931
|
+
void DuplicateItems(SizeType index1, SizeType index2) {
|
1932
|
+
ValueType duplicates(kArrayType);
|
1933
|
+
duplicates.PushBack(index1, GetStateAllocator());
|
1934
|
+
duplicates.PushBack(index2, GetStateAllocator());
|
1935
|
+
currentError_.SetObject();
|
1936
|
+
currentError_.AddMember(GetDuplicatesString(), duplicates, GetStateAllocator());
|
1937
|
+
AddCurrentError(SchemaType::GetUniqueItemsString(), true);
|
1938
|
+
}
|
1939
|
+
|
1940
|
+
void TooManyProperties(SizeType actualCount, SizeType expectedCount) {
|
1941
|
+
AddNumberError(SchemaType::GetMaxPropertiesString(),
|
1942
|
+
ValueType(actualCount).Move(), SValue(expectedCount).Move());
|
1943
|
+
}
|
1944
|
+
void TooFewProperties(SizeType actualCount, SizeType expectedCount) {
|
1945
|
+
AddNumberError(SchemaType::GetMinPropertiesString(),
|
1946
|
+
ValueType(actualCount).Move(), SValue(expectedCount).Move());
|
1947
|
+
}
|
1948
|
+
void StartMissingProperties() {
|
1949
|
+
currentError_.SetArray();
|
1950
|
+
}
|
1951
|
+
void AddMissingProperty(const SValue& name) {
|
1952
|
+
currentError_.PushBack(ValueType(name, GetStateAllocator()).Move(), GetStateAllocator());
|
1953
|
+
}
|
1954
|
+
bool EndMissingProperties() {
|
1955
|
+
if (currentError_.Empty())
|
1956
|
+
return false;
|
1957
|
+
ValueType error(kObjectType);
|
1958
|
+
error.AddMember(GetMissingString(), currentError_, GetStateAllocator());
|
1959
|
+
currentError_ = error;
|
1960
|
+
AddCurrentError(SchemaType::GetRequiredString());
|
1961
|
+
return true;
|
1962
|
+
}
|
1963
|
+
void PropertyViolations(ISchemaValidator** subvalidators, SizeType count) {
|
1964
|
+
for (SizeType i = 0; i < count; ++i)
|
1965
|
+
MergeError(static_cast<GenericSchemaValidator*>(subvalidators[i])->GetError());
|
1966
|
+
}
|
1967
|
+
void DisallowedProperty(const Ch* name, SizeType length) {
|
1968
|
+
currentError_.SetObject();
|
1969
|
+
currentError_.AddMember(GetDisallowedString(), ValueType(name, length, GetStateAllocator()).Move(), GetStateAllocator());
|
1970
|
+
AddCurrentError(SchemaType::GetAdditionalPropertiesString(), true);
|
1971
|
+
}
|
1972
|
+
|
1973
|
+
void StartDependencyErrors() {
|
1974
|
+
currentError_.SetObject();
|
1975
|
+
}
|
1976
|
+
void StartMissingDependentProperties() {
|
1977
|
+
missingDependents_.SetArray();
|
1978
|
+
}
|
1979
|
+
void AddMissingDependentProperty(const SValue& targetName) {
|
1980
|
+
missingDependents_.PushBack(ValueType(targetName, GetStateAllocator()).Move(), GetStateAllocator());
|
1981
|
+
}
|
1982
|
+
void EndMissingDependentProperties(const SValue& sourceName) {
|
1983
|
+
if (!missingDependents_.Empty())
|
1984
|
+
currentError_.AddMember(ValueType(sourceName, GetStateAllocator()).Move(),
|
1985
|
+
missingDependents_, GetStateAllocator());
|
1986
|
+
}
|
1987
|
+
void AddDependencySchemaError(const SValue& sourceName, ISchemaValidator* subvalidator) {
|
1988
|
+
currentError_.AddMember(ValueType(sourceName, GetStateAllocator()).Move(),
|
1989
|
+
static_cast<GenericSchemaValidator*>(subvalidator)->GetError(), GetStateAllocator());
|
1990
|
+
}
|
1991
|
+
bool EndDependencyErrors() {
|
1992
|
+
if (currentError_.ObjectEmpty())
|
1993
|
+
return false;
|
1994
|
+
ValueType error(kObjectType);
|
1995
|
+
error.AddMember(GetErrorsString(), currentError_, GetStateAllocator());
|
1996
|
+
currentError_ = error;
|
1997
|
+
AddCurrentError(SchemaType::GetDependenciesString());
|
1998
|
+
return true;
|
1999
|
+
}
|
2000
|
+
|
2001
|
+
void DisallowedValue() {
|
2002
|
+
currentError_.SetObject();
|
2003
|
+
AddCurrentError(SchemaType::GetEnumString());
|
2004
|
+
}
|
2005
|
+
void StartDisallowedType() {
|
2006
|
+
currentError_.SetArray();
|
2007
|
+
}
|
2008
|
+
void AddExpectedType(const typename SchemaType::ValueType& expectedType) {
|
2009
|
+
currentError_.PushBack(ValueType(expectedType, GetStateAllocator()).Move(), GetStateAllocator());
|
2010
|
+
}
|
2011
|
+
void EndDisallowedType(const typename SchemaType::ValueType& actualType) {
|
2012
|
+
ValueType error(kObjectType);
|
2013
|
+
error.AddMember(GetExpectedString(), currentError_, GetStateAllocator());
|
2014
|
+
error.AddMember(GetActualString(), ValueType(actualType, GetStateAllocator()).Move(), GetStateAllocator());
|
2015
|
+
currentError_ = error;
|
2016
|
+
AddCurrentError(SchemaType::GetTypeString());
|
2017
|
+
}
|
2018
|
+
void NotAllOf(ISchemaValidator** subvalidators, SizeType count) {
|
2019
|
+
for (SizeType i = 0; i < count; ++i) {
|
2020
|
+
MergeError(static_cast<GenericSchemaValidator*>(subvalidators[i])->GetError());
|
2021
|
+
}
|
2022
|
+
}
|
2023
|
+
void NoneOf(ISchemaValidator** subvalidators, SizeType count) {
|
2024
|
+
AddErrorArray(SchemaType::GetAnyOfString(), subvalidators, count);
|
2025
|
+
}
|
2026
|
+
void NotOneOf(ISchemaValidator** subvalidators, SizeType count) {
|
2027
|
+
AddErrorArray(SchemaType::GetOneOfString(), subvalidators, count);
|
2028
|
+
}
|
2029
|
+
void Disallowed() {
|
2030
|
+
currentError_.SetObject();
|
2031
|
+
AddCurrentError(SchemaType::GetNotString());
|
2032
|
+
}
|
2033
|
+
|
2034
|
+
#define RAPIDJSON_STRING_(name, ...) \
|
2035
|
+
static const StringRefType& Get##name##String() {\
|
2036
|
+
static const Ch s[] = { __VA_ARGS__, '\0' };\
|
2037
|
+
static const StringRefType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1)); \
|
2038
|
+
return v;\
|
2039
|
+
}
|
2040
|
+
|
2041
|
+
RAPIDJSON_STRING_(InstanceRef, 'i', 'n', 's', 't', 'a', 'n', 'c', 'e', 'R', 'e', 'f')
|
2042
|
+
RAPIDJSON_STRING_(SchemaRef, 's', 'c', 'h', 'e', 'm', 'a', 'R', 'e', 'f')
|
2043
|
+
RAPIDJSON_STRING_(Expected, 'e', 'x', 'p', 'e', 'c', 't', 'e', 'd')
|
2044
|
+
RAPIDJSON_STRING_(Actual, 'a', 'c', 't', 'u', 'a', 'l')
|
2045
|
+
RAPIDJSON_STRING_(Disallowed, 'd', 'i', 's', 'a', 'l', 'l', 'o', 'w', 'e', 'd')
|
2046
|
+
RAPIDJSON_STRING_(Missing, 'm', 'i', 's', 's', 'i', 'n', 'g')
|
2047
|
+
RAPIDJSON_STRING_(Errors, 'e', 'r', 'r', 'o', 'r', 's')
|
2048
|
+
RAPIDJSON_STRING_(Duplicates, 'd', 'u', 'p', 'l', 'i', 'c', 'a', 't', 'e', 's')
|
2049
|
+
|
2050
|
+
#undef RAPIDJSON_STRING_
|
2051
|
+
|
2052
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2053
|
+
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_() \
|
2054
|
+
RAPIDJSON_MULTILINEMACRO_BEGIN\
|
2055
|
+
*documentStack_.template Push<Ch>() = '\0';\
|
2056
|
+
documentStack_.template Pop<Ch>(1);\
|
2057
|
+
internal::PrintInvalidDocument(documentStack_.template Bottom<Ch>());\
|
2058
|
+
RAPIDJSON_MULTILINEMACRO_END
|
2059
|
+
#else
|
2060
|
+
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_()
|
2061
|
+
#endif
|
2062
|
+
|
2063
|
+
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_(method, arg1)\
|
2064
|
+
if (!valid_) return false; \
|
2065
|
+
if (!BeginValue() || !CurrentSchema().method arg1) {\
|
2066
|
+
RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_();\
|
2067
|
+
return valid_ = false;\
|
2068
|
+
}
|
2069
|
+
|
2070
|
+
#define RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(method, arg2)\
|
2071
|
+
for (Context* context = schemaStack_.template Bottom<Context>(); context != schemaStack_.template End<Context>(); context++) {\
|
2072
|
+
if (context->hasher)\
|
2073
|
+
static_cast<HasherType*>(context->hasher)->method arg2;\
|
2074
|
+
if (context->validators)\
|
2075
|
+
for (SizeType i_ = 0; i_ < context->validatorCount; i_++)\
|
2076
|
+
static_cast<GenericSchemaValidator*>(context->validators[i_])->method arg2;\
|
2077
|
+
if (context->patternPropertiesValidators)\
|
2078
|
+
for (SizeType i_ = 0; i_ < context->patternPropertiesValidatorCount; i_++)\
|
2079
|
+
static_cast<GenericSchemaValidator*>(context->patternPropertiesValidators[i_])->method arg2;\
|
2080
|
+
}
|
2081
|
+
|
2082
|
+
#define RAPIDJSON_SCHEMA_HANDLE_END_(method, arg2)\
|
2083
|
+
return valid_ = EndValue() && (!outputHandler_ || outputHandler_->method arg2)
|
2084
|
+
|
2085
|
+
#define RAPIDJSON_SCHEMA_HANDLE_VALUE_(method, arg1, arg2) \
|
2086
|
+
RAPIDJSON_SCHEMA_HANDLE_BEGIN_ (method, arg1);\
|
2087
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(method, arg2);\
|
2088
|
+
RAPIDJSON_SCHEMA_HANDLE_END_ (method, arg2)
|
2089
|
+
|
2090
|
+
bool Null() { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Null, (CurrentContext()), ( )); }
|
2091
|
+
bool Bool(bool b) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Bool, (CurrentContext(), b), (b)); }
|
2092
|
+
bool Int(int i) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Int, (CurrentContext(), i), (i)); }
|
2093
|
+
bool Uint(unsigned u) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Uint, (CurrentContext(), u), (u)); }
|
2094
|
+
bool Int64(int64_t i) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Int64, (CurrentContext(), i), (i)); }
|
2095
|
+
bool Uint64(uint64_t u) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Uint64, (CurrentContext(), u), (u)); }
|
2096
|
+
bool Double(double d) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Double, (CurrentContext(), d), (d)); }
|
2097
|
+
bool RawNumber(const Ch* str, SizeType length, bool copy)
|
2098
|
+
{ RAPIDJSON_SCHEMA_HANDLE_VALUE_(String, (CurrentContext(), str, length, copy), (str, length, copy)); }
|
2099
|
+
bool String(const Ch* str, SizeType length, bool copy)
|
2100
|
+
{ RAPIDJSON_SCHEMA_HANDLE_VALUE_(String, (CurrentContext(), str, length, copy), (str, length, copy)); }
|
2101
|
+
|
2102
|
+
bool StartObject() {
|
2103
|
+
RAPIDJSON_SCHEMA_HANDLE_BEGIN_(StartObject, (CurrentContext()));
|
2104
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(StartObject, ());
|
2105
|
+
return valid_ = !outputHandler_ || outputHandler_->StartObject();
|
2106
|
+
}
|
2107
|
+
|
2108
|
+
bool Key(const Ch* str, SizeType len, bool copy) {
|
2109
|
+
if (!valid_) return false;
|
2110
|
+
AppendToken(str, len);
|
2111
|
+
if (!CurrentSchema().Key(CurrentContext(), str, len, copy)) return valid_ = false;
|
2112
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(Key, (str, len, copy));
|
2113
|
+
return valid_ = !outputHandler_ || outputHandler_->Key(str, len, copy);
|
2114
|
+
}
|
2115
|
+
|
2116
|
+
bool EndObject(SizeType memberCount) {
|
2117
|
+
if (!valid_) return false;
|
2118
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(EndObject, (memberCount));
|
2119
|
+
if (!CurrentSchema().EndObject(CurrentContext(), memberCount)) return valid_ = false;
|
2120
|
+
RAPIDJSON_SCHEMA_HANDLE_END_(EndObject, (memberCount));
|
2121
|
+
}
|
2122
|
+
|
2123
|
+
bool StartArray() {
|
2124
|
+
RAPIDJSON_SCHEMA_HANDLE_BEGIN_(StartArray, (CurrentContext()));
|
2125
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(StartArray, ());
|
2126
|
+
return valid_ = !outputHandler_ || outputHandler_->StartArray();
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
bool EndArray(SizeType elementCount) {
|
2130
|
+
if (!valid_) return false;
|
2131
|
+
RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(EndArray, (elementCount));
|
2132
|
+
if (!CurrentSchema().EndArray(CurrentContext(), elementCount)) return valid_ = false;
|
2133
|
+
RAPIDJSON_SCHEMA_HANDLE_END_(EndArray, (elementCount));
|
2134
|
+
}
|
2135
|
+
|
2136
|
+
#undef RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_
|
2137
|
+
#undef RAPIDJSON_SCHEMA_HANDLE_BEGIN_
|
2138
|
+
#undef RAPIDJSON_SCHEMA_HANDLE_PARALLEL_
|
2139
|
+
#undef RAPIDJSON_SCHEMA_HANDLE_VALUE_
|
2140
|
+
|
2141
|
+
// Implementation of ISchemaStateFactory<SchemaType>
|
2142
|
+
virtual ISchemaValidator* CreateSchemaValidator(const SchemaType& root) {
|
2143
|
+
return new (GetStateAllocator().Malloc(sizeof(GenericSchemaValidator))) GenericSchemaValidator(*schemaDocument_, root, documentStack_.template Bottom<char>(), documentStack_.GetSize(),
|
2144
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2145
|
+
depth_ + 1,
|
2146
|
+
#endif
|
2147
|
+
&GetStateAllocator());
|
2148
|
+
}
|
2149
|
+
|
2150
|
+
virtual void DestroySchemaValidator(ISchemaValidator* validator) {
|
2151
|
+
GenericSchemaValidator* v = static_cast<GenericSchemaValidator*>(validator);
|
2152
|
+
v->~GenericSchemaValidator();
|
2153
|
+
StateAllocator::Free(v);
|
2154
|
+
}
|
2155
|
+
|
2156
|
+
virtual void* CreateHasher() {
|
2157
|
+
return new (GetStateAllocator().Malloc(sizeof(HasherType))) HasherType(&GetStateAllocator());
|
2158
|
+
}
|
2159
|
+
|
2160
|
+
virtual uint64_t GetHashCode(void* hasher) {
|
2161
|
+
return static_cast<HasherType*>(hasher)->GetHashCode();
|
2162
|
+
}
|
2163
|
+
|
2164
|
+
virtual void DestroryHasher(void* hasher) {
|
2165
|
+
HasherType* h = static_cast<HasherType*>(hasher);
|
2166
|
+
h->~HasherType();
|
2167
|
+
StateAllocator::Free(h);
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
virtual void* MallocState(size_t size) {
|
2171
|
+
return GetStateAllocator().Malloc(size);
|
2172
|
+
}
|
2173
|
+
|
2174
|
+
virtual void FreeState(void* p) {
|
2175
|
+
StateAllocator::Free(p);
|
2176
|
+
}
|
2177
|
+
|
2178
|
+
private:
|
2179
|
+
typedef typename SchemaType::Context Context;
|
2180
|
+
typedef GenericValue<UTF8<>, StateAllocator> HashCodeArray;
|
2181
|
+
typedef internal::Hasher<EncodingType, StateAllocator> HasherType;
|
2182
|
+
|
2183
|
+
GenericSchemaValidator(
|
2184
|
+
const SchemaDocumentType& schemaDocument,
|
2185
|
+
const SchemaType& root,
|
2186
|
+
const char* basePath, size_t basePathSize,
|
2187
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2188
|
+
unsigned depth,
|
2189
|
+
#endif
|
2190
|
+
StateAllocator* allocator = 0,
|
2191
|
+
size_t schemaStackCapacity = kDefaultSchemaStackCapacity,
|
2192
|
+
size_t documentStackCapacity = kDefaultDocumentStackCapacity)
|
2193
|
+
:
|
2194
|
+
schemaDocument_(&schemaDocument),
|
2195
|
+
root_(root),
|
2196
|
+
stateAllocator_(allocator),
|
2197
|
+
ownStateAllocator_(0),
|
2198
|
+
schemaStack_(allocator, schemaStackCapacity),
|
2199
|
+
documentStack_(allocator, documentStackCapacity),
|
2200
|
+
outputHandler_(0),
|
2201
|
+
error_(kObjectType),
|
2202
|
+
currentError_(),
|
2203
|
+
missingDependents_(),
|
2204
|
+
valid_(true)
|
2205
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2206
|
+
, depth_(depth)
|
2207
|
+
#endif
|
2208
|
+
{
|
2209
|
+
if (basePath && basePathSize)
|
2210
|
+
memcpy(documentStack_.template Push<char>(basePathSize), basePath, basePathSize);
|
2211
|
+
}
|
2212
|
+
|
2213
|
+
StateAllocator& GetStateAllocator() {
|
2214
|
+
if (!stateAllocator_)
|
2215
|
+
stateAllocator_ = ownStateAllocator_ = RAPIDJSON_NEW(StateAllocator)();
|
2216
|
+
return *stateAllocator_;
|
2217
|
+
}
|
2218
|
+
|
2219
|
+
bool BeginValue() {
|
2220
|
+
if (schemaStack_.Empty())
|
2221
|
+
PushSchema(root_);
|
2222
|
+
else {
|
2223
|
+
if (CurrentContext().inArray)
|
2224
|
+
internal::TokenHelper<internal::Stack<StateAllocator>, Ch>::AppendIndexToken(documentStack_, CurrentContext().arrayElementIndex);
|
2225
|
+
|
2226
|
+
if (!CurrentSchema().BeginValue(CurrentContext()))
|
2227
|
+
return false;
|
2228
|
+
|
2229
|
+
SizeType count = CurrentContext().patternPropertiesSchemaCount;
|
2230
|
+
const SchemaType** sa = CurrentContext().patternPropertiesSchemas;
|
2231
|
+
typename Context::PatternValidatorType patternValidatorType = CurrentContext().valuePatternValidatorType;
|
2232
|
+
bool valueUniqueness = CurrentContext().valueUniqueness;
|
2233
|
+
RAPIDJSON_ASSERT(CurrentContext().valueSchema);
|
2234
|
+
PushSchema(*CurrentContext().valueSchema);
|
2235
|
+
|
2236
|
+
if (count > 0) {
|
2237
|
+
CurrentContext().objectPatternValidatorType = patternValidatorType;
|
2238
|
+
ISchemaValidator**& va = CurrentContext().patternPropertiesValidators;
|
2239
|
+
SizeType& validatorCount = CurrentContext().patternPropertiesValidatorCount;
|
2240
|
+
va = static_cast<ISchemaValidator**>(MallocState(sizeof(ISchemaValidator*) * count));
|
2241
|
+
for (SizeType i = 0; i < count; i++)
|
2242
|
+
va[validatorCount++] = CreateSchemaValidator(*sa[i]);
|
2243
|
+
}
|
2244
|
+
|
2245
|
+
CurrentContext().arrayUniqueness = valueUniqueness;
|
2246
|
+
}
|
2247
|
+
return true;
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
bool EndValue() {
|
2251
|
+
if (!CurrentSchema().EndValue(CurrentContext()))
|
2252
|
+
return false;
|
2253
|
+
|
2254
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2255
|
+
GenericStringBuffer<EncodingType> sb;
|
2256
|
+
schemaDocument_->GetPointer(&CurrentSchema()).Stringify(sb);
|
2257
|
+
|
2258
|
+
*documentStack_.template Push<Ch>() = '\0';
|
2259
|
+
documentStack_.template Pop<Ch>(1);
|
2260
|
+
internal::PrintValidatorPointers(depth_, sb.GetString(), documentStack_.template Bottom<Ch>());
|
2261
|
+
#endif
|
2262
|
+
|
2263
|
+
uint64_t h = CurrentContext().arrayUniqueness ? static_cast<HasherType*>(CurrentContext().hasher)->GetHashCode() : 0;
|
2264
|
+
|
2265
|
+
PopSchema();
|
2266
|
+
|
2267
|
+
if (!schemaStack_.Empty()) {
|
2268
|
+
Context& context = CurrentContext();
|
2269
|
+
if (context.valueUniqueness) {
|
2270
|
+
HashCodeArray* a = static_cast<HashCodeArray*>(context.arrayElementHashCodes);
|
2271
|
+
if (!a)
|
2272
|
+
CurrentContext().arrayElementHashCodes = a = new (GetStateAllocator().Malloc(sizeof(HashCodeArray))) HashCodeArray(kArrayType);
|
2273
|
+
for (typename HashCodeArray::ConstValueIterator itr = a->Begin(); itr != a->End(); ++itr)
|
2274
|
+
if (itr->GetUint64() == h) {
|
2275
|
+
DuplicateItems(static_cast<SizeType>(itr - a->Begin()), a->Size());
|
2276
|
+
RAPIDJSON_INVALID_KEYWORD_RETURN(SchemaType::GetUniqueItemsString());
|
2277
|
+
}
|
2278
|
+
a->PushBack(h, GetStateAllocator());
|
2279
|
+
}
|
2280
|
+
}
|
2281
|
+
|
2282
|
+
// Remove the last token of document pointer
|
2283
|
+
while (!documentStack_.Empty() && *documentStack_.template Pop<Ch>(1) != '/')
|
2284
|
+
;
|
2285
|
+
|
2286
|
+
return true;
|
2287
|
+
}
|
2288
|
+
|
2289
|
+
void AppendToken(const Ch* str, SizeType len) {
|
2290
|
+
documentStack_.template Reserve<Ch>(1 + len * 2); // worst case all characters are escaped as two characters
|
2291
|
+
*documentStack_.template PushUnsafe<Ch>() = '/';
|
2292
|
+
for (SizeType i = 0; i < len; i++) {
|
2293
|
+
if (str[i] == '~') {
|
2294
|
+
*documentStack_.template PushUnsafe<Ch>() = '~';
|
2295
|
+
*documentStack_.template PushUnsafe<Ch>() = '0';
|
2296
|
+
}
|
2297
|
+
else if (str[i] == '/') {
|
2298
|
+
*documentStack_.template PushUnsafe<Ch>() = '~';
|
2299
|
+
*documentStack_.template PushUnsafe<Ch>() = '1';
|
2300
|
+
}
|
2301
|
+
else
|
2302
|
+
*documentStack_.template PushUnsafe<Ch>() = str[i];
|
2303
|
+
}
|
2304
|
+
}
|
2305
|
+
|
2306
|
+
RAPIDJSON_FORCEINLINE void PushSchema(const SchemaType& schema) { new (schemaStack_.template Push<Context>()) Context(*this, *this, &schema); }
|
2307
|
+
|
2308
|
+
RAPIDJSON_FORCEINLINE void PopSchema() {
|
2309
|
+
Context* c = schemaStack_.template Pop<Context>(1);
|
2310
|
+
if (HashCodeArray* a = static_cast<HashCodeArray*>(c->arrayElementHashCodes)) {
|
2311
|
+
a->~HashCodeArray();
|
2312
|
+
StateAllocator::Free(a);
|
2313
|
+
}
|
2314
|
+
c->~Context();
|
2315
|
+
}
|
2316
|
+
|
2317
|
+
void AddErrorLocation(ValueType& result, bool parent) {
|
2318
|
+
GenericStringBuffer<EncodingType> sb;
|
2319
|
+
PointerType instancePointer = GetInvalidDocumentPointer();
|
2320
|
+
((parent && instancePointer.GetTokenCount() > 0)
|
2321
|
+
? PointerType(instancePointer.GetTokens(), instancePointer.GetTokenCount() - 1)
|
2322
|
+
: instancePointer).StringifyUriFragment(sb);
|
2323
|
+
ValueType instanceRef(sb.GetString(), static_cast<SizeType>(sb.GetSize() / sizeof(Ch)),
|
2324
|
+
GetStateAllocator());
|
2325
|
+
result.AddMember(GetInstanceRefString(), instanceRef, GetStateAllocator());
|
2326
|
+
sb.Clear();
|
2327
|
+
memcpy(sb.Push(CurrentSchema().GetURI().GetStringLength()),
|
2328
|
+
CurrentSchema().GetURI().GetString(),
|
2329
|
+
CurrentSchema().GetURI().GetStringLength() * sizeof(Ch));
|
2330
|
+
GetInvalidSchemaPointer().StringifyUriFragment(sb);
|
2331
|
+
ValueType schemaRef(sb.GetString(), static_cast<SizeType>(sb.GetSize() / sizeof(Ch)),
|
2332
|
+
GetStateAllocator());
|
2333
|
+
result.AddMember(GetSchemaRefString(), schemaRef, GetStateAllocator());
|
2334
|
+
}
|
2335
|
+
|
2336
|
+
void AddError(ValueType& keyword, ValueType& error) {
|
2337
|
+
typename ValueType::MemberIterator member = error_.FindMember(keyword);
|
2338
|
+
if (member == error_.MemberEnd())
|
2339
|
+
error_.AddMember(keyword, error, GetStateAllocator());
|
2340
|
+
else {
|
2341
|
+
if (member->value.IsObject()) {
|
2342
|
+
ValueType errors(kArrayType);
|
2343
|
+
errors.PushBack(member->value, GetStateAllocator());
|
2344
|
+
member->value = errors;
|
2345
|
+
}
|
2346
|
+
member->value.PushBack(error, GetStateAllocator());
|
2347
|
+
}
|
2348
|
+
}
|
2349
|
+
|
2350
|
+
void AddCurrentError(const typename SchemaType::ValueType& keyword, bool parent = false) {
|
2351
|
+
AddErrorLocation(currentError_, parent);
|
2352
|
+
AddError(ValueType(keyword, GetStateAllocator(), false).Move(), currentError_);
|
2353
|
+
}
|
2354
|
+
|
2355
|
+
void MergeError(ValueType& other) {
|
2356
|
+
for (typename ValueType::MemberIterator it = other.MemberBegin(), end = other.MemberEnd(); it != end; ++it) {
|
2357
|
+
AddError(it->name, it->value);
|
2358
|
+
}
|
2359
|
+
}
|
2360
|
+
|
2361
|
+
void AddNumberError(const typename SchemaType::ValueType& keyword, ValueType& actual, const SValue& expected,
|
2362
|
+
const typename SchemaType::ValueType& (*exclusive)() = 0) {
|
2363
|
+
currentError_.SetObject();
|
2364
|
+
currentError_.AddMember(GetActualString(), actual, GetStateAllocator());
|
2365
|
+
currentError_.AddMember(GetExpectedString(), ValueType(expected, GetStateAllocator()).Move(), GetStateAllocator());
|
2366
|
+
if (exclusive)
|
2367
|
+
currentError_.AddMember(ValueType(exclusive(), GetStateAllocator()).Move(), true, GetStateAllocator());
|
2368
|
+
AddCurrentError(keyword);
|
2369
|
+
}
|
2370
|
+
|
2371
|
+
void AddErrorArray(const typename SchemaType::ValueType& keyword,
|
2372
|
+
ISchemaValidator** subvalidators, SizeType count) {
|
2373
|
+
ValueType errors(kArrayType);
|
2374
|
+
for (SizeType i = 0; i < count; ++i)
|
2375
|
+
errors.PushBack(static_cast<GenericSchemaValidator*>(subvalidators[i])->GetError(), GetStateAllocator());
|
2376
|
+
currentError_.SetObject();
|
2377
|
+
currentError_.AddMember(GetErrorsString(), errors, GetStateAllocator());
|
2378
|
+
AddCurrentError(keyword);
|
2379
|
+
}
|
2380
|
+
|
2381
|
+
const SchemaType& CurrentSchema() const { return *schemaStack_.template Top<Context>()->schema; }
|
2382
|
+
Context& CurrentContext() { return *schemaStack_.template Top<Context>(); }
|
2383
|
+
const Context& CurrentContext() const { return *schemaStack_.template Top<Context>(); }
|
2384
|
+
|
2385
|
+
static const size_t kDefaultSchemaStackCapacity = 1024;
|
2386
|
+
static const size_t kDefaultDocumentStackCapacity = 256;
|
2387
|
+
const SchemaDocumentType* schemaDocument_;
|
2388
|
+
const SchemaType& root_;
|
2389
|
+
StateAllocator* stateAllocator_;
|
2390
|
+
StateAllocator* ownStateAllocator_;
|
2391
|
+
internal::Stack<StateAllocator> schemaStack_; //!< stack to store the current path of schema (BaseSchemaType *)
|
2392
|
+
internal::Stack<StateAllocator> documentStack_; //!< stack to store the current path of validating document (Ch)
|
2393
|
+
OutputHandler* outputHandler_;
|
2394
|
+
ValueType error_;
|
2395
|
+
ValueType currentError_;
|
2396
|
+
ValueType missingDependents_;
|
2397
|
+
bool valid_;
|
2398
|
+
#if RAPIDJSON_SCHEMA_VERBOSE
|
2399
|
+
unsigned depth_;
|
2400
|
+
#endif
|
2401
|
+
};
|
2402
|
+
|
2403
|
+
typedef GenericSchemaValidator<SchemaDocument> SchemaValidator;
|
2404
|
+
|
2405
|
+
///////////////////////////////////////////////////////////////////////////////
|
2406
|
+
// SchemaValidatingReader
|
2407
|
+
|
2408
|
+
//! A helper class for parsing with validation.
|
2409
|
+
/*!
|
2410
|
+
This helper class is a functor, designed as a parameter of \ref GenericDocument::Populate().
|
2411
|
+
|
2412
|
+
\tparam parseFlags Combination of \ref ParseFlag.
|
2413
|
+
\tparam InputStream Type of input stream, implementing Stream concept.
|
2414
|
+
\tparam SourceEncoding Encoding of the input stream.
|
2415
|
+
\tparam SchemaDocumentType Type of schema document.
|
2416
|
+
\tparam StackAllocator Allocator type for stack.
|
2417
|
+
*/
|
2418
|
+
template <
|
2419
|
+
unsigned parseFlags,
|
2420
|
+
typename InputStream,
|
2421
|
+
typename SourceEncoding,
|
2422
|
+
typename SchemaDocumentType = SchemaDocument,
|
2423
|
+
typename StackAllocator = CrtAllocator>
|
2424
|
+
class SchemaValidatingReader {
|
2425
|
+
public:
|
2426
|
+
typedef typename SchemaDocumentType::PointerType PointerType;
|
2427
|
+
typedef typename InputStream::Ch Ch;
|
2428
|
+
typedef GenericValue<SourceEncoding, StackAllocator> ValueType;
|
2429
|
+
|
2430
|
+
//! Constructor
|
2431
|
+
/*!
|
2432
|
+
\param is Input stream.
|
2433
|
+
\param sd Schema document.
|
2434
|
+
*/
|
2435
|
+
SchemaValidatingReader(InputStream& is, const SchemaDocumentType& sd) : is_(is), sd_(sd), invalidSchemaKeyword_(), error_(kObjectType), isValid_(true) {}
|
2436
|
+
|
2437
|
+
template <typename Handler>
|
2438
|
+
bool operator()(Handler& handler) {
|
2439
|
+
GenericReader<SourceEncoding, typename SchemaDocumentType::EncodingType, StackAllocator> reader;
|
2440
|
+
GenericSchemaValidator<SchemaDocumentType, Handler> validator(sd_, handler);
|
2441
|
+
parseResult_ = reader.template Parse<parseFlags>(is_, validator);
|
2442
|
+
|
2443
|
+
isValid_ = validator.IsValid();
|
2444
|
+
if (isValid_) {
|
2445
|
+
invalidSchemaPointer_ = PointerType();
|
2446
|
+
invalidSchemaKeyword_ = 0;
|
2447
|
+
invalidDocumentPointer_ = PointerType();
|
2448
|
+
error_.SetObject();
|
2449
|
+
}
|
2450
|
+
else {
|
2451
|
+
invalidSchemaPointer_ = validator.GetInvalidSchemaPointer();
|
2452
|
+
invalidSchemaKeyword_ = validator.GetInvalidSchemaKeyword();
|
2453
|
+
invalidDocumentPointer_ = validator.GetInvalidDocumentPointer();
|
2454
|
+
error_.CopyFrom(validator.GetError(), allocator_);
|
2455
|
+
}
|
2456
|
+
|
2457
|
+
return parseResult_;
|
2458
|
+
}
|
2459
|
+
|
2460
|
+
const ParseResult& GetParseResult() const { return parseResult_; }
|
2461
|
+
bool IsValid() const { return isValid_; }
|
2462
|
+
const PointerType& GetInvalidSchemaPointer() const { return invalidSchemaPointer_; }
|
2463
|
+
const Ch* GetInvalidSchemaKeyword() const { return invalidSchemaKeyword_; }
|
2464
|
+
const PointerType& GetInvalidDocumentPointer() const { return invalidDocumentPointer_; }
|
2465
|
+
const ValueType& GetError() const { return error_; }
|
2466
|
+
|
2467
|
+
private:
|
2468
|
+
InputStream& is_;
|
2469
|
+
const SchemaDocumentType& sd_;
|
2470
|
+
|
2471
|
+
ParseResult parseResult_;
|
2472
|
+
PointerType invalidSchemaPointer_;
|
2473
|
+
const Ch* invalidSchemaKeyword_;
|
2474
|
+
PointerType invalidDocumentPointer_;
|
2475
|
+
StackAllocator allocator_;
|
2476
|
+
ValueType error_;
|
2477
|
+
bool isValid_;
|
2478
|
+
};
|
2479
|
+
|
2480
|
+
RAPIDJSON_NAMESPACE_END
|
2481
|
+
RAPIDJSON_DIAG_POP
|
2482
|
+
|
2483
|
+
#endif // RAPIDJSON_SCHEMA_H_
|