diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /library/cpp/regex/hyperscan/hyperscan.h | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex/hyperscan/hyperscan.h')
-rw-r--r-- | library/cpp/regex/hyperscan/hyperscan.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/regex/hyperscan/hyperscan.h b/library/cpp/regex/hyperscan/hyperscan.h index 1c8f4043892..8256155f570 100644 --- a/library/cpp/regex/hyperscan/hyperscan.h +++ b/library/cpp/regex/hyperscan/hyperscan.h @@ -6,7 +6,7 @@ #include <util/generic/strbuf.h> #include <util/generic/vector.h> #include <util/generic/yexception.h> -#include <util/system/cpu_id.h> +#include <util/system/cpu_id.h> namespace NHyperscan { using TCPUFeatures = decltype(hs_platform_info_t::cpu_features); @@ -30,7 +30,7 @@ namespace NHyperscan { }; - namespace NPrivate { + namespace NPrivate { enum class ERuntime { Core2 = 0, Corei7 = 1, @@ -44,9 +44,9 @@ namespace NHyperscan { hs_platform_info_t MakePlatformInfo(TCPUFeatures cpuFeatures); - struct TImpl { + struct TImpl { hs_error_t (*AllocScratch)(const hs_database_t* db, hs_scratch_t** scratch); - + hs_error_t (*Scan)(const hs_database_t* db, const char* data, unsigned length, unsigned flags, hs_scratch_t* scratch, match_event_handler onEvent, void* userCtx); @@ -58,7 +58,7 @@ namespace NHyperscan { TImpl() : TImpl(DetectCurrentRuntime()) {} explicit TImpl(ERuntime runtime); - }; + }; TDatabase Compile(const TStringBuf& regex, unsigned int flags, hs_platform_info_t* platform); @@ -114,8 +114,8 @@ namespace NHyperscan { const TScratch& scratch, const TStringBuf& text, const TImpl& impl); - } - + } + TDatabase Compile(const TStringBuf& regex, unsigned int flags); TDatabase Compile(const TStringBuf& regex, unsigned int flags, TCPUFeatures cpuFeatures); |