Home
last modified time | relevance | path

Searched refs:Character (Results 1 – 25 of 809) sorted by relevance

12345678910>>...33

/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DCharArrayAsListTest.java37 private static List<Character> asList(Character[] values) { in asList()
49 @Override protected List<Character> create(Character[] elements) { in create()
55 @Override protected List<Character> create(Character[] elements) { in create()
56 Character[] suffix = {Character.MIN_VALUE, Character.MAX_VALUE}; in create()
57 Character[] all = concat(elements, suffix); in create()
63 @Override protected List<Character> create(Character[] elements) { in create()
64 Character[] prefix = {(char) 86, (char) 99}; in create()
65 Character[] all = concat(prefix, elements); in create()
71 @Override protected List<Character> create(Character[] elements) { in create()
72 Character[] prefix = {Character.MIN_VALUE, Character.MAX_VALUE}; in create()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterCompare.java53 for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) { in main()
55 if (UCharacter.isDefined(i) != Character.isDefined(i)) in main()
56 … trackDifference(p, i, "isDefined()", "" + UCharacter.isDefined(i), "" + Character.isDefined(i)); in main()
58 if (UCharacter.digit(i, 10) != Character.digit(i, 10)) in main()
59 … trackDifference(p, i, "digit()", "" + UCharacter.digit(i, 10), "" + Character.digit(i, 10)); in main()
60 if (UCharacter.getNumericValue(i) != Character.getNumericValue(i)) in main()
62 + Character.getNumericValue(i)); in main()
63 if (!compareType(UCharacter.getType(i), Character.getType(i))) in main()
64 … trackDifference(p, i, "getType()", "" + UCharacter.getType(i), "" + Character.getType(i)); in main()
65 if (UCharacter.isDigit(i) != Character.isDigit(i)) in main()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterCompare.java50 for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) { in main()
52 if (UCharacter.isDefined(i) != Character.isDefined(i)) in main()
53 … trackDifference(p, i, "isDefined()", "" + UCharacter.isDefined(i), "" + Character.isDefined(i)); in main()
55 if (UCharacter.digit(i, 10) != Character.digit(i, 10)) in main()
56 … trackDifference(p, i, "digit()", "" + UCharacter.digit(i, 10), "" + Character.digit(i, 10)); in main()
57 if (UCharacter.getNumericValue(i) != Character.getNumericValue(i)) in main()
59 + Character.getNumericValue(i)); in main()
60 if (!compareType(UCharacter.getType(i), Character.getType(i))) in main()
61 … trackDifference(p, i, "getType()", "" + UCharacter.getType(i), "" + Character.getType(i)); in main()
62 if (UCharacter.isDigit(i) != Character.isDigit(i)) in main()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DCharArrayAsListTest.java45 private static List<Character> asList(Character[] values) { in asList()
55 List<ListTestSuiteBuilder<Character>> builders = in suite()
71 for (ListTestSuiteBuilder<Character> builder : builders) { in suite()
87 @Override protected List<Character> create(Character[] elements) { in create()
93 @Override protected List<Character> create(Character[] elements) { in create()
94 Character[] suffix = {Character.MIN_VALUE, Character.MAX_VALUE}; in create()
95 Character[] all = concat(elements, suffix); in create()
101 @Override protected List<Character> create(Character[] elements) { in create()
102 Character[] prefix = {(char) 86, (char) 99}; in create()
103 Character[] all = concat(prefix, elements); in create()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTableCollectionTest.java70 Table<String, Integer, Character> table, String[] elements) { in populateForRowKeySet()
78 Table<Integer, String, Character> table, String[] elements) { in populateForColumnKeySet()
86 Table<Integer, Character, String> table, String[] elements) { in populateForValues() argument
93 implements TestSetGenerator<Cell<String, Integer, Character>> {
95 public SampleElements<Cell<String, Integer, Character>> samples() { in samples()
96 return new SampleElements<Cell<String, Integer, Character>>( in samples()
105 public Set<Cell<String, Integer, Character>> create( in create()
107 Table<String, Integer, Character> table = createTable(); in create()
110 Cell<String, Integer, Character> cell in create()
111 = (Cell<String, Integer, Character>) element; in create()
[all …]
DArrayTableTest.java39 @Override protected ArrayTable<String, Integer, Character> create( in create()
43 ArrayTable<String, Integer, Character> table = in create()
114 Table<String, Integer, Character> hashCopy = HashBasedTable.create(); in testEquals()
118 Table<String, Integer, Character> reordered in testEquals()
120 Table<String, Integer, Character> smaller in testEquals()
122 Table<String, Integer, Character> swapOuter in testEquals()
124 Table<String, Integer, Character> swapValues in testEquals()
150 Map<Integer, Character> expected = Maps.newHashMap(); in testRow()
159 Map<String, Character> expected = Maps.newHashMap(); in testColumn()
201 Table<String, Integer, Character> original in testCreateCopyArrayTable()
[all …]
DImmutableTableTest.java30 @Override protected Table<String, Integer, Character> create(Object... data) { in create()
31 ImmutableTable.Builder<String, Integer, Character> builder = in create()
35 (Character) data[i + 2]); in create()
41 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder()
42 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder()
47 Table<Character, Integer, String> expectedTable = HashBasedTable.create(); in testBuilder()
51 Table<Character, Integer, String> otherTable = HashBasedTable.create(); in testBuilder()
60 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCell()
61 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder_withImmutableCell()
68 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCellAndNullContents()
[all …]
DHashBasedTableTest.java29 @Override protected Table<String, Integer, Character> create( in create()
31 Table<String, Integer, Character> table = HashBasedTable.create(); in create()
40 Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20); in testCreateWithValidSizes()
42 assertEquals((Character) 'a', table1.get("foo", 1)); in testCreateWithValidSizes()
44 Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0); in testCreateWithValidSizes()
46 assertEquals((Character) 'a', table2.get("foo", 1)); in testCreateWithValidSizes()
48 Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20); in testCreateWithValidSizes()
50 assertEquals((Character) 'a', table3.get("foo", 1)); in testCreateWithValidSizes()
52 Table<String, Integer, Character> table4 = HashBasedTable.create(0, 0); in testCreateWithValidSizes()
54 assertEquals((Character) 'a', table4.get("foo", 1)); in testCreateWithValidSizes()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DTableCollectionTest.java123 Table<String, Integer, Character> table in suite()
139 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
151 TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite()
168 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
179 RowSortedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite()
195 Table<Integer, String, Character> table in suite()
211 Table<Integer, String, Character> table = HashBasedTable.create(); in suite()
222 Table<Integer, String, Character> table = TreeBasedTable.create(); in suite()
238 Table<Integer, String, Character> table = HashBasedTable.create(); in suite()
249 RowSortedTable<Integer, String, Character> table = TreeBasedTable.create(); in suite()
[all …]
DArrayTableTest.java41 @Override protected ArrayTable<String, Integer, Character> create( in create()
45 ArrayTable<String, Integer, Character> table = in create()
116 Table<String, Integer, Character> hashCopy = HashBasedTable.create(); in testEquals()
120 Table<String, Integer, Character> reordered in testEquals()
122 Table<String, Integer, Character> smaller in testEquals()
124 Table<String, Integer, Character> swapOuter in testEquals()
126 Table<String, Integer, Character> swapValues in testEquals()
152 Map<Integer, Character> expected = Maps.newHashMap(); in testRow()
161 Map<String, Character> expected = Maps.newHashMap(); in testColumn()
203 Table<String, Integer, Character> original in testCreateCopyArrayTable()
[all …]
DRegularImmutableTableTest.java29 private static final ImmutableSet<Cell<Character, Integer, String>> CELLS =
35 private static final ImmutableSet<Character> ROW_SPACE =
41 private static final SparseImmutableTable<Character, Integer, String> SPARSE =
42 new SparseImmutableTable<Character, Integer, String>(CELLS.asList(), ROW_SPACE,
45 private static final DenseImmutableTable<Character, Integer, String> DENSE =
46 new DenseImmutableTable<Character, Integer, String>(CELLS.asList(), ROW_SPACE,
49 @Override Iterable<ImmutableTable<Character, Integer, String>>
51 return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE, in getTestInstances()
56 for (ImmutableTable<Character, Integer, String> testInstance : in testCellSet()
63 for (ImmutableTable<Character, Integer, String> testInstance : in testValues()
[all …]
DImmutableTableTest.java31 @Override protected Table<String, Integer, Character> create(Object... data) { in create()
32 ImmutableTable.Builder<String, Integer, Character> builder = in create()
36 (Character) data[i + 2]); in create()
42 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder()
43 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder()
48 Table<Character, Integer, String> expectedTable = HashBasedTable.create(); in testBuilder()
52 Table<Character, Integer, String> otherTable = HashBasedTable.create(); in testBuilder()
61 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCell()
62 new ImmutableTable.Builder<Character, Integer, String>(); in testBuilder_withImmutableCell()
69 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCellAndNullContents()
[all …]
DAbstractTableTest.java35 Table<String, Integer, Character> table, Object... data) { in populate()
39 (String) data[i], (Integer) data[i+1], (Character) data[i+2]); in populate()
69 assertEquals((Character) 'a', table.put("foo", 1, 'd')); in testPut()
70 assertEquals((Character) 'd', table.get("foo", 1)); in testPut()
71 assertEquals((Character) 'b', table.get("bar", 1)); in testPut()
73 assertEquals((Character) 'd', table.put("foo", 1, 'd')); in testPut()
74 assertEquals((Character) 'd', table.get("foo", 1)); in testPut()
106 assertEquals((Character) 'b', table.put("bar", 1, null)); in testPutNullReplace()
118 Table<String, Integer, Character> other = HashBasedTable.create(); in testPutAllTable()
123 assertEquals((Character) 'd', table.get("foo", 1)); in testPutAllTable()
[all …]
DHashBasedTableTest.java32 @Override protected Table<String, Integer, Character> create( in create()
34 Table<String, Integer, Character> table = HashBasedTable.create(); in create()
43 Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20); in testCreateWithValidSizes()
45 assertEquals((Character) 'a', table1.get("foo", 1)); in testCreateWithValidSizes()
47 Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0); in testCreateWithValidSizes()
49 assertEquals((Character) 'a', table2.get("foo", 1)); in testCreateWithValidSizes()
51 Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20); in testCreateWithValidSizes()
53 assertEquals((Character) 'a', table3.get("foo", 1)); in testCreateWithValidSizes()
55 Table<String, Integer, Character> table4 = HashBasedTable.create(0, 0); in testCreateWithValidSizes()
57 assertEquals((Character) 'a', table4.get("foo", 1)); in testCreateWithValidSizes()
[all …]
DTransposedTableTest.java29 @Override protected Table<String, Integer, Character> create( in create()
31 Table<Integer, String, Character> original = HashBasedTable.create(); in create()
32 Table<String, Integer, Character> table = Tables.transpose(original); in create()
39 Table<Integer, String, Character> original = HashBasedTable.create(); in testTransposeTransposed()
44 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutOriginalModifiesTranspose()
45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose()
47 assertEquals((Character) 'a', transpose.get("foo", 1)); in testPutOriginalModifiesTranspose()
51 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutTransposeModifiesOriginal()
52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal()
54 assertEquals((Character) 'a', original.get(1, "foo")); in testPutTransposeModifiesOriginal()
[all …]
/external/guava/guava-tests/test/com/google/common/escape/
DUnicodeEscaperTest.java32 "" + Character.MIN_HIGH_SURROGATE + Character.MIN_LOW_SURROGATE;
34 "" + Character.MAX_HIGH_SURROGATE + Character.MAX_LOW_SURROGATE;
68 "[" + Character.MIN_SUPPLEMENTARY_CODE_POINT + "]" + in testSimpleEscaper()
69 "0189[" + Character.MAX_CODE_POINT + "]"; in testSimpleEscaper()
87 final int min = Character.MIN_SUPPLEMENTARY_CODE_POINT; in testSurrogatePairs()
88 final int max = Character.MAX_CODE_POINT; in testSurrogatePairs()
97 Character.toChars(min, dst, 1); in testSurrogatePairs()
98 Character.toChars(s1, dst, 3); in testSurrogatePairs()
99 Character.toChars(s2, dst, 5); in testSurrogatePairs()
100 Character.toChars(s3, dst, 7); in testSurrogatePairs()
[all …]
/external/caliper/examples/src/main/java/examples/
DCharacterBenchmark.java76 Character.digit(chars[ch], 10); in digit()
82 Character.digit((int) chars[ch], 10); in digit()
92 Character.getNumericValue(chars[ch]); in getNumericValue()
98 Character.getNumericValue((int) chars[ch]); in getNumericValue()
108 Character.isDigit(chars[ch]); in isDigit()
114 Character.isDigit((int) chars[ch]); in isDigit()
124 Character.isIdentifierIgnorable(chars[ch]); in isIdentifierIgnorable()
130 Character.isIdentifierIgnorable((int) chars[ch]); in isIdentifierIgnorable()
140 Character.isJavaIdentifierPart(chars[ch]); in isJavaIdentifierPart()
146 Character.isJavaIdentifierPart((int) chars[ch]); in isJavaIdentifierPart()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DTestCharacterListGenerator.java32 implements TestListGenerator<Character> {
34 public SampleElements<Character> samples() { in samples()
39 public List<Character> create(Object... elements) { in create()
40 Character[] array = new Character[elements.length]; in create()
43 array[i++] = (Character) e; in create()
52 protected abstract List<Character> create(Character[] elements); in create()
55 public Character[] createArray(int length) { in createArray()
56 return new Character[length]; in createArray()
61 public List<Character> order(List<Character> insertionOrder) { in order()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleExtensions.java29 private SortedMap<Character, Extension> _map;
32 private static final SortedMap<Character, Extension> EMPTY_MAP =
33 Collections.unmodifiableSortedMap(new TreeMap<Character, Extension>());
46 CALENDAR_JAPANESE._map = new TreeMap<Character, Extension>();
47 …CALENDAR_JAPANESE._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExten… in Character.valueOf()
51 NUMBER_THAI._map = new TreeMap<Character, Extension>();
52 …NUMBER_THAI._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExtension.N… in Character.valueOf()
74 _map = new TreeMap<Character, Extension>(); in LocaleExtensions()
89 _map.put(Character.valueOf(key), e); in LocaleExtensions()
114 _map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), ule); in LocaleExtensions()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
DLocaleExtensions.java25 private SortedMap<Character, Extension> _map;
28 private static final SortedMap<Character, Extension> EMPTY_MAP =
29 Collections.unmodifiableSortedMap(new TreeMap<Character, Extension>());
42 CALENDAR_JAPANESE._map = new TreeMap<Character, Extension>();
43 …CALENDAR_JAPANESE._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExten… in Character.valueOf()
47 NUMBER_THAI._map = new TreeMap<Character, Extension>();
48 …NUMBER_THAI._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExtension.N… in Character.valueOf()
70 _map = new TreeMap<Character, Extension>(); in LocaleExtensions()
85 _map.put(Character.valueOf(key), e); in LocaleExtensions()
110 _map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), ule); in LocaleExtensions()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleExtensions.java25 private SortedMap<Character, Extension> _map;
28 private static final SortedMap<Character, Extension> EMPTY_MAP =
29 Collections.unmodifiableSortedMap(new TreeMap<Character, Extension>());
42 CALENDAR_JAPANESE._map = new TreeMap<Character, Extension>();
43 …CALENDAR_JAPANESE._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExten… in Character.valueOf()
47 NUMBER_THAI._map = new TreeMap<Character, Extension>();
48 …NUMBER_THAI._map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), UnicodeLocaleExtension.N… in Character.valueOf()
70 _map = new TreeMap<Character, Extension>(); in LocaleExtensions()
85 _map.put(Character.valueOf(key), e); in LocaleExtensions()
110 _map.put(Character.valueOf(UnicodeLocaleExtension.SINGLETON), ule); in LocaleExtensions()
[all …]
/external/smali/util/src/main/java/org/jf/util/
DStringUtils.java54 writer.write(Character.forDigit(c >> 12, 16)); in writeEscapedChar()
55 writer.write(Character.forDigit((c >> 8) & 0x0f, 16)); in writeEscapedChar()
56 writer.write(Character.forDigit((c >> 4) & 0x0f, 16)); in writeEscapedChar()
57 writer.write(Character.forDigit(c & 0x0f, 16)); in writeEscapedChar()
79 writer.write(Character.forDigit(c >> 12, 16)); in writeEscapedString()
80 writer.write(Character.forDigit((c >> 8) & 0x0f, 16)); in writeEscapedString()
81 writer.write(Character.forDigit((c >> 4) & 0x0f, 16)); in writeEscapedString()
82 writer.write(Character.forDigit(c & 0x0f, 16)); in writeEscapedString()
108 sb.append(Character.forDigit(c >> 12, 16)); in escapeString()
109 sb.append(Character.forDigit((c >> 8) & 0x0f, 16)); in escapeString()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
DXML.java39 public static final Character AMP = new Character('&');
42 public static final Character APOS = new Character('\'');
45 public static final Character BANG = new Character('!');
48 public static final Character EQ = new Character('=');
51 public static final Character GT = new Character('>');
54 public static final Character LT = new Character('<');
57 public static final Character QUEST = new Character('?');
60 public static final Character QUOT = new Character('"');
63 public static final Character SLASH = new Character('/');
112 if (Character.isWhitespace(string.charAt(i))) { in noSpace()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DRubyTarget.java78 rubyCharValueEscape[ i ] = Character.toString( i ); in RubyRenderer()
158 if ( Character.isLetter( cur ) ) { in snakecase()
159 output_buffer.append( Character.toLowerCase( cur ) ); in snakecase()
161 if ( Character.isDigit( next ) || Character.isWhitespace( next ) ) { in snakecase()
163 } else if ( Character.isLowerCase( cur ) && Character.isUpperCase( next ) ) { in snakecase()
166 … } else if ( ( i < cliff - 1 ) && Character.isUpperCase( cur ) && Character.isUpperCase( next ) ) { in snakecase()
170 if ( Character.isLowerCase( peek ) ) { in snakecase()
176 } else if ( Character.isDigit( cur ) ) { in snakecase()
178 if ( Character.isLetter( next ) ) { in snakecase()
181 } else if ( Character.isWhitespace( cur ) ) { in snakecase()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java56 public static final int BYTES = Character.SIZE / Byte.SIZE;
95 if (value > Character.MAX_VALUE) { in saturatedCast()
96 return Character.MAX_VALUE; in saturatedCast()
98 if (value < Character.MIN_VALUE) { in saturatedCast()
99 return Character.MIN_VALUE; in saturatedCast()
384 public static char[] toArray(Collection<Character> collection) { in toArray()
394 array[i] = (Character) checkNotNull(boxedArray[i]); in toArray()
413 public static List<Character> asList(char... backingArray) { in asList()
421 private static class CharArrayAsList extends AbstractList<Character>
445 @Override public Character get(int index) { in get()
[all …]

12345678910>>...33