aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authorshindo <shindo@yandex-team.ru>2022-02-10 16:47:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:21 +0300
commitd51630a60070d3c63b5f11ad28bc35c3c347637e (patch)
treedc06dffc43df75f5ac5fea14c2a80a6b61c1ca31 /contrib/libs
parentda8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e (diff)
downloadydb-d51630a60070d3c63b5f11ad28bc35c3c347637e.tar.gz
Restoring authorship annotation for <shindo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/rapidjson/include/rapidjson/writer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/rapidjson/include/rapidjson/writer.h b/contrib/libs/rapidjson/include/rapidjson/writer.h
index 68e14d9fd2..b9df80af44 100644
--- a/contrib/libs/rapidjson/include/rapidjson/writer.h
+++ b/contrib/libs/rapidjson/include/rapidjson/writer.h
@@ -66,7 +66,7 @@ enum WriteFlag {
kWriteNoFlags = 0, //!< No flags are set.
kWriteValidateEncodingFlag = 1, //!< Validate encoding of JSON strings.
kWriteNanAndInfFlag = 2, //!< Allow writing of Infinity, -Infinity and NaN.
- kWriteNoEscapeSlashFlag = 4, //!< Disable escaping of '/'.
+ kWriteNoEscapeSlashFlag = 4, //!< Disable escaping of '/'.
kWriteDefaultFlags = RAPIDJSON_WRITE_DEFAULT_FLAGS //!< Default write flags. Can be customized by defining RAPIDJSON_WRITE_DEFAULT_FLAGS
};
@@ -374,7 +374,7 @@ protected:
//0 1 2 3 4 5 6 7 8 9 A B C D E F
'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'b', 't', 'n', 'u', 'f', 'r', 'u', 'u', // 00
'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', // 10
- 0, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20
+ 0, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20
Z16, Z16, // 30~4F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'\\', 0, 0, 0, // 50
Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16 // 60~FF
@@ -432,11 +432,11 @@ protected:
PutUnsafe(*os_, hexDigits[static_cast<unsigned char>(c) & 0xF]);
}
}
- else if (RAPIDJSON_UNLIKELY(c == '/' && !(writeFlags & kWriteNoEscapeSlashFlag))) {
- is.Take();
- PutUnsafe(*os_, '\\');
- PutUnsafe(*os_, '/');
- }
+ else if (RAPIDJSON_UNLIKELY(c == '/' && !(writeFlags & kWriteNoEscapeSlashFlag))) {
+ is.Take();
+ PutUnsafe(*os_, '\\');
+ PutUnsafe(*os_, '/');
+ }
else if (RAPIDJSON_UNLIKELY(!(writeFlags & kWriteValidateEncodingFlag ?
Transcoder<SourceEncoding, TargetEncoding>::Validate(is, *os_) :
Transcoder<SourceEncoding, TargetEncoding>::TranscodeUnsafe(is, *os_))))