org.millscript.millscript.tools
Class StringTools

java.lang.Object
  extended by org.millscript.millscript.tools.StringTools

public final class StringTools
extends java.lang.Object

This is a utility class containing basic String related methods.


Method Summary
static java.lang.String substituteAll(java.lang.String src, java.lang.String pat, java.lang.String rep)
          Returns the source string with all occurrances of the pattern string substituted with the replacement string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

substituteAll

public static final java.lang.String substituteAll(java.lang.String src,
                                                   java.lang.String pat,
                                                   java.lang.String rep)
Returns the source string with all occurrances of the pattern string substituted with the replacement string.

Parameters:
src - the source string
pat - the pattern string
rep - the replacement string
Returns:
the source string with all occurances of the pattern substituted with the replacement


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.