/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 | 41 /** distinguished name chars */ 42 private char[] chars; field in class:DistinguishedNameParser 54 // skip preceding space chars, they can present after 56 for (; pos < length && chars[pos] == ' '; pos++) { 65 // attribute type chars 67 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { 78 // skip trailing space chars between attribute type and '=' 80 if (chars[pos] == ' ') { 81 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 | 112 final void append0(char[] chars) { argument 113 int newCount = count + chars.length; 117 System.arraycopy(chars, 0, value, count, chars.length); 121 final void append0(char[] chars, int offset, int length) { argument 122 Arrays.checkOffsetAndCount(chars.length, offset, length); 127 System.arraycopy(chars, offset, value, count, length); 302 final void insert0(int index, char[] chars) { argument 306 if (chars.length != 0) { 307 move(chars 313 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/harmony-tests/src/test/java/org/apache/harmony/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/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/libart/src/main/java/java/lang/ |
H A D | String.java | 300 // Reject chars greater than the Unicode maximum of U+10FFFF. 306 // Encode chars from U+10000 up as surrogate pairs 409 String(int offset, int charCount, char[] chars) { argument 410 this.value = chars; 783 CharBuffer chars = CharBuffer.wrap(this.value, this.offset, this.count); 784 ByteBuffer buffer = charset.encode(chars.asReadOnlyBuffer()); 835 final char[] chars = value; 837 hash = 31*hash + chars[i]; 875 char[] chars = Character.toChars(c); 876 String needle = new String(0, chars [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | HttpCookie.java | 418 * Returns the index of the next character in {@code chars}, or the end 421 private int find(String chars) { argument 423 if (chars.indexOf(input.charAt(c)) != -1) {
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_NativeDecimalFormat.cpp | 181 UniquePtr<UChar[]> chars; local 183 uint32_t desiredCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 188 chars.reset(new UChar[charCount]); 189 charCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 191 return maybeThrowIcuException(env, "unum_getTextAttribute", status) ? NULL : env->NewString(chars.get(), charCount); 280 ScopedUtfChars chars(env, value); 281 if (chars.c_str() == NULL) { 284 StringPiece sp(chars.c_str());
|
H A D | libcore_icu_ICU.cpp | 177 const jchar* chars = ures_getString(currencyId.get(), &charCount, &status); local 178 return (charCount == 0) ? env->NewStringUTF("XXX") : env->NewString(chars, charCount); 194 const UChar* chars = ucurr_getName(icuCurrencyCode.getTerminatedBuffer(), languageTag.c_str(), local 206 chars = icuCurrencyCode.getBuffer(); 210 return (charCount == 0) ? NULL : env->NewString(chars, charCount); 364 const UChar* chars = ures_getStringByIndex(bundle, index, &charCount, &status); local 366 setStringField(env, obj, fieldName, env->NewString(chars, charCount)); 381 const UChar* chars = value.getBuffer(); local 382 setStringField(env, obj, fieldName, env->NewString(chars, value.length()));
|
/libcore/xml/src/main/java/org/kxml2/io/ |
H A D | KXmlParser.java | 1450 private void read(char[] chars) throws IOException, XmlPullParserException { argument 1451 if (position + chars.length > limit && !fillBuffer(chars.length)) { 1452 checkRelaxed("expected: '" + new String(chars) + "' but was EOF"); 1458 for (int i = 0; i < chars.length; i++) { 1459 if (buffer[position + i] != chars[i]) { 1460 checkRelaxed("expected: \"" + new String(chars) + "\" but was \"" 1461 + new String(buffer, position, chars.length) + "...\""); 1465 position += chars.length;
|