Home
last modified time | relevance | path

Searched refs:isAsciiNumeric (Results 1 – 4 of 4) sorted by relevance

/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DCharUtils.java207 if (!isAsciiNumeric(ch)) { in toIntValue()
229 return isAsciiNumeric(ch) ? ch - 48 : defaultValue; in toIntValue()
485 public static boolean isAsciiNumeric(final char ch) { in isAsciiNumeric() method in CharUtils
505 return isAsciiAlpha(ch) || isAsciiNumeric(ch); in isAsciiAlphanumeric()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DCharUtilsTest.java165 assertFalse(CharUtils.isAsciiNumeric('a'));
166 assertFalse(CharUtils.isAsciiNumeric('A'));
167 assertTrue(CharUtils.isAsciiNumeric('3'));
168 assertFalse(CharUtils.isAsciiNumeric('-'));
169 assertFalse(CharUtils.isAsciiNumeric('\n'));
170 assertFalse(CharUtils.isAsciiNumeric(CHAR_COPY));
174 assertTrue(CharUtils.isAsciiNumeric((char) i));
176 assertFalse(CharUtils.isAsciiNumeric((char) i));
DCharUtilsPerfRun.java134 final boolean b = CharUtils.isAsciiNumeric(ch); in run_CharUtils_isAsciiNumeric()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/
DTelephonyLookup.java274 if (mcc == null || mcc.length() != 3 || !isAsciiNumeric(mcc)) { in processNetwork()
279 if (mnc == null || !(mnc.length() == 2 || mnc.length() == 3) || !isAsciiNumeric(mnc)) { in processNetwork()
297 private static boolean isAsciiNumeric(String string) { in isAsciiNumeric() method in TelephonyLookup.TelephonyNetworkValidator