|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.util.StringUtils
public class StringUtils
Code here was swiped from plexus-utils' StringUtils class, so plexus-interpolation could be completely self-contained.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static String |
capitalizeFirstLetter(String data)
|
static String |
replace(String text,
String repl,
String with)
Replace all occurances of a String within another String. |
static String |
replace(String text,
String repl,
String with,
int max)
Replace a String with another String inside a larger String, for the first max values of the search String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String replace(String text, String repl, String with)
Replace all occurances of a String within another String.
A null
reference passed to this method is a no-op.
text
- text to search and replace inrepl
- String to search forwith
- String to replace with
replace(String text, String repl, String with, int max)
public static String replace(String text, String repl, String with, int max)
Replace a String with another String inside a larger String,
for the first max
values of the search String.
A null
reference passed to this method is a no-op.
text
- text to search and replace inrepl
- String to search forwith
- String to replace withmax
- maximum number of values to replace, or -1
if no maximum
public static String capitalizeFirstLetter(String data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |