Method MakeStringUnion
MakeStringUnion(ICollection<BytesRef>)
Returns a new (deterministic and minimal) automaton that accepts the union of the given collection of BytesRefs representing UTF-8 encoded strings.
Declaration
public static Automaton MakeStringUnion(ICollection<BytesRef> utf8Strings)
Parameters
Type | Name | Description |
---|---|---|
ICollection<BytesRef> | utf8Strings | The input strings, UTF-8 encoded. The collection must be in sorted order. |
Returns
Type | Description |
---|---|
Automaton | An Automaton accepting all input strings. The resulting automaton is codepoint based (full unicode codepoints on transitions). |