protected void copy_from(SnowballProgram other) { current = other.current; cursor = other.cursor; limit = other.limit; limit_backward = other.limit_backward; bra = other.bra; ket = other.ket; }
protected virtual void CopyFrom(SnowballProgram other) { m_current = other.m_current; m_cursor = other.m_cursor; m_limit = other.m_limit; m_limit_backward = other.m_limit_backward; m_bra = other.m_bra; m_ket = other.m_ket; }
public Among(string s, int substring_i, int result, string methodname, SnowballProgram methodobject) { this.s_size = s.Length; this.s = s.ToCharArray(); this.substring_i = substring_i; this.result = result; this.methodobject = methodobject; if (methodname.Length == 0) { this.method = null; } else { try { this.method = methodobject.GetType().GetMethod(methodname, EMPTY_PARAMS); } catch (MissingMethodException e) { throw new Exception(e.ToString(), e); } } }