[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-12-20 Thread Sebb (JIRA)

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

Sebb updated LANG-910:
--

Issue Type: Improvement  (was: Bug)

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Improvement
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: Discussion

 Attachments: LANG-910.patch, 
 substring-matches-and-white-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-10-22 Thread Henri Yandell (JIRA)

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

Henri Yandell updated LANG-910:
---

Fix Version/s: (was: 3.2)

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: Discussion

 Attachments: LANG-910.patch, 
 substring-matches-and-white-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.



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


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-10-13 Thread Henri Yandell (JIRA)

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

Henri Yandell updated LANG-910:
---

Attachment: LANG-910.patch

I cleaned up the javadoc and added another method:

public static String[] substringsMatches(final String str, Pattern pattern) {

Then hit some pain because there is only one matching group in (.) in Java :(

I've attached my patch. My only concern is whether we should be addressing the 
above. 

Should we provide an API that works more naturally such that there are 6 
matching groups in foobar-match((.)) instead of only one? Then you can say 
substring(4) and get bar back (noting matching groups are 1-indexed and not 
0-indexed?

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.2

 Attachments: LANG-910.patch, 
 substring-matches-and-white-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.



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


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-08-24 Thread Timur Yarosh (JIRA)

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

Timur Yarosh updated LANG-910:
--

Attachment: substring-matches-and-hard-space-normalizer.patch

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.1

 Attachments: substring-matches-and-hard-space-normalizer.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-08-24 Thread Timur Yarosh (JIRA)

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

Timur Yarosh updated LANG-910:
--

Attachment: substring-matches-and-hard-space-normalize.patch

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.1

 Attachments: substring-matches-and-hard-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-08-24 Thread Timur Yarosh (JIRA)

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

Timur Yarosh updated LANG-910:
--

Attachment: (was: substring-matches-and-hard-space-normalizer.patch)

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.1

 Attachments: substring-matches-and-hard-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-08-24 Thread Timur Yarosh (JIRA)

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

Timur Yarosh updated LANG-910:
--

Attachment: substring-matches-and-white-space-normalize.patch

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.1

 Attachments: substring-matches-and-white-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (LANG-910) Patch to extend StringUtils

2013-08-24 Thread Timur Yarosh (JIRA)

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

Timur Yarosh updated LANG-910:
--

Attachment: (was: substring-matches-and-hard-space-normalize.patch)

 Patch to extend StringUtils
 ---

 Key: LANG-910
 URL: https://issues.apache.org/jira/browse/LANG-910
 Project: Commons Lang
  Issue Type: Bug
  Components: lang.*
Affects Versions: 3.1
 Environment: Developed on Ubuntu 13.04 with openjdk 7u25
Reporter: Timur Yarosh
  Labels: patch
 Fix For: 3.1

 Attachments: substring-matches-and-white-space-normalize.patch


 This patch extends StringUtils capabilities: added methods to find 
 substring(s) by Pattern. Also method 
 org.apache.commons.lang3.StringUtils#normalizeSpace now replaces ASCII #160 
 char to normal whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira