1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.BasicStringBufferLike"], "com.stevesoft.pat.StringBufferLike", ["com.stevesoft.pat.CaseMgr"], function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, com.stevesoft.pat, "StringBufferLike", null, com.stevesoft.pat.BasicStringBufferLike);
9 Clazz.makeConstructor (c$,
12 }, "com.stevesoft.pat.BasicStringBufferLike");
13 Clazz.defineMethod (c$, "toStringLike",
15 return this.sbl.toStringLike ();
17 Clazz.defineMethod (c$, "toString",
19 return this.sbl.toString ();
21 Clazz.defineMethod (c$, "appendC",
25 this.mode = this.altMode;
28 this.sbl.appendC (com.stevesoft.pat.CaseMgr.toUpperCaseC (c));
31 this.mode = this.altMode;
34 this.sbl.appendC (com.stevesoft.pat.CaseMgr.toLowerCaseC (c));
37 if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) {
39 this.sbl.appendC ('\\');
45 Clazz.overrideMethod (c$, "append",
47 for (var i = 0; i < s.length; i++) {
48 this.appendC (s.charAt (i));
51 Clazz.defineMethod (c$, "setMode",
53 if (c == 'u' || c == 'l') {
54 if (this.altMode == ' ') {
55 this.altMode = this.mode;
58 Clazz.defineMethod (c$, "unwrap",
60 return this.sbl.unwrap ();