You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2011/03/16 07:19:35 UTC

[jira] Issue Comment Edited: (LANG-687) Convert more of the StringUtils API to take CharSequence

    [ https://issues.apache.org/jira/browse/LANG-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007360#comment-13007360 ] 

Henri Yandell edited comment on LANG-687 at 3/16/11 6:18 AM:
-------------------------------------------------------------

svn ci -m "Moving indexOf(String, int) and indexOf(String, int, int) over to CharSequence. LANG-687. This, plus the same happening for the String, String, int variant will open up a lot of methods. "
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 1082062.

svn ci -m "Moving indexOf(String, String) and indexOf(String, String, int) over to CharSequence. 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 1082066.



      was (Author: bayard):
    svn ci -m "Moving indexOf(String, int) and indexOf(String, int, int) over to CharSequence. LANG-687. This, plus the same happening for the String, String, int variant will open up a lot of methods. "
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 1082062.

  
> 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
> contains
> containsAny
> containsIgnoreCase
> containsWhitespace
> countMatches
> defaultString
> deleteWhitespace
> difference
> endsWith
> endsWithAny
> endsWithIgnoreCase
> equalsIgnoreCase
> getCommonPrefix
> [SOME] 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

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