1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.oneChar", ["com.stevesoft.pat.CaseMgr", "$.patInt"], function () {
3 c$ = Clazz.decorateAsClass (function () {
8 Clazz.instantialize (this, arguments);
9 }, com.stevesoft.pat, "oneChar", com.stevesoft.pat.Pattern);
10 Clazz.makeConstructor (c$,
12 Clazz.superConstructor (this, com.stevesoft.pat.oneChar, []);
17 cu = com.stevesoft.pat.CaseMgr.toUpperCaseC (this.c);
18 cl = com.stevesoft.pat.CaseMgr.toLowerCaseC (this.c);
19 ct = com.stevesoft.pat.CaseMgr.toTitleCaseC (this.c);
23 } else if (this.c == cl) {
29 }this.mask = this.c.charCodeAt (0) & this.altc.charCodeAt (0) & this.altc2.charCodeAt (0);
31 Clazz.overrideMethod (c$, "matchInternal",
35 if (pos < pt.src.length () && !this.Masked (pos, pt) && ((p = pt.src.charAt (pos)) == this.c || (pt.ignoreCase && (p == this.altc || p == this.altc2)))) {
36 ret = this.nextMatch (pos + 1, pt);
38 }, "~N,com.stevesoft.pat.Pthings");
39 Clazz.overrideMethod (c$, "toString",
41 return com.stevesoft.pat.Pattern.protect ("" + this.c, "[]{}(),$,-\"^.", '\\') + this.nextString ();
43 Clazz.overrideMethod (c$, "minChars",
45 return new com.stevesoft.pat.patInt (1);
47 Clazz.overrideMethod (c$, "maxChars",
49 return new com.stevesoft.pat.patInt (1);
51 Clazz.overrideMethod (c$, "clone1",
53 return new com.stevesoft.pat.oneChar (this.c);
54 }, "java.util.Hashtable");