diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2023-01-10 11:40:09 +0100 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2023-01-10 11:40:09 +0100 |
| commit | fd1f2b36e95c03625297b7b8cba3b1a04a0cc0ed (patch) | |
| tree | b143619750b90fbfa45a98be9ea56904d1a7129d /string/ahoCorasick.cpp | |
| parent | 8faa84ca282d51e9ce4fef535e68325adabcebad (diff) | |
change whitespaces
Diffstat (limited to 'string/ahoCorasick.cpp')
| -rw-r--r-- | string/ahoCorasick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string/ahoCorasick.cpp b/string/ahoCorasick.cpp index bfde5b6..41bd788 100644 --- a/string/ahoCorasick.cpp +++ b/string/ahoCorasick.cpp @@ -5,7 +5,7 @@ struct AhoCorasick { int suffix, exit, character, parent; vector<int> nxt, patterns; vert(int c, int p) : suffix(-1), exit(-1), - character(c), nxt(ALPHABET_SIZE, -1), parent(p) {} + character(c), nxt(ALPHABET_SIZE, -1), parent(p) {} }; vector<vert> aho; @@ -29,7 +29,7 @@ struct AhoCorasick { if (aho[v].suffix == -1) { if (v == 0 || aho[v].parent == 0) aho[v].suffix = 0; else aho[v].suffix = go(getSuffix(aho[v].parent), - aho[v].character); + aho[v].character); } return aho[v].suffix; } |
