Home
last modified time | relevance | path

Searched refs:userFriendly (Results 1 – 2 of 2) sorted by relevance

/external/caliper/examples/src/main/java/examples/
DUtf8Benchmark.java45 private static int decode(String userFriendly) { in decode() argument
47 return Integer.decode(userFriendly); in decode()
49 if (userFriendly.matches("(?i)(?:American|English|ASCII)")) { in decode()
52 } else if (userFriendly.matches("(?i)(?:French|Latin|Western.*European)")) { in decode()
56 } else if (userFriendly.matches("(?i)(?:Branch.*Prediction.*Hostile)")) { in decode()
59 } else if (userFriendly.matches("(?i)(?:Greek|Cyrillic|European|ISO.?8859)")) { in decode()
62 } else if (userFriendly.matches("(?i)(?:Chinese|Han|Asian|BMP)")) { in decode()
65 } else if (userFriendly.matches("(?i)(?:Cuneiform|rare|exotic|supplementary.*)")) { in decode()
69 throw new IllegalArgumentException("Can't decode codepoint " + userFriendly); in decode()
74 public static MaxCodePoint valueOf(String userFriendly) { in valueOf() argument
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DUtf8Benchmark.java41 private static int decode(String userFriendly) { in decode() argument
43 return Integer.decode(userFriendly); in decode()
45 if (userFriendly.matches("(?i)(?:American|English|ASCII)")) { in decode()
48 } else if (userFriendly.matches("(?i)(?:French|Latin|Western.*European)")) { in decode()
52 } else if (userFriendly.matches("(?i)(?:Branch.*Prediction.*Hostile)")) { in decode()
55 } else if (userFriendly.matches("(?i)(?:Greek|Cyrillic|European|ISO.?8859)")) { in decode()
58 } else if (userFriendly.matches("(?i)(?:Chinese|Han|Asian|BMP)")) { in decode()
61 } else if (userFriendly.matches("(?i)(?:Cuneiform|rare|exotic|supplementary.*)")) { in decode()
65 throw new IllegalArgumentException("Can't decode codepoint " + userFriendly); in decode()
70 public static MaxCodePoint valueOf(String userFriendly) { in valueOf() argument
[all …]