|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.util.StringUtil
| Constructor Summary | |
StringUtil()
|
|
| Method Summary | |
static String |
gsub(String olds,
String news,
String text)
Substitute String "old" by String "new" in String "text" everywhere. |
static int |
indexOfWord(String text,
String word)
Searches for the first occurrence of a word, which must be surrounded by whitespace characters, in a text. |
static int |
indexOfWord(String text,
String word,
int fromIndex)
Searches for the first occurrence of a word, which must be surrounded by whitespace characters, that appears in a text after 'fromIndex'. |
static int |
lastIndexOfWord(String text,
String word)
Searches for the last occurrence of a word, which must be surrounded by whitespace characters, in a text. |
static int |
lastIndexOfWord(String text,
String word,
int fromIndex)
Searches for the last occurrence of a word, which must be surrounded by whitespace characters, in a text. |
| 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 gsub(String olds,
String news,
String text)
olds - The String to be substituted.news - The String is the new content.text - The String in which the substitution is done.
public static int indexOfWord(String text,
String word)
public static int indexOfWord(String text,
String word,
int fromIndex)
public static int lastIndexOfWord(String text,
String word)
public static int lastIndexOfWord(String text,
String word,
int fromIndex)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||