/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*******************************************************************************
* Copyright (C) 2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
public final class AsciiUtil {
return true;
}
return false;
}
int i = 0;
while (i < len) {
break;
}
i++;
}
return (i == len);
}
return 0;
}
}
public static char toUpper(char c) {
if (c >= 'a' && c <= 'z') {
c -= 0x20;
}
return c;
}
public static char toLower(char c) {
if (c >= 'A' && c <= 'Z') {
c += 0x20;
}
return c;
}
int idx = 0;
if (c >= 'A' && c <= 'Z') {
break;
}
}
return s;
}
}
}
int idx = 0;
if (c >= 'a' && c <= 'z') {
break;
}
}
return s;
}
}
}
if (s.length() == 0) {
return s;
}
int idx = 0;
if (!(c >= 'a' && c <= 'z')) {
if (c >= 'A' && c <= 'Z') {
break;
}
}
}
return s;
}
if (idx == 0) {
idx++;
}
}
}
public static boolean isAlpha(char c) {
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
}
boolean b = true;
for (int i = 0; i < s.length(); i++) {
b = false;
break;
}
}
return b;
}
public static boolean isNumeric(char c) {
return (c >= '0' && c <= '9');
}
boolean b = true;
for (int i = 0; i < s.length(); i++) {
b = false;
break;
}
}
return b;
}
public static boolean isAlphaNumeric(char c) {
}
boolean b = true;
for (int i = 0; i < s.length(); i++) {
if (!isAlphaNumeric(s.charAt(i))) {
b = false;
break;
}
}
return b;
}
public static class CaseInsensitiveKey {
private int _hash;
}
if (this == o) {
return true;
}
if (o instanceof CaseInsensitiveKey) {
}
return false;
}
public int hashCode() {
return _hash;
}
}
}