From 22d22145d2f8a3aa940e67fefdec4f6024f789fb Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Mon, 29 Feb 2016 18:05:24 +0100 Subject: [PATCH] Added GenericSchemaValidator::RawNumber() --- include/rapidjson/schema.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 752767e..26da8a6 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -1684,6 +1684,8 @@ RAPIDJSON_MULTILINEMACRO_END bool Int64(int64_t i) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Int64, (CurrentContext(), i), (i)); } bool Uint64(uint64_t u) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Uint64, (CurrentContext(), u), (u)); } bool Double(double d) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(Double, (CurrentContext(), d), (d)); } + bool RawNumber(const Ch* str, SizeType length, bool copy) + { RAPIDJSON_SCHEMA_HANDLE_VALUE_(String, (CurrentContext(), str, length, copy), (str, length, copy)); } bool String(const Ch* str, SizeType length, bool copy) { RAPIDJSON_SCHEMA_HANDLE_VALUE_(String, (CurrentContext(), str, length, copy), (str, length, copy)); }