From 02605187158ebf49d296bf94f4ba2f7412419f13 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 21 Sep 2021 00:16:07 +0100 Subject: [PATCH 1/4] Document skipBom in CharReaderBuilder --- include/json/reader.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/json/reader.h b/include/json/reader.h index 917546608..2a532b697 100644 --- a/include/json/reader.h +++ b/include/json/reader.h @@ -324,6 +324,8 @@ class JSON_API CharReaderBuilder : public CharReader::Factory { * - `"allowSpecialFloats": false or true` * - If true, special float values (NaNs and infinities) are allowed and * their values are lossfree restorable. + * - `"skipBom": false or true` + * - If true, if the input starts with the Unicode byte order mark (BOM), it is skipped. * * You can examine 'settings_` yourself to see the defaults. You can also * write and read them just like any JSON Value. From c5e74510ed7a97e287f28f8e7a2a201d814713d9 Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Tue, 21 Sep 2021 01:51:26 -0400 Subject: [PATCH 2/4] wrap comment --- include/json/reader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/json/reader.h b/include/json/reader.h index 2a532b697..2c7b7bf46 100644 --- a/include/json/reader.h +++ b/include/json/reader.h @@ -325,7 +325,8 @@ class JSON_API CharReaderBuilder : public CharReader::Factory { * - If true, special float values (NaNs and infinities) are allowed and * their values are lossfree restorable. * - `"skipBom": false or true` - * - If true, if the input starts with the Unicode byte order mark (BOM), it is skipped. + * - If true, if the input starts with the Unicode byte order mark (BOM), + it is skipped. * * You can examine 'settings_` yourself to see the defaults. You can also * write and read them just like any JSON Value. From 1aa4b3d6a572911a4094d5d1b02987e781600a9a Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Tue, 21 Sep 2021 01:53:06 -0400 Subject: [PATCH 3/4] asterisk on newline --- include/json/reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/json/reader.h b/include/json/reader.h index 2c7b7bf46..85964295a 100644 --- a/include/json/reader.h +++ b/include/json/reader.h @@ -326,7 +326,7 @@ class JSON_API CharReaderBuilder : public CharReader::Factory { * their values are lossfree restorable. * - `"skipBom": false or true` * - If true, if the input starts with the Unicode byte order mark (BOM), - it is skipped. + * it is skipped. * * You can examine 'settings_` yourself to see the defaults. You can also * write and read them just like any JSON Value. From efe032cc3ae116e9b4ff4a750d5192aab08cf324 Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Tue, 21 Sep 2021 01:53:42 -0400 Subject: [PATCH 4/4] adjust --- include/json/reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/json/reader.h b/include/json/reader.h index 85964295a..250468f1b 100644 --- a/include/json/reader.h +++ b/include/json/reader.h @@ -326,7 +326,7 @@ class JSON_API CharReaderBuilder : public CharReader::Factory { * their values are lossfree restorable. * - `"skipBom": false or true` * - If true, if the input starts with the Unicode byte order mark (BOM), - * it is skipped. + * it is skipped. * * You can examine 'settings_` yourself to see the defaults. You can also * write and read them just like any JSON Value.