makeStringUnion

Returns a new (deterministic and minimal) automaton that accepts the union of the given collection of BytesRefs representing UTF-8 encoded strings.

Return

An Automaton accepting all input strings. The resulting automaton is codepoint based (full unicode codepoints on transitions).

Parameters

utf8Strings

The input strings, UTF-8 encoded. The collection must be in sorted order.


Returns a new (deterministic and minimal) automaton that accepts the union of the given iterator of BytesRefs representing UTF-8 encoded strings.

Return

An Automaton accepting all input strings. The resulting automaton is codepoint based (full unicode codepoints on transitions).

Parameters

utf8Strings

The input strings, UTF-8 encoded. The iterator must be in sorted order.