Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
        public MatchName(WordPosBuilder pos)
        {
            _PosBinRule = new PosBinRule(pos);
            _Pos        = pos;

            _FamilyNameTbl = new Hashtable();
            foreach (String familyName in FAMILY_NAMES)
            {
                _FamilyNameTbl[familyName] = true;
            }
        }