public void Set(TermBuffer other) { text.CopyText(other.text); dirty = true; field = other.field; term = other.term; }
public int CompareTo(TermBuffer other) { if ((System.Object) field == (System.Object) other.field) // fields are interned return CompareChars(text.result, text.length, other.text.result, other.text.length); else return String.CompareOrdinal(field, other.field); }
public int CompareTo(TermBuffer other) { if ((System.Object)field == (System.Object)other.field) { // fields are interned return(CompareChars(text.result, text.length, other.text.result, other.text.length)); } else { return(String.CompareOrdinal(field, other.field)); } }
public System.Object Clone() { TermBuffer clone = null; try { clone = (TermBuffer)base.MemberwiseClone(); } catch (System.Exception e) { } clone.dirty = true; clone.bytes = new UnicodeUtil.UTF8Result(); clone.text = new UnicodeUtil.UTF16Result(); clone.text.CopyText(text); return(clone); }