From 334461b421364baf46732d3915b613e568a22b51 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Sun, 28 Feb 2016 18:28:19 +0100 Subject: [PATCH] Added Hasher::Number() --- include/rapidjson/schema.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 9b033af..7a362d5 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -183,6 +183,11 @@ public: return WriteNumber(n); } + bool Number(const Ch* str, SizeType len, bool) { + WriteBuffer(kNumberType, str, len * sizeof(Ch)); + return true; + } + bool String(const Ch* str, SizeType len, bool) { WriteBuffer(kStringType, str, len * sizeof(Ch)); return true;