Package org.castor.core.util
Class StringUtil
java.lang.Object
org.castor.core.util.StringUtil
Common functionality relate to String processing.
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
replaceAll
(String source, String toReplace, String replacement) Replaces all occurences of a pattern within a String.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
replaceAll
Replaces all occurences of a pattern within a String.- Parameters:
source
- The source string.toReplace
- The character to replace.replacement
- The replacement.- Returns:
- The new String with characters replaced.
-