aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/scimpl_defs.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/scheme/scimpl_defs.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme/scimpl_defs.h')
-rw-r--r--library/cpp/scheme/scimpl_defs.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/scheme/scimpl_defs.h b/library/cpp/scheme/scimpl_defs.h
index e6420194c8..f3dd66b437 100644
--- a/library/cpp/scheme/scimpl_defs.h
+++ b/library/cpp/scheme/scimpl_defs.h
@@ -20,17 +20,17 @@ namespace NSc {
namespace NDefinitions {
const size_t POOL_BLOCK_SIZE = 4000; // leave 96 bytes for overhead
- struct TPool: public TAtomicRefCount<TPool> {
+ struct TPool: public TAtomicRefCount<TPool> {
TMemoryPool Pool;
TPool(size_t blsz = POOL_BLOCK_SIZE, TMemoryPool::IGrowPolicy* grow = TMemoryPool::TExpGrow::Instance())
: Pool(blsz, grow)
- {
- }
+ {
+ }
- TMemoryPool* Get() {
- return &Pool;
- }
+ TMemoryPool* Get() {
+ return &Pool;
+ }
TStringBuf AppendBuf(const TStringBuf& strb) {
return Pool.AppendCString(strb);
@@ -59,11 +59,11 @@ namespace NSc {
TSchemeParseException(size_t off, const TString& reason)
: Offset(off)
, Reason(reason)
- {
- }
+ {
+ }
};
- struct TJsonOpts: public NJson::TJsonReaderConfig {
+ struct TJsonOpts: public NJson::TJsonReaderConfig {
enum EJsonOpts {
JO_DEFAULT = 0, // just dump json, used to be default, actually
JO_SORT_KEYS = 1, // sort dict keys to make output more predictable
@@ -71,8 +71,8 @@ namespace NSc {
// will skip nonunicode dict keys and replace nonunicode values with nulls
JO_FORMAT = 8, // format json
- JO_PARSER_STRICT_JSON = 16, // strict standard json
- JO_PARSER_STRICT_UTF8 = 32, // strict utf8
+ JO_PARSER_STRICT_JSON = 16, // strict standard json
+ JO_PARSER_STRICT_UTF8 = 32, // strict utf8
JO_PARSER_DISALLOW_COMMENTS = 64,
JO_PARSER_DISALLOW_DUPLICATE_KEYS = 128,
@@ -107,14 +107,14 @@ namespace NSc {
public:
static bool NumberPolicySafe(double&); // skip if nan or inf
- static bool NumberPolicyUnsafe(double&) {
- return true;
- }
+ static bool NumberPolicyUnsafe(double&) {
+ return true;
+ }
static bool StringPolicySafe(TStringBuf&); // skip if not utf8
- static bool StringPolicyUnsafe(TStringBuf&) {
- return true;
- }
+ static bool StringPolicyUnsafe(TStringBuf&) {
+ return true;
+ }
};
struct TProtoOpts {