/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | DNParser.java | 51 private final char[] chars; field in DNParser 63 chars = dn.toCharArray(); in DNParser() 74 for (; pos < chars.length && chars[pos] == ' '; pos++) { in nextAT() 76 if (pos == chars.length) { in nextAT() 85 for (; pos < chars.length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT() 89 if (pos >= chars.length) { in nextAT() 99 if (chars[pos] == ' ') { in nextAT() 100 for (; pos < chars.length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT() 103 if (chars[pos] != '=' || pos == chars.length) { in nextAT() 113 for (; pos < chars.length && chars[pos] == ' '; pos++) { in nextAT() [all …]
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | DistinguishedNameParser.java | 39 private char[] chars; field in DistinguishedNameParser 53 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT() 64 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT() 77 if (chars[pos] == ' ') { in nextAT() 78 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT() 81 if (chars[pos] != '=' || pos == length) { in nextAT() 90 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT() 95 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT() 96 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT() 97 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharacterBenchmark.java | 33 private char[] chars; field in CharacterBenchmark 36 this.chars = characterSet.chars; in setUp() 48 final char[] chars; field in CharacterBenchmark.CharacterSet 50 this.chars = new char[65536]; in CharacterSet() 52 chars[i] = (char) (i % size); in CharacterSet() 80 Character.digit(chars[ch], 10); in timeDigit() 86 Character.digit((int) chars[ch], 10); in timeDigit() 96 Character.getNumericValue(chars[ch]); in timeGetNumericValue() 102 Character.getNumericValue((int) chars[ch]); in timeGetNumericValue() 112 Character.isDigit(chars[ch]); in timeIsDigit() [all …]
|
D | CharsetBenchmark.java | 78 …private static byte[] toDirectMappedBytes(char[] chars, int offset, int length, int maxValidChar) { in toDirectMappedBytes() argument 82 int ch = chars[o++]; in toDirectMappedBytes() 88 private static byte[] toUtf8Bytes(char[] chars, int offset, int length) { in toUtf8Bytes() argument 90 toUtf8Bytes(chars, offset, length, result); in toUtf8Bytes() 94 private static void toUtf8Bytes(char[] chars, int offset, int length, UnsafeByteSequence out) { in toUtf8Bytes() argument 97 int ch = chars[i]; in toUtf8Bytes() 108 char low = (i + 1 != end) ? chars[i + 1] : '\u0000'; in toUtf8Bytes()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | Charsets.java | 48 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); in toAsciiBytes() argument 54 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); in toIsoLatin1Bytes() argument 60 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); in toUtf8Bytes() argument 66 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { in toBigEndianUtf16Bytes() argument 71 char ch = chars[i]; in toBigEndianUtf16Bytes() 86 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); in asciiBytesToChars() argument 95 …ublic static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); in isoLatin1BytesToChars() argument
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldInputStreamReaderTest.java | 118 char[] chars = new char[source.length()]; in testReadcharArrayintint() local 119 assertEquals(0, reader.read(chars, 0, 0)); in testReadcharArrayintint() 120 assertEquals(0, chars[0]); in testReadcharArrayintint() 121 assertEquals(3, reader.read(chars, 0, 3)); in testReadcharArrayintint() 122 assertEquals(5, reader.read(chars, 3, 5)); in testReadcharArrayintint() 123 assertEquals(source.length() - 8, reader.read(chars, 8, in testReadcharArrayintint() 124 chars.length - 8)); in testReadcharArrayintint() 125 assertTrue(Arrays.equals(chars, source.toCharArray())); in testReadcharArrayintint() 126 assertEquals(-1, reader.read(chars, 0, chars.length)); in testReadcharArrayintint() 127 assertTrue(Arrays.equals(chars, source.toCharArray())); in testReadcharArrayintint() [all …]
|
D | OldOutputStreamWriterTest.java | 294 char[] chars = new char[maxChar]; in testEncodeCharset() local 296 chars[i] = (char) i; in testEncodeCharset() 302 charsOut.write(chars); in testEncodeCharset() 339 char[] chars = testString.toCharArray(); in test_write$CII() local 347 writer.write(chars, -1, 1); in test_write$CII() 354 writer.write(chars, 0, -1); in test_write$CII() 375 writer.write(chars, 1, chars.length); in test_write$CII() 381 writer.write(chars, 0, chars.length + 1); in test_write$CII() 387 writer.write(chars, chars.length, 1); in test_write$CII() 393 writer.write(chars, chars.length + 1, 0); in test_write$CII() [all …]
|
D | DataOutputStreamTest.java | 92 char[] chars = new char[65535 - 1 - 2]; in test_writeUTF() local 93 Arrays.fill(chars, 0, chars.length, 'a'); in test_writeUTF() 94 chars[0] = '\u0666'; // a two-byte character in test_writeUTF() 95 chars[1] = '\u2603'; // a three-byte character in test_writeUTF() 96 String maxLength = new String(chars); in test_writeUTF()
|
D | OldBufferedReaderTest.java | 103 char[] chars = new char[256]; in test_markI() local 105 chars[i] = (char) i; in test_markI() 107 chars)), 12); in test_markI() 119 in = new BufferedReader(new Support_StringReader(new String(chars)), 12); in test_markI() 151 char[] chars = new char[256]; in test_read() local 153 chars[i] = (char) i; in test_read() 155 chars)), 12); in test_read() 162 .equals(new String(chars, 1, 14))); in test_read()
|
D | OutputStreamWriterTest.java | 36 char[] chars = new char[16*1024]; in testFlushCount() local 37 Arrays.fill(chars, 'x'); in testFlushCount() 39 writer.write(chars); in testFlushCount()
|
D | OldDataOutputStreamTest.java | 162 char[] chars = new char[unihw.length()]; in test_writeCharsLjava_lang_String() local 164 for (i = 0; i < a; i++) chars[i] = dis.readChar(); in test_writeCharsLjava_lang_String() 166 unihw, new String(chars, 0, i) in test_writeCharsLjava_lang_String()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 25 private static char[] chars; field in ArrayTest 36 chars = new char[] { '\uffff' }; in setUp() 47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean() 59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte() 71 assertEquals(chars[0], Array.getChar(chars, 0)); in testGetChar() 83 assertEquals((double) chars[0], Array.getDouble(chars, 0)); in testGetDouble() 95 assertEquals((float) chars[0], Array.getFloat(chars, 0)); in testGetFloat() 107 assertEquals((int) chars[0], Array.getInt(chars, 0)); in testGetInt() 119 assertEquals((long) chars[0], Array.getLong(chars, 0)); in testGetLong() 131 try { Array.getShort(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort() [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | OutputStreamWriter.java | 176 private void convert(CharBuffer chars) throws IOException { in convert() argument 178 CoderResult result = encoder.encode(chars, bytes, false); in convert() 195 CharBuffer chars = CharBuffer.allocate(0); in drainEncoder() local 197 CoderResult result = encoder.encode(chars, bytes, true); in drainEncoder() 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); in write() local 266 convert(chars); in write() 285 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); in write() local 286 convert(chars); in write() 323 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); in write() local 324 convert(chars); in write()
|
D | PipedReader.java | 196 char[] chars = new char[1]; in read() local 197 int result = read(chars, 0, 1); in read() 198 return result != -1 ? chars[0] : result; in read() 391 synchronized void receive(char[] chars, int offset, int count) throws IOException { in receive() argument 392 Arrays.checkOffsetAndCount(chars.length, offset, count); in receive() 428 System.arraycopy(chars, offset, buffer, in, length); in receive() 441 System.arraycopy(chars, offset, buffer, in, length); in receive()
|
D | BufferedWriter.java | 274 char[] chars = new char[count]; in write() local 275 str.getChars(offset, offset + count, chars, 0); in write() 276 out.write(chars, 0, count); in write() 294 char[] chars = new char[count]; in write() local 295 str.getChars(offset, offset + available, chars, 0); in write() 296 out.write(chars, 0, available); in write()
|
D | StringWriter.java | 118 public void write(char[] chars, int offset, int count) { in write() argument 119 Arrays.checkOffsetAndCount(chars.length, offset, count); in write() 123 buf.append(chars, offset, count); in write()
|
D | PrintStream.java | 370 public void print(char[] chars) { in print() argument 371 print(new String(chars, 0, chars.length)); in print() 466 public void println(char[] chars) { in println() argument 467 println(new String(chars, 0, chars.length)); in println()
|
/libcore/luni/src/main/native/ |
D | java_nio_charset_Charsets.cpp | 114 ScopedCharArrayRW chars(env, javaChars); in Charsets_asciiBytesToChars() local 115 if (chars.get() == NULL) { in Charsets_asciiBytesToChars() 120 jchar* dst = &chars[0]; in Charsets_asciiBytesToChars() 133 ScopedCharArrayRW chars(env, javaChars); in Charsets_isoLatin1BytesToChars() local 134 if (chars.get() == NULL) { in Charsets_isoLatin1BytesToChars() 139 jchar* dst = &chars[0]; in Charsets_isoLatin1BytesToChars() 151 ScopedCharArrayRO chars(env, javaChars); in charsToBytes() local 152 if (chars.get() == NULL) { in charsToBytes() 162 const jchar* src = &chars[offset]; in charsToBytes() 184 ScopedCharArrayRO chars(env, javaChars); in Charsets_toUtf8Bytes() local [all …]
|
D | toStringArray.h | 52 const jchar* chars = (*getter)(&charCount); in toStringArray16() local 53 ScopedLocalRef<jstring> s(env, env->NewString(chars, charCount)); in toStringArray16()
|
/libcore/benchmarks/src/benchmarks/ |
D | StringIterationBenchmark.java | 49 char[] chars = s.toCharArray(); in timeStringIteration2() local 50 for (int i = 0, length = chars.length; i < length; ++i) { in timeStringIteration2() 51 ch = chars[i]; in timeStringIteration2() 58 char[] chars = s.toCharArray(); in timeStringToCharArray() local
|
/libcore/luni/src/main/java/java/lang/ |
D | StringBuffer.java | 256 public synchronized StringBuffer append(char[] chars) { in append() argument 257 append0(chars); in append() 277 public synchronized StringBuffer append(char[] chars, int start, int length) { in append() argument 278 append0(chars, start, length); in append() 575 public synchronized StringBuffer insert(int index, char[] chars) { in insert() argument 576 insert0(index, chars); in insert() 600 public synchronized StringBuffer insert(int index, char[] chars, int start, int length) { in insert() argument 601 insert0(index, chars, start, length); in insert()
|
D | AbstractStringBuilder.java | 111 final void append0(char[] chars) { in append0() argument 112 int newCount = count + chars.length; in append0() 116 System.arraycopy(chars, 0, value, count, chars.length); in append0() 120 final void append0(char[] chars, int offset, int length) { in append0() argument 121 Arrays.checkOffsetAndCount(chars.length, offset, length); in append0() 126 System.arraycopy(chars, offset, value, count, length); in append0() 311 final void insert0(int index, char[] chars) { in insert0() argument 315 if (chars.length != 0) { in insert0() 316 move(chars.length, index); in insert0() 317 System.arraycopy(chars, 0, value, index, chars.length); in insert0() [all …]
|
/libcore/luni/src/main/java/libcore/internal/ |
D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { in contentEquals() argument 33 if (chars[start + i] != s.charAt(i)) { in contentEquals()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldScannerTest.java | 340 char[] chars = new char[2048]; in test_findInLine_LString() local 341 Arrays.fill(chars, 'a'); in test_findInLine_LString() 343 stringBuilder.append(chars); in test_findInLine_LString() 466 char [] chars = new char[1024]; in test_skip_LPattern() local 467 Arrays.fill(chars, 'a'); in test_skip_LPattern() 468 stringBuilder.append(chars); in test_skip_LPattern() 477 chars = new char[102400]; in test_skip_LPattern() 478 Arrays.fill(chars, 'a'); in test_skip_LPattern() 480 stringBuilder.append(chars); in test_skip_LPattern()
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | UrlUtils.java | 133 public static int findFirstOf(String string, String chars, int start, int end) { in findFirstOf() argument 136 if (chars.indexOf(c) != -1) { in findFirstOf()
|