Searched defs:charCount (Results 1 - 25 of 27) sorted by last modified time

12

/libcore/include/
H A DScopedJavaUnicodeString.h30 const int32_t charCount = env->GetStringLength(mString); local
31 mUnicodeString.setTo(false, mChars, charCount);
/libcore/luni/src/main/java/java/io/
H A DCharArrayReader.java261 * 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 DFilterReader.java182 * 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);
H A DLineNumberReader.java245 * 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 DPushbackReader.java342 * 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 DReader.java202 * 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 DStringBufferInputStream.java128 * 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 DStringReader.java211 * 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;
/libcore/luni/src/main/java/java/lang/
H A DCharacter.java1750 public static int charCount(int codePoint) { method in class:Character
H A DString.java415 * 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...]
/libcore/luni/src/main/java/java/nio/
H A DCharArrayBuffer.java67 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 DCharBuffer.java75 * {@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 DCharSequenceAdapter.java79 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 DCharToByteBufferAdapter.java101 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 DDirectByteBuffer.java47 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 DHeapByteBuffer.java69 final void get(char[] dst, int dstOffset, int charCount) { argument
70 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
H A DMemoryBlock.java156 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 DReadOnlyCharArrayBuffer.java90 public final CharBuffer put(char[] src, int srcOffset, int charCount) { argument
H A DReadWriteCharArrayBuffer.java107 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 DReadWriteDirectByteBuffer.java106 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 DReadWriteHeapByteBuffer.java116 final void put(char[] src, int srcOffset, int charCount) { argument
117 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
/libcore/luni/src/main/java/libcore/io/
H A DMemory.java159 public static native void peekCharArray(int address, char[] dst, int dstOffset, int charCount, boolean swap); argument
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp165 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 Dlibcore_icu_NativeBreakIterator.cpp55 size_t charCount = env->GetStringLength(mString); local
57 ubrk_setText(mIt, mChars, charCount, &status);
H A Dlibcore_icu_NativeDecimalFormat.cpp178 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);

Completed in 246 milliseconds

12