StrTokenizer needs to support access to the token separators
------------------------------------------------------------

                 Key: LANG-288
                 URL: http://issues.apache.org/jira/browse/LANG-288
             Project: Commons Lang
          Issue Type: Improvement
            Reporter: Stephen Colebourne
            Priority: Minor
             Fix For: 3.0


With StrTokenizer at present you cannot extract the separators between the 
tokens, a feature which is possible with StringTokenizer.

Thus tokenizing "[EMAIL PROTECTED]" 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to