public ICharTermAttribute SetEmpty()
{
TermLength = 0;
return this;
}
public virtual void TestToString() { char[] b = new char[] { 'a', 'l', 'o', 'h', 'a' }; CharTermAttribute t = new CharTermAttribute(); t.CopyBuffer(b, 0, 5); Assert.AreEqual("aloha", t.ToString()); t.SetEmpty().Append("hi there"); Assert.AreEqual("hi there", t.ToString()); }