From 1c087b77cb7eb40a40aaf1d0f28feedc2d6e42ee Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Wed, 15 Jun 2016 09:46:30 +0800 Subject: [PATCH] Fix #650 SAX documentation bug --- doc/sax.md | 2 +- doc/sax.zh-cn.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/sax.md b/doc/sax.md index 9d4f20229..5b36d0557 100644 --- a/doc/sax.md +++ b/doc/sax.md @@ -59,7 +59,7 @@ These events can be easily matched with the JSON, except some event parameters n using namespace rapidjson; using namespace std; -struct MyHandler { +struct MyHandler : public BaseReaderHandler, MyHandler> { bool Null() { cout << "Null()" << endl; return true; } bool Bool(bool b) { cout << "Bool(" << boolalpha << b << ")" << endl; return true; } bool Int(int i) { cout << "Int(" << i << ")" << endl; return true; } diff --git a/doc/sax.zh-cn.md b/doc/sax.zh-cn.md index b66957c3e..7b8aabe43 100644 --- a/doc/sax.zh-cn.md +++ b/doc/sax.zh-cn.md @@ -59,7 +59,7 @@ EndObject(7) using namespace rapidjson; using namespace std; -struct MyHandler { +struct MyHandler : public BaseReaderHandler, MyHandler> { bool Null() { cout << "Null()" << endl; return true; } bool Bool(bool b) { cout << "Bool(" << boolalpha << b << ")" << endl; return true; } bool Int(int i) { cout << "Int(" << i << ")" << endl; return true; } @@ -106,6 +106,7 @@ class Handler { bool Int64(int64_t i); bool Uint64(uint64_t i); bool Double(double d); + bool RawNumber(const Ch* str, SizeType length, bool copy); bool String(const Ch* str, SizeType length, bool copy); bool StartObject(); bool Key(const Ch* str, SizeType length, bool copy);