net.sourceforge.cobertura.util

Class StringUtil


public abstract class StringUtil
extends java.lang.Object

Abstract, not to be instantiated utility class for String functions.
Author:
Jeremy Thomerson

Method Summary

static String
replaceAll(String original, String replace, String with)
Replaces all instances of "replace" with "with" from the "original" string.

Method Details

replaceAll

public static String replaceAll(String original,
                                String replace,
                                String with)
Replaces all instances of "replace" with "with" from the "original" string.

NOTE: it is known that a similar function is included in jdk 1.4 as replaceAll(), but is written here so as to allow backward compatibility to users using SDK's prior to 1.4

Parameters:
original - The original string to do replacement on.
replace - The string to replace.
with - The string to replace "replace" with.
Returns:
The replaced string.