Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 49974 invoked from network); 17 Nov 2008 17:20:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2008 17:20:06 -0000 Received: (qmail 60642 invoked by uid 500); 17 Nov 2008 17:20:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 60580 invoked by uid 500); 17 Nov 2008 17:20:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 60569 invoked by uid 99); 17 Nov 2008 17:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2008 09:20:13 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2008 17:18:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A4159234C2A1 for ; Mon, 17 Nov 2008 09:19:44 -0800 (PST) Message-ID: <832339227.1226942384671.JavaMail.jira@brutus> Date: Mon, 17 Nov 2008 09:19:44 -0800 (PST) From: "Ivica Mikic (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (LANG-471) I would like to add isLowerCase and isUpperCase methods to WordUtils in the commons.lang package In-Reply-To: <1145564809.1226941544473.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivica Mikic updated LANG-471: ----------------------------- Summary: I would like to add isLowerCase and isUpperCase methods to WordUtils in the commons.lang package (was: I would like to add isLowerCase and isUpperCase methods to WordUtils in the lang package) > I would like to add isLowerCase and isUpperCase methods to WordUtils in the commons.lang package > ------------------------------------------------------------------------------------------------ > > Key: LANG-471 > URL: https://issues.apache.org/jira/browse/LANG-471 > Project: Commons Lang > Issue Type: Improvement > Affects Versions: 2.4 > Reporter: Ivica Mikic > Priority: Minor > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > public static boolean isLowerCase(String s) > { > if (s == null || s.trim().length() == 0) return s; > > char[] chars = new char[s.length()]; > s.getChars(0, s.length(), chars, 0); > boolean ilc = true; > for (int i = 0; i < chars.length; i++) > { > if (Character.isUpperCase(chars[i])) > { > ilc = false; > break; > } > } > > return ilc; > } > > > public static boolean isUpperCase(String s) > { > if (s == null || s.trim().length() == 0) return s; > > char[] chars = new char[s.length()]; > s.getChars(0, s.length(), chars, 0); > boolean iuc = true; > for (int i = 0; i < chars.length; i++) > { > if (Character.isLowerCase(chars[i])) > { > iuc = false; > break; > } > } > > return iuc; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.