Exemple #1
0
 public CharClassInfo(string name, afh.Text.GeneralCategory cat)
 {
     this.name     = name;
     this.type     = CharClassType.UnicodeGenralCategory;
     this.node_pos = new GeneralCategoryNode(name, cat, true);
     this.node_neg = new GeneralCategoryNode(name, cat, false);
     this.value    = (byte)cat;
 }
Exemple #2
0
            public GeneralCategoryNode(string name, afh.Text.GeneralCategory cat, bool positive)
            {
                this.name     = @"\" + (positive?'p':'P') + "{" + name + "}";
                this.cat      = cat;
                this.positive = positive;
#if Ver1_0a2
                this.inst = new Tester(cat, positive);
#endif
            }
Exemple #3
0
 public GeneralCategoryHandler(string name, afh.Text.GeneralCategory cat, bool positive)
 {
     this.name     = (positive?@"\p{":@"\P{") + name + "}";
     this.cat      = cat;
     this.positive = positive;
 }
Exemple #4
0
 public Tester(afh.Text.GeneralCategory cat, bool positive)
 {
     this.cat      = cat;
     this.positive = positive;
 }