/libcore/luni/src/main/java/java/io/ |
H A D | Reader.java | 202 * Skips {@code charCount} characters in this reader. Subsequent calls of 205 * charCount} characters. 209 * if {@code charCount < 0}. 216 public long skip(long charCount) throws IOException { argument 217 if (charCount < 0) { 218 throw new IllegalArgumentException("charCount < 0: " + charCount); 222 int toRead = charCount < 512 ? (int) charCount : 512; 224 while (skipped < charCount) { [all...] |
H A D | StringReader.java | 211 * Moves {@code charCount} characters in the source string. Unlike the {@link 217 * @param charCount 231 public long skip(long charCount) throws IOException { argument 238 if (maxSkip == 0 || charCount > maxSkip) { 239 charCount = maxSkip; // no rewinding if we're at the end 240 } else if (charCount < minSkip) { 241 charCount = minSkip; 244 pos += charCount; 245 return charCount;
|
H A D | LineNumberReader.java | 245 * Skips {@code charCount} characters in this reader. Subsequent calls to 247 * is used. This implementation skips {@code charCount} number of characters in 253 * if {@code charCount < 0}. 261 public long skip(long charCount) throws IOException { argument 262 if (charCount < 0) { 263 throw new IllegalArgumentException("charCount < 0: " + charCount); 266 for (int i = 0; i < charCount; i++) { 271 return charCount;
|
H A D | StringBufferInputStream.java | 128 * Skips {@code charCount} characters in the source string. It does nothing and 129 * returns 0 if {@code charCount} is negative. Less than {@code charCount} characters are 136 public synchronized long skip(long charCount) { argument 137 if (charCount <= 0) { 142 if (this.count - pos < charCount) { 146 numskipped = (int) charCount; 147 pos += charCount;
|
H A D | PushbackReader.java | 342 * Skips {@code charCount} characters in this reader. This implementation skips 347 * @throws IllegalArgumentException if {@code charCount < 0}. 352 public long skip(long charCount) throws IOException { argument 353 if (charCount < 0) { 354 throw new IllegalArgumentException("charCount < 0: " + charCount); 358 if (charCount == 0) { 364 long requiredFromIn = charCount - availableFromBuffer; 366 pos += charCount; 367 return charCount; [all...] |
H A D | CharArrayReader.java | 261 * Skips {@code charCount} characters in this reader. Subsequent calls to 263 * is used. This method does nothing and returns 0 if {@code charCount <= 0}. 270 public long skip(long charCount) throws IOException { argument 273 if (charCount <= 0) { 277 if (charCount < this.count - pos) { 278 pos = pos + (int) charCount; 279 skipped = charCount;
|
H A D | FilterReader.java | 182 * Skips {@code charCount} characters in this reader. Subsequent calls to {@code read} 195 public long skip(long charCount) throws IOException { argument 197 return in.skip(charCount);
|
/libcore/include/ |
H A D | ScopedJavaUnicodeString.h | 30 const int32_t charCount = env->GetStringLength(mString); local 31 mUnicodeString.setTo(false, mChars, charCount);
|
/libcore/luni/src/main/java/java/nio/ |
H A D | CharArrayBuffer.java | 67 public final CharBuffer get(char[] dst, int srcOffset, int charCount) { argument 68 if (charCount > remaining()) { 71 System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount); 72 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 | CharToByteBufferAdapter.java | 101 public CharBuffer get(char[] dst, int dstOffset, int charCount) { argument 105 ((DirectByteBuffer) byteBuffer).get(dst, dstOffset, charCount); 107 ((HeapByteBuffer) byteBuffer).get(dst, dstOffset, charCount); 109 this.position += charCount; 157 public CharBuffer put(char[] src, int srcOffset, int charCount) { argument 161 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, charCount); 163 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, charCount); 165 this.position += charCount;
|
H A D | ReadWriteCharArrayBuffer.java | 107 public CharBuffer put(char[] src, int srcOffset, int charCount) { argument 108 if (charCount > remaining()) { 111 System.arraycopy(src, srcOffset, backingArray, offset + position, charCount); 112 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; 315 * @param charCount 320 * if either {@code dstOffset} or {@code charCount} is invalid. 322 * if {@code charCount} is greater than {@code remaining()}. 324 public CharBuffer get(char[] dst, int dstOffset, int charCount) { argument 474 put(char[] src, int srcOffset, int charCount) argument [all...] |
H A D | MemoryBlock.java | 156 public final void pokeCharArray(int offset, char[] src, int srcOffset, int charCount, boolean swap) { argument 157 Memory.pokeCharArray(address + offset, src, srcOffset, charCount, swap); 188 public final void peekCharArray(int offset, char[] dst, int dstOffset, int charCount, boolean swap) { argument 189 Memory.peekCharArray(address + offset, dst, dstOffset, charCount, swap);
|
H A D | ReadOnlyCharArrayBuffer.java | 90 public final CharBuffer put(char[] src, int srcOffset, int charCount) { argument
|
H A D | DirectByteBuffer.java | 47 final void get(char[] dst, int dstOffset, int charCount) { argument 48 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); 49 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap);
|
H A D | ReadWriteDirectByteBuffer.java | 106 final void put(char[] src, int srcOffset, int charCount) { argument 107 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount); 108 this.block.pokeCharArray(offset + position, src, srcOffset, charCount, order.needsSwap);
|
H A D | HeapByteBuffer.java | 69 final void get(char[] dst, int dstOffset, int charCount) { argument 70 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
|
H A D | ReadWriteHeapByteBuffer.java | 116 final void put(char[] src, int srcOffset, int charCount) { argument 117 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
|
/libcore/luni/src/main/native/ |
H A D | toStringArray.h | 51 int32_t charCount; local 52 const jchar* chars = (*getter)(&charCount); 53 ScopedLocalRef<jstring> s(env, env->NewString(chars, charCount));
|
H A D | libcore_icu_ICU.cpp | 165 int32_t charCount; local 166 const jchar* chars = ures_getString(currencyId.get(), &charCount, &status); 167 return (charCount == 0) ? env->NewStringUTF("XXX") : env->NewString(chars, charCount); 176 int32_t charCount; local 178 UCURR_LONG_NAME, &isChoiceFormat, &charCount, &status); 182 charCount = icuCurrencyCode.length(); 184 return (charCount == 0) ? NULL : env->NewString(chars, charCount); 208 int32_t charCount; local 316 int charCount; local 327 int charCount; local 652 operator ()(int32_t* charCount) argument [all...] |
H A D | libcore_icu_NativeDecimalFormat.cpp | 178 uint32_t charCount = 0; local 179 uint32_t desiredCount = unum_getTextAttribute(fmt, attr, chars.get(), charCount, &status); 183 charCount = desiredCount + 1; 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);
|
H A D | libcore_icu_NativeBreakIterator.cpp | 55 size_t charCount = env->GetStringLength(mString); local 57 ubrk_setText(mIt, mChars, charCount, &status);
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInt.java | 161 int charCount = s.length(); 163 if (charCount > 0) { 168 --charCount; 173 if (charCount - i == 0) { 177 for (; i < charCount; ++i) {
|
/libcore/luni/src/main/java/java/lang/ |
H A D | String.java | 415 * if {@code charCount < 0 || offset < 0 || offset + charCount > data.length} 417 public String(char[] data, int offset, int charCount) { argument 418 if ((offset | charCount) < 0 || charCount > data.length - offset) { 419 throw failedBoundsCheck(data.length, offset, charCount); 422 this.value = new char[charCount]; 423 this.count = charCount; 431 String(int offset, int charCount, char[] chars) { argument 434 this.count = charCount; [all...] |