webcore.utilities
Class StringUtils

java.lang.Object
  |
  +--webcore.utilities.StringUtils

public class StringUtils
extends java.lang.Object

utility functions for Strings


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String findReplace(java.lang.String str, java.lang.String substr, java.lang.String replacestr)
          returns a string based on str where all substr are replaced with replacestr
static int lastIndexOfMax(java.lang.String str, java.lang.String subStr, int startIndex, int maxIndex)
          returns the last index of a String less than maxIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

lastIndexOfMax

public static int lastIndexOfMax(java.lang.String str,
                                 java.lang.String subStr,
                                 int startIndex,
                                 int maxIndex)
returns the last index of a String less than maxIndex


findReplace

public static java.lang.String findReplace(java.lang.String str,
                                           java.lang.String substr,
                                           java.lang.String replacestr)
returns a string based on str where all substr are replaced with replacestr