/libcore/luni/src/main/java/java/nio/charset/ |
H A D | Charsets.java | 29 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); argument 35 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); argument 41 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); argument 47 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument 52 char ch = chars[i]; 67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument 76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
|
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 33 if (chars[start + i] != s.charAt(i)) {
|
/libcore/luni/src/main/java/java/io/ |
H A D | StringWriter.java | 107 * @param chars 110 * the index of the first character in {@code chars} to write. 118 public void write(char[] chars, int offset, int count) { argument 119 Arrays.checkOffsetAndCount(chars.length, offset, count); 123 buf.append(chars, offset, count);
|
H A D | OutputStreamWriter.java | 176 private void convert(CharBuffer chars) throws IOException { argument 178 CoderResult result = encoder.encode(chars, bytes, false); 195 CharBuffer chars = CharBuffer.allocate(0); 197 CoderResult result = encoder.encode(chars, bytes, true); 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); 266 convert(chars); 285 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); 286 convert(chars); 323 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); 324 convert(chars); [all...] |
H A D | PipedReader.java | 104 * @param pipeSize the size of the buffer in chars. 121 * @param pipeSize the size of the buffer in chars. 196 char[] chars = new char[1]; 197 int result = read(chars, 0, 1); 198 return result != -1 ? chars[0] : result; 261 /* Copy chars from out to end of buffer first */ 383 synchronized void receive(char[] chars, int offset, int count) throws IOException { argument 384 Arrays.checkOffsetAndCount(chars.length, offset, count); 420 System.arraycopy(chars, offset, buffer, in, length); 433 System.arraycopy(chars, offse [all...] |
H A D | PrintStream.java | 368 * Prints the string representation of the character array {@code chars}. 370 public void print(char[] chars) { argument 371 print(new String(chars, 0, chars.length)); 464 * Prints the string representation of the character array {@code chars} followed by a newline. 466 public void println(char[] chars) { argument 467 println(new String(chars, 0, chars.length));
|
H A D | PrintWriter.java | 480 * Prints the string representation of the character array {@code chars} followed by a newline. 483 public void println(char[] chars) { argument 484 println(new String(chars, 0, chars.length));
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | UrlUtils.java | 129 * Returns the index of the first char of {@code chars} in {@code string} 133 public static int findFirstOf(String string, String chars, int start, int end) { argument 136 if (chars.indexOf(c) != -1) {
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 38 /** distinguished name chars */ 39 private char[] chars; field in class:DistinguishedNameParser 51 // skip preceding space chars, they can present after 53 for (; pos < length && chars[pos] == ' '; pos++) { 62 // attribute type chars 64 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 75 // skip trailing space chars between attribute type and '=' 77 if (chars[pos] == ' ') { 78 for (; pos < length && chars[po [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 50 /** distinguished name chars */ 51 private final char[] chars; field in class:DNParser 63 chars = dn.toCharArray(); 72 // skip preceding space chars, they can present after 74 for (; pos < chars.length && chars[pos] == ' '; pos++) { 76 if (pos == chars.length) { 83 // attribute type chars 85 for (; pos < chars.length && chars[po [all...] |
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | OldCharset_SingleByteAbstractTest.java | 178 static void assertEqualBytes2 (String msg, byte[] expected, byte[] actual, char[] chars) { argument 184 !((chars[i] == 65533)) && (actual[i] == 63)) {
|
H A D | Charset_TestGenerator.java | 101 static final char[] chars = OldCharset_AbstractTest.theseChars(codes); field in class:Charset_TestGenerator 256 genEncoded(Charset.forName("MacRoman"), CharBuffer.wrap(chars)); 257 // genEncoded(Charset.forName(charsetNames[37]), CharBuffer.wrap(chars));
|
H A D | OldCharset_AbstractTest.java | 40 static final char[] chars = new char[codes.length]; // Is filled with field in class:OldCharset_AbstractTest 47 char[] chars = new char[codes.length]; 48 for (int i = 0; i < codes.length; i++) chars[i] = (char) codes[i]; 49 return chars;
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | CharacterBenchmark.java | 33 private char[] chars; field in class:CharacterBenchmark 36 this.chars = characterSet.chars; 48 final char[] chars; field in class:CharacterBenchmark.CharacterSet 50 this.chars = new char[65536]; 52 chars[i] = (char) (i % size); 80 Character.digit(chars[ch], 10); 86 Character.digit((int) chars[ch], 10); 96 Character.getNumericValue(chars[ch]); 102 Character.getNumericValue((int) chars[c [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuilder.java | 243 * @param chars 248 public StringBuilder append(char[] chars) { argument 249 append0(chars);
|
H A D | AbstractStringBuilder.java | 111 final void append0(char[] chars) { argument 112 int newCount = count + chars.length; 116 System.arraycopy(chars, 0, value, count, chars.length); 120 final void append0(char[] chars, int offset, int length) { argument 121 Arrays.checkOffsetAndCount(chars.length, offset, length); 126 System.arraycopy(chars, offset, value, count, length); 311 final void insert0(int index, char[] chars) { argument 315 if (chars.length != 0) { 316 move(chars 322 insert0(int index, char[] chars, int start, int length) argument [all...] |
H A D | StringBuffer.java | 250 * @param chars 254 * if {@code chars} is {@code null}. 256 public synchronized StringBuffer append(char[] chars) { argument 257 append0(chars); 264 * @param chars 273 * length > chars.length}. 275 * if {@code chars} is {@code null}. 277 public synchronized StringBuffer append(char[] chars, int start, int length) { argument 278 append0(chars, start, length); 567 * @param chars 575 insert(int index, char[] chars) argument 600 insert(int index, char[] chars, int start, int length) argument [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ArrayTest.java | 25 private static char[] chars; field in class:ArrayTest 36 chars = new char[] { '\uffff' }; 47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} 59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {} 71 assertEquals(chars[0], Array.getChar(chars, 0)); 83 assertEquals((double) chars[0], Array.getDouble(chars, 0)); 95 assertEquals((float) chars[0], Array.getFloat(chars, [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringTest.java | 41 private static char[] chars; field in class:StringTest.EvilCharsetDecoder 46 chars = out.array(); 55 for (int i = 0; i < chars.length; ++i) { 56 chars[i] = '$'; 213 throw new UnsupportedOperationException("No chars[] field on String!");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
H A D | CharBufferTest.java | 39 private static char[] chars = "123456789a".toCharArray(); field in class:CharBufferTest 42 char[] charscopy = new char[chars.length]; 43 System.arraycopy(chars, 0, charscopy, 0, chars.length);
|
/libcore/luni/src/main/java/java/net/ |
H A D | HttpCookie.java | 403 * Returns the index of the next character in {@code chars}, or the end 406 private int find(String chars) { argument 408 if (chars.indexOf(input.charAt(c)) != -1) {
|
/libcore/libart/src/main/java/java/lang/ |
H A D | String.java | 310 // Reject chars greater than the Unicode maximum of U+10FFFF. 316 // Encode chars from U+10000 up as surrogate pairs 419 String(int offset, int charCount, char[] chars) { argument 420 this.value = chars; 829 CharBuffer chars = CharBuffer.wrap(this.value, this.offset, this.count); 830 ByteBuffer buffer = charset.encode(chars.asReadOnlyBuffer()); 883 final char[] chars = value; 885 hash = 31*hash + chars[i]; 935 char[] chars = Character.toChars(c); 936 String needle = new String(0, chars [all...] |
/libcore/libdvm/src/main/java/java/lang/ |
H A D | String.java | 322 // Reject chars greater than the Unicode maximum of U+10FFFF. 328 // Encode chars from U+10000 up as surrogate pairs 431 String(int offset, int charCount, char[] chars) { argument 432 this.value = chars; 864 CharBuffer chars = CharBuffer.wrap(this.value, this.offset, this.count); 865 ByteBuffer buffer = charset.encode(chars.asReadOnlyBuffer()); 918 final char[] chars = value; 920 hash = 31*hash + chars[i]; 970 char[] chars = Character.toChars(c); 971 String needle = new String(0, chars [all...] |
/libcore/luni/src/main/native/ |
H A D | libcore_icu_NativeDecimalFormat.cpp | 177 UniquePtr<UChar[]> chars; local 179 uint32_t desiredCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 184 chars.reset(new UChar[charCount]); 185 charCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 187 return maybeThrowIcuException(env, "unum_getTextAttribute", status) ? NULL : env->NewString(chars.get(), charCount); 263 ScopedUtfChars chars(env, value); 264 if (chars.c_str() == NULL) { 267 StringPiece sp(chars.c_str());
|
H A D | libcore_icu_ICU.cpp | 168 const jchar* chars = ures_getString(currencyId.get(), &charCount, &status); local 169 return (charCount == 0) ? env->NewStringUTF("XXX") : env->NewString(chars, charCount); 185 const UChar* chars = ucurr_getName(icuCurrencyCode.getTerminatedBuffer(), localeName.c_str(), local 197 chars = icuCurrencyCode.getBuffer(); 201 return (charCount == 0) ? NULL : env->NewString(chars, charCount); 313 const UChar* chars = ures_getStringByIndex(bundle, index, &charCount, &status); local 315 setStringField(env, obj, fieldName, env->NewString(chars, charCount)); 324 const UChar* chars = ures_getStringByKey(bundle, key, &charCount, &status); local 326 setStringField(env, obj, fieldName, env->NewString(chars, charCount)); 341 const UChar* chars local [all...] |