|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.text.StringUtil
public final class StringUtil
Convenience class for String utility functions
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
contractSpaces(String t)
Contracts all the spaces of a given String, leaving only one space between characters |
static String |
fillString(String s,
char c,
int n)
|
static String |
filterISOControl(String s)
Removes all ISO control chars from a String |
static String |
leftJustify(String s,
char c,
int n)
|
static String |
leftJustify(String s,
char c,
int n,
char overchar)
|
static String |
omitAccents(String s)
Removes accents for their corresponding vowels Handles upper & lower case, acutes, graves, umlates and circs. |
static String |
replace(String s,
String q,
String pq)
Replaces each 'q' for 'pq' on 's'. |
static String |
replace(String s,
String q,
String pq,
int n)
Replaces each 'q' for 'pq' on 's'. |
static String |
replaceISOControl(String s,
char c)
Replaces all ISO control chars in a String with char c |
static String |
replaceLowerAccents(String s)
|
static String |
replaceNonChars(String s)
Replace each character of 's' by a space if it's not a letter or digit |
static String |
rightJustify(String s,
char c,
int n)
|
static String |
rightJustify(String s,
char c,
int n,
char overchar)
|
static String |
toTitle(String s)
Returns a title representation of the String (Spanish-style title, with only the first letter as Uppercase) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static String rightJustify(String s,
char c,
int n)
public static String rightJustify(String s,
char c,
int n,
char overchar)
public static String leftJustify(String s,
char c,
int n)
public static String leftJustify(String s,
char c,
int n,
char overchar)
public static String toTitle(String s)
public static String fillString(String s,
char c,
int n)
public static String contractSpaces(String t)
public static String filterISOControl(String s)
public static String replaceISOControl(String s,
char c)
public static final String replaceNonChars(String s)
public static String replaceLowerAccents(String s)
public static String replace(String s,
String q,
String pq)
s - String to work onq - subString to replacepq - String that replaces q
replace( String s, String q, String pq, int n )
public static String replace(String s,
String q,
String pq,
int n)
s - String to work onq - subString to replacepq - String that replaces qn - times 'q' is contained by 's'
public static String omitAccents(String s)
s - string to work on.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||