gnu.lists

Class Strings


public class Strings
extends java.lang.Object

Various static utility methods for general strings (CharSeqs).

Method Summary

static void
makeCapitalize(CharSeq str)
Capitalize this string.
static void
makeLowerCase(CharSeq str)
Change every character to be lowercase.
static void
makeUpperCase(CharSeq str)
Change every character to be uppercase.
static void
printQuoted(CharSequence str, java.io.PrintWriter ps, int escapes)

Method Details

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,
                               java.io.PrintWriter ps,
                               int escapes)