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 2013/10/21 07:32:46 UTC

[jira] [Updated] (LANG-288) StrTokenizer needs to support access to the token separators

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

Henri Yandell updated LANG-288:
-------------------------------

    Fix Version/s:     (was: 3.x)
                   Patch Needed

> StrTokenizer needs to support access to the token separators
> ------------------------------------------------------------
>
>                 Key: LANG-288
>                 URL: https://issues.apache.org/jira/browse/LANG-288
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.text.*
>            Reporter: Stephen Colebourne
>            Priority: Minor
>             Fix For: Patch Needed
>
>
> With StrTokenizer at present you cannot extract the separators between the tokens, a feature which is possible with StringTokenizer.
> Thus tokenizing "a.b@c.d" using ".@" would return a,b,c,d but you wouldn't know where the @ was.
> This could probably best be part of the API as a lastSeparator() method that can only be called after next(), returning the separator(s) between that token and the previous token.



--
This message was sent by Atlassian JIRA
(v6.1#6144)