diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/hyperscan/src/grey.cpp | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/grey.cpp')
-rw-r--r-- | contrib/libs/hyperscan/src/grey.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/libs/hyperscan/src/grey.cpp b/contrib/libs/hyperscan/src/grey.cpp index 5637a363dd..86a93d25aa 100644 --- a/contrib/libs/hyperscan/src/grey.cpp +++ b/contrib/libs/hyperscan/src/grey.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018, Intel Corporation + * Copyright (c) 2015-2018, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -82,7 +82,7 @@ Grey::Grey(void) : onlyOneOutfix(false), allowShermanStates(true), allowMcClellan8(true), - allowWideStates(true), // enable wide state for McClellan8 + allowWideStates(true), // enable wide state for McClellan8 highlanderPruneDFA(true), minimizeDFA(true), accelerateDFA(true), @@ -198,15 +198,15 @@ void applyGreyOverrides(Grey *g, const string &s) { string::const_iterator ve = find(ke, pe, ';'); - unsigned int value = 0; - try { - value = lexical_cast<unsigned int>(string(ke + 1, ve)); - } catch (boost::bad_lexical_cast &e) { - printf("Invalid grey override key %s:%s\n", key.c_str(), - string(ke + 1, ve).c_str()); - invalid_key_seen = true; - break; - } + unsigned int value = 0; + try { + value = lexical_cast<unsigned int>(string(ke + 1, ve)); + } catch (boost::bad_lexical_cast &e) { + printf("Invalid grey override key %s:%s\n", key.c_str(), + string(ke + 1, ve).c_str()); + invalid_key_seen = true; + break; + } bool done = false; /* surely there exists a nice template to go with this macro to make @@ -260,7 +260,7 @@ void applyGreyOverrides(Grey *g, const string &s) { G_UPDATE(onlyOneOutfix); G_UPDATE(allowShermanStates); G_UPDATE(allowMcClellan8); - G_UPDATE(allowWideStates); + G_UPDATE(allowWideStates); G_UPDATE(highlanderPruneDFA); G_UPDATE(minimizeDFA); G_UPDATE(accelerateDFA); |