|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.lang.JvStringUtilities
public final class JvStringUtilities
Various utility methods useful in manipulating Strings.
| Constructor Summary | |
|---|---|
JvStringUtilities()
|
|
| Method Summary | |
|---|---|
static String |
baseName(String name)
Return the base name of the specified name. |
static String |
capitalize(String s)
Utility method to take a string and capitalize it. |
static int |
countOf(String str,
int ch)
Return the number of times the specified character is found within the string. |
static String |
decapitalize(String name)
Utility method to take a string and convert it to normal Java variable name capitalization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JvStringUtilities()
| Method Detail |
|---|
public static String capitalize(String s)
s - the string to be capitalized
public static String decapitalize(String name)
Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".
name - The string to be decapitalized.
public static String baseName(String name)
name - the name to compute the basename of
public static int countOf(String str,
int ch)
str - the string to search withinch - the character to search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||