commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-687) Convert more of the StringUtils API to take CharSequence
Date Thu, 17 Mar 2011 06:56:29 GMT

     [ https://issues.apache.org/jira/browse/LANG-687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell updated LANG-687:
-------------------------------

    Description: 
Wherever possible, use CharSequence and not String in the StringUtils API.

Here is the working list of unique method names that don't take CharSequence. Let's update
the description in place to show status.

[DONE] abbreviate
[DONE] abbreviateMiddle
[DONE] center
chomp
chop
[DONE] contains
[DONE] containsAny
containsIgnoreCase
[DONE] containsWhitespace
countMatches
defaultString
deleteWhitespace
difference
endsWith
endsWithAny
endsWithIgnoreCase
equalsIgnoreCase
getCommonPrefix
[DONE] indexOf
[DONE] indexOfAny
[DONE] indexOfAnyBut
indexOfIgnoreCase
join
[DONE] lastIndexOf
[DONE] lastIndexOfAny
lastIndexOfIgnoreCase
lastOrdinalIndexOf
[DONE] left
[DONE] leftPad
[DONE] lowerCase
[DONE] mid
normalizeSpace
ordinalIndexOf
overlay
remove
removeEnd
removeEndIgnoreCase
removeStart
removeStartIgnoreCase
repeat
replace
replaceChars
replaceEach
replaceEachRepeatedly
replaceOnce
reverse
reverseDelimited
[DONE] right
[DONE] rightPad
split
splitByCharacterType
splitByCharacterTypeCamelCase
splitByWholeSeparator
splitByWholeSeparatorPreserveAllTokens
splitPreserveAllTokens
startsWith
startsWithAny
startsWithIgnoreCase
strip
stripAll
stripEnd
stripStart
stripToEmpty
stripToNull
[DONE] substring
substringAfter
substringAfterLast
substringBefore
substringBeforeLast
substringBetween
substringsBetween
[DONE] swapCase
trim
trimToEmpty
trimToNull
[DONE] upperCase


  was:
Wherever possible, use CharSequence and not String in the StringUtils API.

Here is the working list of unique method names that don't take CharSequence. Let's update
the description in place to show status.

[DONE] abbreviate
[DONE] abbreviateMiddle
[DONE] center
chomp
chop
contains
containsAny
containsIgnoreCase
containsWhitespace
countMatches
defaultString
deleteWhitespace
difference
endsWith
endsWithAny
endsWithIgnoreCase
equalsIgnoreCase
getCommonPrefix
[DONE] indexOf
indexOfAny
indexOfAnyBut
indexOfIgnoreCase
join
lastIndexOf
lastIndexOfAny
lastIndexOfIgnoreCase
lastOrdinalIndexOf
[DONE] left
[DONE] leftPad
[DONE] lowerCase
[DONE] mid
normalizeSpace
ordinalIndexOf
overlay
remove
removeEnd
removeEndIgnoreCase
removeStart
removeStartIgnoreCase
repeat
replace
replaceChars
replaceEach
replaceEachRepeatedly
replaceOnce
reverse
reverseDelimited
[DONE] right
[DONE] rightPad
split
splitByCharacterType
splitByCharacterTypeCamelCase
splitByWholeSeparator
splitByWholeSeparatorPreserveAllTokens
splitPreserveAllTokens
startsWith
startsWithAny
startsWithIgnoreCase
strip
stripAll
stripEnd
stripStart
stripToEmpty
stripToNull
substring
substringAfter
substringAfterLast
substringBefore
substringBeforeLast
substringBetween
substringsBetween
[DONE] swapCase
trim
trimToEmpty
trimToNull
[DONE] upperCase



svn ci -m "Moving lastIndexOf, contains, containsWhitespace, indexOfAny, containsAny, indexOfAnyBut,
containsOnly, containsNone and substring over to using CharSequences for parameters. LANG-687"
Sending        src/main/java/org/apache/commons/lang3/StringUtils.java
Sending        src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
Transmitting file data ..
Committed revision 1082413.

svn ci -m "Moving contains(String, int) over to CharSequence. LANG-687"
Sending        src/main/java/org/apache/commons/lang3/StringUtils.java
Transmitting file data .
Committed revision 1082414.


> Convert more of the StringUtils API to take CharSequence
> --------------------------------------------------------
>
>                 Key: LANG-687
>                 URL: https://issues.apache.org/jira/browse/LANG-687
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 3.0
>
>
> Wherever possible, use CharSequence and not String in the StringUtils API.
> Here is the working list of unique method names that don't take CharSequence. Let's update
the description in place to show status.
> [DONE] abbreviate
> [DONE] abbreviateMiddle
> [DONE] center
> chomp
> chop
> [DONE] contains
> [DONE] containsAny
> containsIgnoreCase
> [DONE] containsWhitespace
> countMatches
> defaultString
> deleteWhitespace
> difference
> endsWith
> endsWithAny
> endsWithIgnoreCase
> equalsIgnoreCase
> getCommonPrefix
> [DONE] indexOf
> [DONE] indexOfAny
> [DONE] indexOfAnyBut
> indexOfIgnoreCase
> join
> [DONE] lastIndexOf
> [DONE] lastIndexOfAny
> lastIndexOfIgnoreCase
> lastOrdinalIndexOf
> [DONE] left
> [DONE] leftPad
> [DONE] lowerCase
> [DONE] mid
> normalizeSpace
> ordinalIndexOf
> overlay
> remove
> removeEnd
> removeEndIgnoreCase
> removeStart
> removeStartIgnoreCase
> repeat
> replace
> replaceChars
> replaceEach
> replaceEachRepeatedly
> replaceOnce
> reverse
> reverseDelimited
> [DONE] right
> [DONE] rightPad
> split
> splitByCharacterType
> splitByCharacterTypeCamelCase
> splitByWholeSeparator
> splitByWholeSeparatorPreserveAllTokens
> splitPreserveAllTokens
> startsWith
> startsWithAny
> startsWithIgnoreCase
> strip
> stripAll
> stripEnd
> stripStart
> stripToEmpty
> stripToNull
> [DONE] substring
> substringAfter
> substringAfterLast
> substringBefore
> substringBeforeLast
> substringBetween
> substringsBetween
> [DONE] swapCase
> trim
> trimToEmpty
> trimToNull
> [DONE] upperCase

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message