|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.prepro.StringUtils
public final class StringUtils
An assortment of useful operations on String
s.
Method Summary | |
---|---|
static void |
appendEscaped(StringBuffer b,
String s,
char e)
Append a String to a StringBuffer, and escaping any occurances of the char in the String. |
static void |
appendQuoted(StringBuffer b,
String s,
char q)
Append a String to a StringBuffer, first quoting it with a quote character and escaping any occurances of the quote char in the String. |
static String |
capitalised(String name)
Captialise the first character of the input string. |
static String |
quoted(String i,
char q)
Surround a string in quotes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void appendQuoted(StringBuffer b, String s, char q)
b
- the buffer to append tos
- the String to appendq
- the quote characterpublic static String quoted(String i, char q)
i
- the string to quoteq
- The quote character to use
public static void appendEscaped(StringBuffer b, String s, char e)
b
- the buffer to append tos
- the String to appende
- the character to escapepublic static String capitalised(String name)
name
-
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |