2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
11 * A tool that is used to make the \E, \U, \L, and \Q elements of a
14 public class StringBufferLike implements BasicStringBufferLike
16 BasicStringBufferLike sbl;
18 public StringBufferLike(BasicStringBufferLike sbl)
23 char mode = 'E', altMode = ' ';
25 public StringLike toStringLike()
27 return sbl.toStringLike();
30 public String toString()
32 return sbl.toString();
35 public void append(char c)
44 sbl.append(CaseMgr.toUpperCase(c));
50 sbl.append(CaseMgr.toLowerCase(c));
53 if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
54 || (c >= '0' && c <= '9'))
68 public void append(String s)
70 for (int i = 0; i < s.length(); i++)
76 public void setMode(char c)
78 if (c == 'u' || c == 'l')
88 public Object unwrap()