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 /contrib/libs/hyperscan/src/nfa/shufticompile.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 'contrib/libs/hyperscan/src/nfa/shufticompile.h')
-rw-r--r-- | contrib/libs/hyperscan/src/nfa/shufticompile.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/libs/hyperscan/src/nfa/shufticompile.h b/contrib/libs/hyperscan/src/nfa/shufticompile.h index 59b9c38dff..771d298939 100644 --- a/contrib/libs/hyperscan/src/nfa/shufticompile.h +++ b/contrib/libs/hyperscan/src/nfa/shufticompile.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -35,7 +35,7 @@ #include "ue2common.h" #include "util/charreach.h" -#include "util/flat_containers.h" +#include "util/flat_containers.h" #include <utility> @@ -48,15 +48,15 @@ namespace ue2 { * * Note: always able to construct masks for 8 or fewer characters. */ -int shuftiBuildMasks(const CharReach &chars, u8 *lo, u8 *hi); +int shuftiBuildMasks(const CharReach &chars, u8 *lo, u8 *hi); -/** \brief Double-byte variant - * - * Returns false if we are unable to build the masks (too many buckets required) - */ -bool shuftiBuildDoubleMasks(const CharReach &onechar, +/** \brief Double-byte variant + * + * Returns false if we are unable to build the masks (too many buckets required) + */ +bool shuftiBuildDoubleMasks(const CharReach &onechar, const flat_set<std::pair<u8, u8>> &twochar, - u8 *lo1, u8 *hi1, u8 *lo2, u8 *hi2); + u8 *lo1, u8 *hi1, u8 *lo2, u8 *hi2); #ifdef DUMP_SUPPORT @@ -64,7 +64,7 @@ bool shuftiBuildDoubleMasks(const CharReach &onechar, * \brief Dump code: returns a CharReach with the reach that would match this * shufti. */ -CharReach shufti2cr(const u8 *lo, const u8 *hi); +CharReach shufti2cr(const u8 *lo, const u8 *hi); #endif // DUMP_SUPPORT |