Class ByteRunAutomaton
Automaton representation for matching UTF-8 byte[].
Inherited Members
Namespace: Lucene.Net.Util.Automaton
Assembly: Lucene.Net.dll
Syntax
public class ByteRunAutomaton : RunAutomaton
Constructors
ByteRunAutomaton(Automaton)
Automaton representation for matching UTF-8 byte[].
Declaration
public ByteRunAutomaton(Automaton a)
Parameters
| Type | Name | Description |
|---|---|---|
| Automaton | a |
ByteRunAutomaton(Automaton, bool)
Expert: if utf8 is true, the input is already byte-based
Declaration
public ByteRunAutomaton(Automaton a, bool utf8)
Parameters
| Type | Name | Description |
|---|---|---|
| Automaton | a | |
| bool | utf8 |
Methods
Run(byte[], int, int)
Returns true if the given byte array is accepted by this automaton.
Declaration
public virtual bool Run(byte[] s, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | s | |
| int | offset | |
| int | length |
Returns
| Type | Description |
|---|---|
| bool |