|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.util.Strings
public class Strings
This class contains various methods for manipulating strings.
| Constructor Summary | |
|---|---|
Strings()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
camelToWords(java.lang.String str)
|
static java.lang.String |
replace(java.lang.String str,
java.lang.String from,
java.lang.String to)
Replaces all occurences of 'from' by 'to'. |
static java.lang.String |
translate(java.lang.String s,
char[] from,
char[] to)
Translates all occurences of characters in the char array 'from' to the characters in 'to'. |
static java.lang.String |
translate(java.lang.String str,
char from,
char to)
Translates all occurences of char 'from' to char 'to'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Strings()
| Method Detail |
|---|
public static java.lang.String translate(java.lang.String s,
char[] from,
char[] to)
s - The string to be translated.from - The characters to be replaced.to - The replacement characters.
public static java.lang.String translate(java.lang.String str,
char from,
char to)
str - The string to be translated.from - The character to be replaced.to - The replacement character.
public static java.lang.String replace(java.lang.String str,
java.lang.String from,
java.lang.String to)
str - The string to be processed.from - The text to be replaced.to - The replacement text.
public static java.lang.String camelToWords(java.lang.String str)
|
Copyright 2012-02-25 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||