/// <summary> /// 初始化规则 /// </summary> private static void SetOwnerRules() { Rules = new IRule[3]; _PosBinRule = new PosBinRule(_WordPosBuilder); Rules[0] = new MergeNumRule(_WordPosBuilder); Rules[1] = _PosBinRule; Rules[2] = new MatchName(_WordPosBuilder); }
public MatchName(WordPosBuilder pos) { _PosBinRule = new PosBinRule(pos); _Pos = pos; _FamilyNameTbl = new Hashtable(); foreach (String familyName in FAMILY_NAMES) { _FamilyNameTbl[familyName] = true; } }