/libcore/luni/src/main/java/java/io/ |
H A D | Reader.java | 189 * Skips {@code charCount} characters in this reader. Subsequent calls of 192 * charCount} characters. 196 * if {@code charCount < 0}. 203 public long skip(long charCount) throws IOException { argument 204 if (charCount < 0) { 205 throw new IllegalArgumentException("charCount < 0: " + charCount); 209 int toRead = charCount < 512 ? (int) charCount : 512; 211 while (skipped < charCount) { [all...] |
H A D | StringReader.java | 201 * Moves {@code charCount} characters in the source string. Unlike the {@link 207 * @param charCount 221 public long skip(long charCount) throws IOException { argument 228 if (maxSkip == 0 || charCount > maxSkip) { 229 charCount = maxSkip; // no rewinding if we're at the end 230 } else if (charCount < minSkip) { 231 charCount = minSkip; 234 pos += charCount; 235 return charCount;
|
H A D | LineNumberReader.java | 236 * Skips {@code charCount} characters in this reader. Subsequent calls to 238 * is used. This implementation skips {@code charCount} number of characters in 244 * if {@code charCount < 0}. 252 public long skip(long charCount) throws IOException { argument 253 if (charCount < 0) { 254 throw new IllegalArgumentException("charCount < 0: " + charCount); 257 for (int i = 0; i < charCount; i++) { 262 return charCount;
|
H A D | StringBufferInputStream.java | 107 * Skips {@code charCount} characters in the source string. It does nothing and 108 * returns 0 if {@code charCount} is negative. Less than {@code charCount} characters are 115 public synchronized long skip(long charCount) { argument 116 if (charCount <= 0) { 121 if (this.count - pos < charCount) { 125 numskipped = (int) charCount; 126 pos += charCount;
|
H A D | PushbackReader.java | 331 * Skips {@code charCount} characters in this reader. This implementation skips 336 * @throws IllegalArgumentException if {@code charCount < 0}. 341 public long skip(long charCount) throws IOException { argument 342 if (charCount < 0) { 343 throw new IllegalArgumentException("charCount < 0: " + charCount); 347 if (charCount == 0) { 353 long requiredFromIn = charCount - availableFromBuffer; 355 pos += charCount; 356 return charCount; [all...] |
H A D | CharArrayReader.java | 250 * Skips {@code charCount} characters in this reader. Subsequent calls to 252 * is used. This method does nothing and returns 0 if {@code charCount <= 0}. 259 public long skip(long charCount) throws IOException { argument 262 if (charCount <= 0) { 266 if (charCount < this.count - pos) { 267 pos = pos + (int) charCount; 268 skipped = charCount;
|
H A D | FilterReader.java | 173 * Skips {@code charCount} characters in this reader. Subsequent calls to {@code read} 186 public long skip(long charCount) throws IOException { argument 188 return in.skip(charCount);
|
H A D | BufferedReader.java | 461 * Skips at most {@code charCount} chars in this stream. Subsequent calls to 469 * @throws IllegalArgumentException if {@code charCount < 0}. 474 public long skip(long charCount) throws IOException { argument 475 if (charCount < 0) { 476 throw new IllegalArgumentException("charCount < 0: " + charCount); 480 if (end - pos >= charCount) { 481 pos += charCount; 482 return charCount; 487 while (read < charCount) { [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | CharArrayBuffer.java | 110 @Override public final CharBuffer get(char[] dst, int srcOffset, int charCount) { argument 111 if (charCount > remaining()) { 114 System.arraycopy(backingArray, arrayOffset + position, dst, srcOffset, charCount); 115 position += charCount; 155 @Override public CharBuffer put(char[] src, int srcOffset, int charCount) { argument 159 if (charCount > remaining()) { 162 System.arraycopy(src, srcOffset, backingArray, arrayOffset + position, charCount); 163 position += charCount;
|
H A D | CharSequenceAdapter.java | 79 public final CharBuffer get(char[] dst, int dstOffset, int charCount) { argument 80 Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount); 81 if (charCount > remaining()) { 84 int newPosition = position + charCount; 128 public final CharBuffer put(char[] src, int srcOffset, int charCount) { argument
|
H A D | ByteBufferAsCharBuffer.java | 100 public CharBuffer get(char[] dst, int dstOffset, int charCount) { argument 104 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, charCount); 106 ((ByteArrayBuffer) byteBuffer).get(dst, dstOffset, charCount); 108 this.position += charCount; 156 public CharBuffer put(char[] src, int srcOffset, int charCount) { argument 160 ((DirectByteBuffer) byteBuffer).put(src, srcOffset, charCount); 162 ((ByteArrayBuffer) byteBuffer).put(src, srcOffset, charCount); 164 this.position += charCount;
|
H A D | CharBuffer.java | 75 * {@code start + charCount}, capacity will be the length of the array. 82 * @param charCount 87 * if either {@code start} or {@code charCount} is invalid. 89 public static CharBuffer wrap(char[] array, int start, int charCount) { argument 90 Arrays.checkOffsetAndCount(array.length, start, charCount); 93 buf.limit = start + charCount; 304 * @param charCount 309 * if either {@code dstOffset} or {@code charCount} is invalid. 311 * if {@code charCount} is greater than {@code remaining()}. 313 public CharBuffer get(char[] dst, int dstOffset, int charCount) { argument 463 put(char[] src, int srcOffset, int charCount) argument [all...] |
H A D | MemoryBlock.java | 177 public final void pokeCharArray(int offset, char[] src, int srcOffset, int charCount, boolean swap) { argument 178 Memory.pokeCharArray(address + offset, src, srcOffset, charCount, swap); 209 public final void peekCharArray(int offset, char[] dst, int dstOffset, int charCount, boolean swap) { argument 210 Memory.peekCharArray(address + offset, dst, dstOffset, charCount, swap);
|
H A D | DirectByteBuffer.java | 119 final void get(char[] dst, int dstOffset, int charCount) { argument 121 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); 122 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap); 362 final void put(char[] src, int srcOffset, int charCount) { argument 364 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount); 365 this.block.pokeCharArray(offset + position, src, srcOffset, charCount, order.needsSwap);
|
H A D | ByteArrayBuffer.java | 114 final void get(char[] dst, int dstOffset, int charCount) { argument 115 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); 272 final void put(char[] src, int srcOffset, int charCount) { argument 273 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
|
/libcore/include/ |
H A D | ScopedJavaUnicodeString.h | 33 const int32_t charCount = env->GetStringLength(mString); local 34 mUnicodeString.setTo(false, mChars, charCount);
|
/libcore/libart/src/main/java/java/lang/ |
H A D | StringFactory.java | 214 public static String newStringFromChars(char[] data, int offset, int charCount) { argument 215 if ((offset | charCount) < 0 || charCount > data.length - offset) { 216 throw new StringIndexOutOfBoundsException(data.length, offset, charCount); 218 return newStringFromChars(offset, charCount, data); 221 static native String newStringFromChars(int offset, int charCount, char[] data); argument
|
H A D | String.java | 224 * if {@code charCount < 0 || offset < 0 || offset + charCount > data.length} 226 public String(char[] data, int offset, int charCount) { argument 236 String(int offset, int charCount, char[] chars) { argument
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInt.java | 125 int charCount = s.length(); 127 if (charCount > 0) { 132 --charCount; 137 if (charCount - i == 0) { 141 for (; i < charCount; ++i) {
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_NativeDecimalFormat.cpp | 188 uint32_t charCount = 0; local 189 uint32_t desiredCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 193 charCount = desiredCount + 1; 194 chars.reset(new UChar[charCount]); 195 charCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 197 return maybeThrowIcuException(env, "unum_getTextAttribute", status) ? NULL : env->NewString(chars.get(), charCount);
|
H A D | libcore_icu_ICU.cpp | 170 int32_t charCount; local 171 const jchar* chars = ures_getString(currencyId.get(), &charCount, &status); 172 return (charCount == 0) ? env->NewStringUTF("XXX") : env->NewString(chars, charCount); 187 int32_t charCount; local 189 nameStyle, &isChoiceFormat, &charCount, &status); 201 charCount = icuCurrencyCode.length(); 204 return (charCount == 0) ? NULL : env->NewString(chars, charCount); 357 int charCount; local [all...] |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 1043 jcharArray xml, jint charOffset, jint charCount) { 1051 size_t byteCount = 2 * charCount; 1042 ExpatParser_appendChars(JNIEnv* env, jobject object, jlong pointer, jcharArray xml, jint charOffset, jint charCount) argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Memory.java | 183 public static native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | CharacterTest.java | 84 assertEquals(1, Character.charCount(c)); 88 assertEquals(2, Character.charCount(c)); 92 assertEquals(2, Character.charCount(Integer.MAX_VALUE));
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Character.java | 1713 public static int charCount(int codePoint) { method in class:Character
|