aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/lexer.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/yson/lexer.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/lexer.cpp')
-rw-r--r--library/cpp/yson/lexer.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/yson/lexer.cpp b/library/cpp/yson/lexer.cpp
index 5eae94273b..da0021cc4f 100644
--- a/library/cpp/yson/lexer.cpp
+++ b/library/cpp/yson/lexer.cpp
@@ -5,39 +5,39 @@
#include <util/generic/ptr.h>
namespace NYson {
- ////////////////////////////////////////////////////////////////////////////////
-
- class TStatelessLexer::TImpl {
- private:
- THolder<TStatelessYsonLexerImplBase> Impl;
-
- public:
- TImpl(bool enableLinePositionInfo = false)
- : Impl(enableLinePositionInfo
- ? static_cast<TStatelessYsonLexerImplBase*>(new TStatelesYsonLexerImpl<true>())
- : static_cast<TStatelessYsonLexerImplBase*>(new TStatelesYsonLexerImpl<false>()))
- {
- }
-
- size_t GetToken(const TStringBuf& data, TToken* token) {
- return Impl->GetToken(data, token);
- }
- };
-
- ////////////////////////////////////////////////////////////////////////////////
-
- TStatelessLexer::TStatelessLexer()
- : Impl(new TImpl())
+ ////////////////////////////////////////////////////////////////////////////////
+
+ class TStatelessLexer::TImpl {
+ private:
+ THolder<TStatelessYsonLexerImplBase> Impl;
+
+ public:
+ TImpl(bool enableLinePositionInfo = false)
+ : Impl(enableLinePositionInfo
+ ? static_cast<TStatelessYsonLexerImplBase*>(new TStatelesYsonLexerImpl<true>())
+ : static_cast<TStatelessYsonLexerImplBase*>(new TStatelesYsonLexerImpl<false>()))
+ {
+ }
+
+ size_t GetToken(const TStringBuf& data, TToken* token) {
+ return Impl->GetToken(data, token);
+ }
+ };
+
+ ////////////////////////////////////////////////////////////////////////////////
+
+ TStatelessLexer::TStatelessLexer()
+ : Impl(new TImpl())
{
}
- TStatelessLexer::~TStatelessLexer() {
- }
+ TStatelessLexer::~TStatelessLexer() {
+ }
- size_t TStatelessLexer::GetToken(const TStringBuf& data, TToken* token) {
- return Impl->GetToken(data, token);
- }
+ size_t TStatelessLexer::GetToken(const TStringBuf& data, TToken* token) {
+ return Impl->GetToken(data, token);
+ }
- ////////////////////////////////////////////////////////////////////////////////
+ ////////////////////////////////////////////////////////////////////////////////
} // namespace NYson