Exemple #1
0
 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;
 }
Exemple #2
0
            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
            }
Exemple #3
0
 public UnicodeBlockHandler(string name, afh.Text.UnicodeBlock cat, bool positive)
 {
     this.name     = (positive?@"\p{":@"\P{") + name + "}";
     this.cat      = cat;
     this.positive = positive;
 }
Exemple #4
0
 public Tester(afh.Text.UnicodeBlock block, bool positive)
 {
     this.block    = block;
     this.positive = positive;
 }