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; }
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 }
public GeneralCategoryHandler(string name, afh.Text.GeneralCategory cat, bool positive) { this.name = (positive?@"\p{":@"\P{") + name + "}"; this.cat = cat; this.positive = positive; }
public Tester(afh.Text.GeneralCategory cat, bool positive) { this.cat = cat; this.positive = positive; }