edu.yale.its.tp.cas.util
Class StringUtil

java.lang.Object
  |
  +--edu.yale.its.tp.cas.util.StringUtil

public class StringUtil
extends java.lang.Object

A class housing some utility functions related to String manipulation.

Copyright 2000, Shawn Bayern.


Constructor Summary
StringUtil()
           
 
Method Summary
static java.lang.String substituteAll(java.lang.String s, java.lang.String o, java.lang.String n)
          Replaces all occurrences of an old String with a new String in the given String.
static java.lang.String substituteOne(java.lang.String s, java.lang.String o, java.lang.String n)
          Replaces one occurrence of an old String with a new String in the given String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

substituteAll

public static java.lang.String substituteAll(java.lang.String s,
                                             java.lang.String o,
                                             java.lang.String n)
Replaces all occurrences of an old String with a new String in the given String.


substituteOne

public static java.lang.String substituteOne(java.lang.String s,
                                             java.lang.String o,
                                             java.lang.String n)
Replaces one occurrence of an old String with a new String in the given String.