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
commit64de01e9a049f96a9e2d43aff48d10621ab47d81 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/libs
parentd51630a60070d3c63b5f11ad28bc35c3c347637e (diff)
downloadydb-64de01e9a049f96a9e2d43aff48d10621ab47d81.tar.gz
Restoring authorship annotation for <shindo@yandex-team.ru>. Commit 2 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 b9df80af44..68e14d9fd2 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_))))