gnu.lists

Class Strings

public class Strings extends Object

Various static utility methods for general strings (CharSeqs).
Method Summary
static voidmakeCapitalize(CharSeq str)
Capitalize this string.
static voidmakeLowerCase(CharSeq str)
Change every character to be lowercase.
static voidmakeUpperCase(CharSeq str)
Change every character to be uppercase.
static voidprintQuoted(CharSequence str, PrintWriter ps, int escapes)

Method Detail

makeCapitalize

public static void makeCapitalize(CharSeq str)
Capitalize this string. Change first character of each word to titlecase, and change the other characters to lowercase.

makeLowerCase

public static void makeLowerCase(CharSeq str)
Change every character to be lowercase.

makeUpperCase

public static void makeUpperCase(CharSeq str)
Change every character to be uppercase.

printQuoted

public static void printQuoted(CharSequence str, PrintWriter ps, int escapes)