diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:45 +0300 |
commit | 9123176b341b6f2658cff5132482b8237c1416c8 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/regex/pire/regexp.h | |
parent | 59e19371de37995fcb36beb16cd6ec030af960bc (diff) | |
download | ydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/pire/regexp.h')
-rw-r--r-- | library/cpp/regex/pire/regexp.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/regex/pire/regexp.h b/library/cpp/regex/pire/regexp.h index 7e4e3bd9caf..94bba4064b7 100644 --- a/library/cpp/regex/pire/regexp.h +++ b/library/cpp/regex/pire/regexp.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "pire.h" @@ -35,16 +35,16 @@ namespace NRegExp { return *this; } - inline TOptions& SetAndNotSupport(bool andNotSupport) noexcept { - AndNotSupport = andNotSupport; - return *this; - } - - bool CaseInsensitive = false; - bool Surround = false; + inline TOptions& SetAndNotSupport(bool andNotSupport) noexcept { + AndNotSupport = andNotSupport; + return *this; + } + + bool CaseInsensitive = false; + bool Surround = false; TMaybe<size_t> CapturePos; - ECharset Charset = CODES_UNKNOWN; - bool AndNotSupport = false; + ECharset Charset = CODES_UNKNOWN; + bool AndNotSupport = false; }; static inline NPire::TFsm Parse(const TStringBuf& regexp, @@ -74,10 +74,10 @@ namespace NRegExp { lexer.AddFeature(NPire::NFeatures::Capture(*opts.CapturePos)); } - if (opts.AndNotSupport) { - lexer.AddFeature(NPire::NFeatures::AndNotSupport()); - } - + if (opts.AndNotSupport) { + lexer.AddFeature(NPire::NFeatures::AndNotSupport()); + } + switch (opts.Charset) { case CODES_UNKNOWN: break; |