aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/yson_string/format.h
blob: 2efd4fa39af9bb0a89e205e3e305e7af26ac69f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once

namespace NYT::NYson::NDetail {

////////////////////////////////////////////////////////////////////////////////

//! Indicates the beginning of a list.
constexpr char BeginListSymbol = '[';
//! Indicates the end of a list.
constexpr char EndListSymbol = ']';

//! Indicates the beginning of a map.
constexpr char BeginMapSymbol = '{';
//! Indicates the end of a map.
constexpr char EndMapSymbol = '}';

//! Indicates the beginning of an attribute map.
constexpr char BeginAttributesSymbol = '<';
//! Indicates the end of an attribute map.
constexpr char EndAttributesSymbol = '>';

//! Separates items in lists, maps, attributes.
constexpr char ItemSeparatorSymbol = ';';
//! Separates keys from values in maps.
constexpr char KeyValueSeparatorSymbol = '=';

//! Indicates an entity.
constexpr char EntitySymbol = '#';
//! Marks the beginning of a binary string literal.
constexpr char StringMarker = '\x01';
//! Marks the beginning of a binary i64 literal.
constexpr char Int64Marker = '\x02';
//! Marks the beginning of a binary double literal.
constexpr char DoubleMarker = '\x03';
//! Marks |false| boolean value.
constexpr char FalseMarker = '\x04';
//! Marks |true| boolean value.
constexpr char TrueMarker = '\x05';
//! Marks the beginning of a binary ui64 literal.
constexpr char Uint64Marker = '\x06';

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NYson::NDetail