public CharClassInfo(string name, afh.Text.UnicodeBlock block) { this.name = name; this.type = CharClassType.UnicodeBlock; this.node_pos = new UnicodeBlockNode(name, block, true); this.node_neg = new UnicodeBlockNode(name, block, false); this.value = (byte)block; }
public UnicodeBlockNode(string name, afh.Text.UnicodeBlock block, bool positive) { this.name = @"\" + (positive?'p':'P') + "{" + name + "}"; this.block = block; this.positive = positive; #if Ver1_0a2 this.inst = new Tester(block, positive); #endif }
public UnicodeBlockHandler(string name, afh.Text.UnicodeBlock cat, bool positive) { this.name = (positive?@"\p{":@"\P{") + name + "}"; this.cat = cat; this.positive = positive; }
public Tester(afh.Text.UnicodeBlock block, bool positive) { this.block = block; this.positive = positive; }