Searched defs:oldString (Results 1 - 1 of 1) sorted by relevance

/glassfish-3.1.2/persistence/cmp/utility/src/main/java/com/sun/jdo/spi/persistence/utility/
H A DStringHelper.java226 /** Replaces the first occurence of <code>oldString</code> in <code>string</code>
228 * instance (in the case <code>oldString</code> is included in the string)
229 * or the origial string itself (in the case <code>oldString</code> is not
232 * @param oldString the string to be replaced.
235 * first occurence oldString with newString.
237 public static String replaceFirst (String string, String oldString, String newString) argument
239 int index = string.indexOf(oldString);
244 sb.append(string.substring(index + oldString.length()));
250 /** Replaces all occurences of <code>oldString</code> in <code>string</code>
252 * instance (in the case <code>oldString</cod
261 replace(String string, String oldString, String newString) argument
[all...]

Completed in 299 milliseconds