Home
last modified time | relevance | path

Searched refs:nextChar (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DBufferedReader.java76 private int nChars, nextChar; field in BufferedReader
107 nextChar = nChars = 0; in BufferedReader()
136 int delta = nextChar - markedChar; in fill()
166 nextChar = nChars = delta; in fill()
176 nextChar = dst; in fill()
192 if (nextChar >= nChars) { in read()
194 if (nextChar >= nChars) in read()
199 if (cb[nextChar] == '\n') { in read()
200 nextChar++; in read()
204 return cb[nextChar++]; in read()
[all …]
DBufferedWriter.java71 private int nChars, nextChar; field in BufferedWriter
107 nextChar = 0; in BufferedWriter()
127 if (nextChar == 0) in flushBuffer()
129 out.write(cb, 0, nextChar); in flushBuffer()
130 nextChar = 0; in flushBuffer()
142 if (nextChar >= nChars) in write()
144 cb[nextChar++] = (char) c; in write()
194 int d = min(nChars - nextChar, t - b); in write()
195 System.arraycopy(cbuf, b, cb, nextChar, d); in write()
197 nextChar += d; in write()
[all …]
DConsole.java408 private int nChars, nextChar; field in Console.LineReader
413 nextChar = nChars = 0; in LineReader()
435 if (nextChar >= nChars) { //fill in read()
442 nextChar = 0; in read()
458 if (leftoverLF && cbuf == rcb && cb[nextChar] == '\n') { in read()
463 nextChar++; in read()
466 while (nextChar < nChars) { in read()
467 c = cbuf[off++] = cb[nextChar]; in read()
468 cb[nextChar++] = 0; in read()
485 if (nextChar == nChars && in.ready()) { in read()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DVersion.java284 int nextChar = 0; in initVersions() local
289 nextChar = 4; in initVersions()
293 nextChar = 3; in initVersions()
297 String uu = cs.subSequence(1, nextChar).toString(); in initVersions()
299 if (cs.length() >= nextChar + 1) { in initVersions()
300 char c = cs.charAt(nextChar); in initVersions()
303 nextChar++; in initVersions()
310 cs = cs.subSequence(nextChar, cs.length()); in initVersions()
/libcore/luni/src/test/java/libcore/dalvik/system/
DEmulatedStackFrameTest.java49 assertEquals('a', reader.nextChar()); in testReaderWriter_allParamTypes()
76 assertEquals('a', reader.nextChar()); in testReaderWriter_allReturnTypes()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java526 filterWriter.putNextChar(returnValueReader.nextChar()); in transform()
581 arguments[i] = reader.nextChar(); in transform()
742 case 'C': { o = reader.nextChar(); break; } in referenceArray()
819 case 'C': { arityArray[i] = reader.nextChar(); break; } in charArray()
942 case 'C': { writer.putNextChar(reader.nextChar()); break; } in copyParameter()
1412 array[i] = reader.nextChar(); in transform()
1866 return (byte) reader.nextChar(); in readPrimitiveAsByte()
1888 return (char) reader.nextChar(); in readPrimitiveAsChar()
1910 return (short) reader.nextChar(); in readPrimitiveAsShort()
1932 return (int) reader.nextChar(); in readPrimitiveAsInt()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DConsole.java144 private int nextChar; field in Console.LineReader
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java390 writer.putNextChar(reader.nextChar()); in copyNext()
488 public char nextChar() { in nextChar() method in EmulatedStackFrame.StackFrameReader
/libcore/ojluni/src/main/java/sun/security/x509/
DAVA.java595 int nextChar = in.read(); in trailingSpace() local
596 if (nextChar == -1) { in trailingSpace()
599 } else if (nextChar == ' ') { in trailingSpace()
601 } else if (nextChar == '\\') { in trailingSpace()