diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/regex/pire/regexp.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 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 94bba4064b..7e4e3bd9ca 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; |