makeBinaryStringUnion

Returns a new (deterministic and minimal) automaton that accepts the union of the given collection of BytesRefs representing UTF-8 encoded strings. The resulting automaton will be built in a binary representation.

Return

An Automaton accepting all input strings. The resulting automaton is binary based (UTF-8 encoded byte transition labels).

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. The resulting automaton will be built in a binary representation.

Return

An Automaton accepting all input strings. The resulting automaton is binary based (UTF-8 encoded byte transition labels).

Parameters

utf8Strings

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