| java.lang.Object org.apache.cocoon.util.StringUtils
StringUtils | public class StringUtils (Code) | | A collection of String handling utility methods.
author: Ricardo Rocha author: Stefano Mazzocchi version: CVS $Id: StringUtils.java 433543 2006-08-22 06:22:54Z crossley $ |
count | public static int count(String str, char c)(Code) | | Counts the occurrence of the given char in the string.
Parameters: str - The string to be tested Parameters: c - the char to be counted the occurrence of the character in the string.org.apache.commons.lang.StringUtils.countMatches(StringString) |
isAlphaNumeric | public static boolean isAlphaNumeric(char c)(Code) | | Tests whether a given character is alphabetic, numeric or
underscore
Parameters: c - The character to be tested whether the given character is alphameric or not |
matchStrings | public static int matchStrings(String a, String b)(Code) | | Matches two strings.
Parameters: a - The first string Parameters: b - The second string the index where the two strings stop matching starting from 0org.apache.commons.lang.StringUtils.indexOfDifference(StringString) |
replaceToken | public static String replaceToken(String s)(Code) | | Replaces tokens in input with Value present in System.getProperty
|
split | public static String[] split(String line)(Code) | | Split a string as an array using whitespace as separator
Parameters: line - The string to be split An array of whitespace-separated tokens |
split | public static String[] split(String line, String delimiter)(Code) | | Split a string as an array using a given set of separators
Parameters: line - The string to be split Parameters: delimiter - A string containing token separators An array of token |
|
|