Lucene.Net.Search.TestRegexpRandom2.DumbRegexpQuery.SimpleAutomatonTermsEnum.Accept C# (CSharp) Method

Accept() protected method

protected Accept ( BytesRef term ) : AcceptStatus
term BytesRef
return AcceptStatus
                protected internal override AcceptStatus Accept(BytesRef term)
                {
                    UnicodeUtil.UTF8toUTF16(term.Bytes, term.Offset, term.Length, Utf16);
                    return RunAutomaton.Run(Utf16.Chars, 0, Utf16.Length) ? AcceptStatus.YES : AcceptStatus.NO;
                }
            }
TestRegexpRandom2.DumbRegexpQuery.SimpleAutomatonTermsEnum