Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix after master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Dronplane committed Jan 11, 2024
1 parent 03b5d6c commit 159dbfb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/analysis/multi_delimited_token_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,14 @@ automaton MakeStringTrie(const std::vector<bstring>& strings) {
last_state = next_state;
last_char = k;
} else if (last_state != next_state) {
a.EmplaceArc(n->state_id, range_label::fromRange(last_char, k - 1),
a.EmplaceArc(n->state_id, RangeLabel::From(last_char, k - 1),
last_state);
last_state = next_state;
last_char = k;
}
}

a.EmplaceArc(n->state_id, range_label::fromRange(last_char, 255),
last_state);
a.EmplaceArc(n->state_id, RangeLabel::From(last_char, 255), last_state);
}

return a;
Expand All @@ -304,7 +303,7 @@ class MultiDelimitedTokenStreamGeneric final
public:
explicit MultiDelimitedTokenStreamGeneric(const Options& opts)
: autom(MakeStringTrie(opts.delimiters)),
matcher(make_automaton_matcher(autom)) {
matcher(MakeAutomatonMatcher(autom)) {
// fst::drawFst(automaton_, std::cout);

#ifdef IRESEARCH_DEBUG
Expand Down

0 comments on commit 159dbfb

Please sign in to comment.