commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric JECKER (JIRA) <j...@apache.org>
Subject [jira] [Created] (LANG-1043) isAllUpperCase should only check Alpha characters
Date Wed, 08 Oct 2014 07:30:33 GMT
Frédéric JECKER created LANG-1043:
-------------------------------------

             Summary: isAllUpperCase should only check Alpha characters
                 Key: LANG-1043
                 URL: https://issues.apache.org/jira/browse/LANG-1043
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
    Affects Versions: 3.3.2
            Reporter: Frédéric JECKER


Currently, isAllUpperCase checks character by character if the current character is UpperCase
or not using Character.isUpperCase().
The problem is that characters like spaces aren't considered as uppercase characters.
IMHO, isAllUpperCase should only check the state of alpha characters so that :
- StringUtils.isAllUpperCase("ABC DEF GHI") = true (false currently)
- StringUtils.isAllUpperCase("ABC / DEF") = true (false currently)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message