22 namespace Lucene.Net.Index
35 internal char[] termBuffer;
38 int len = text.Length;
39 if (termBuffer == null || termBuffer.Length < 1 + len)
40 termBuffer =
new char[
ArrayUtil.GetNextSize(1 + len)];
41 for (
int i = 0; i < len; i++)
43 termBuffer[i] = (char) text[i];
45 termBuffer[len] = (char) (0xffff);
46 return AddTerm(termBuffer, 0);
50 internal abstract void Finish();