format.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. namespace NYT::NYson::NDetail {
  3. ////////////////////////////////////////////////////////////////////////////////
  4. //! Indicates the beginning of a list.
  5. constexpr char BeginListSymbol = '[';
  6. //! Indicates the end of a list.
  7. constexpr char EndListSymbol = ']';
  8. //! Indicates the beginning of a map.
  9. constexpr char BeginMapSymbol = '{';
  10. //! Indicates the end of a map.
  11. constexpr char EndMapSymbol = '}';
  12. //! Indicates the beginning of an attribute map.
  13. constexpr char BeginAttributesSymbol = '<';
  14. //! Indicates the end of an attribute map.
  15. constexpr char EndAttributesSymbol = '>';
  16. //! Separates items in lists, maps, attributes.
  17. constexpr char ItemSeparatorSymbol = ';';
  18. //! Separates keys from values in maps.
  19. constexpr char KeyValueSeparatorSymbol = '=';
  20. //! Indicates an entity.
  21. constexpr char EntitySymbol = '#';
  22. //! Marks the beginning of a binary string literal.
  23. constexpr char StringMarker = '\x01';
  24. //! Marks the beginning of a binary i64 literal.
  25. constexpr char Int64Marker = '\x02';
  26. //! Marks the beginning of a binary double literal.
  27. constexpr char DoubleMarker = '\x03';
  28. //! Marks |false| boolean value.
  29. constexpr char FalseMarker = '\x04';
  30. //! Marks |true| boolean value.
  31. constexpr char TrueMarker = '\x05';
  32. //! Marks the beginning of a binary ui64 literal.
  33. constexpr char Uint64Marker = '\x06';
  34. ////////////////////////////////////////////////////////////////////////////////
  35. } // namespace NYT::NYson::NDetail