commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Scott Ananian" <csc...@cscott.net>
Subject Re: cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang WordUtilsTest.java
Date Thu, 03 Jun 2004 19:02:53 GMT
On Wed, 3 Jun 2004 bayard@apache.org wrote:

>   +    /**
>   +     * <p>Capitalizes all the delimiter separated words in a String.
                                   delimiter-separated
>   +     * Only the first letter of each word is changed. To change all letters to
[...]
>   +     * @param str  the String to capitalize, may be null
>   +     * @param delimiters  characters to capitalize afterwards

"characters to capitalize afterwards" is not clear -- it doesn't include
the first letter in the string, for example.

Better would be "A set of characters understood to separate words.  The
first string character and the first non-delimiter character after a
delimiter will be capitalized."

Alternatively, "A set of characters understood to separate words.  Each
word will have its first character capitalized."

>   +     * @param str  the String to capitalize, may be null
>   +     * @param delimiters  characters to capitalize afterwards
>   +     * @return capitalized String, <code>null</code> if null String input
>   +     */
>   +    public static String capitalizeFully(String str, char[] delimiters) {

Same thing here.

"@param delimiters A set of characters understood to separate words.
                   All non-delimiter characters will be capitalized."
 --scott

Moscow Marxist mail drop Noriega Panama fissionable Dictionary security
COBRA JUDY South Africa Sudan bomb LA overthrow DC OVER THE HORIZON RADAR
                         ( http://cscott.net/ )

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message