aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/hyperscan/hyperscan.h
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:11 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:11 +0300
commit5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch)
tree339adc63bce23800021202ae4a8328a843dc447a /library/cpp/regex/hyperscan/hyperscan.h
parent1aeb9a455974457866f78722ad98114bafc84e8a (diff)
downloadydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex/hyperscan/hyperscan.h')
-rw-r--r--library/cpp/regex/hyperscan/hyperscan.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/regex/hyperscan/hyperscan.h b/library/cpp/regex/hyperscan/hyperscan.h
index 8256155f570..1c8f4043892 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);