/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 12 import java.nio.CharBuffer; 51 CharBuffer us = CharBuffer.allocate(0xFF*2); in TestUTF16Converter() 142 CharBuffer us = CharBuffer.allocate(0xFF*2); in TestUTF32Converter() 238 CharBuffer us = CharBuffer.wrap(chars, 0, limit); in runTestASCIIBasedConverter() 245 us = CharBuffer.wrap(chars, i, 1).slice(); in runTestASCIIBasedConverter() 273 us = CharBuffer.wrap(chars, i, 1).slice(); in runTestASCIIBasedConverter() 299 us = CharBuffer.wrap(chars, i, 1).slice(); in runTestASCIIBasedConverter() 327 us = CharBuffer.wrap(chars, 'a', m).slice(); in runTestASCIIBasedConverter() 333 us = CharBuffer.wrap(chars, 'a', n).slice(); in runTestASCIIBasedConverter() 337 us = CharBuffer.wrap(chars, 'a', m).slice(); in runTestASCIIBasedConverter() [all …]
|
D | TestConversion.java | 11 import java.nio.CharBuffer; 43 CharBuffer toUnicodeResult = null; 355 out = encoder.encode(CharBuffer.wrap(cc.unicode.toCharArray())); in FromUnicodeCase() 392 CharBuffer source = CharBuffer.wrap(cc.unicode.toCharArray()); in stepFromUnicode() 671 CharBuffer out = null; in ToUnicodeCase() 680 out = CharBuffer.allocate(cc.bytes.limit()); in ToUnicodeCase() 715 CharBuffer target; in stepToUnicode() 721 target = CharBuffer.allocate(cc.unicode.length() + 4); in stepToUnicode() 1144 String printchars(CharBuffer buf, int pos) { in printchars() 1185 logln("Input: " + printchars(CharBuffer.wrap(cc.unicode), cc.unicode.length())); in checkResultsFromUnicode() [all …]
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | ConverterPerformanceTest.java | 15 import java.nio.CharBuffer; 41 CharBuffer source = CharBuffer.wrap(unicodeBuffer, 0, unicodeBuffer.length); in setup() 206 CharBuffer outBuf = CharBuffer.allocate(unicodeBuffer.length); 237 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); 264 CharBuffer outBuf = CharBuffer.allocate(unicodeBuffer.length); 295 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetEncoderICU.java | 14 import java.nio.CharBuffer; 72 CharBuffer source, ByteBuffer target, IntBuffer offsets, 212 private static final CharBuffer EMPTY = CharBuffer.allocate(0); 253 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { in encodeLoop() 279 abstract CoderResult encodeLoop(CharBuffer source, ByteBuffer target, in encodeLoop() 291 final CoderResult encode(CharBuffer source, ByteBuffer target, in encode() 382 final CoderResult fromUnicodeWithCallback(CharBuffer source, in fromUnicodeWithCallback() 390 CharBuffer replayArray = CharBuffer.allocate(EXT_MAX_UCHARS); in fromUnicodeWithCallback() 392 CharBuffer realSource; in fromUnicodeWithCallback() 750 private final void setSourcePosition(CharBuffer source) { in setSourcePosition() [all …]
|
D | CharsetASCII.java | 12 import java.nio.CharBuffer; 37 protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, in decodeLoop() 108 protected CoderResult decodeLoopCoreOptimized(ByteBuffer source, CharBuffer target, in decodeLoopCoreOptimized() 132 protected CoderResult decodeLoopCoreUnoptimized(ByteBuffer source, CharBuffer target) { in decodeLoopCoreUnoptimized() 185 protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, in encodeLoop() 266 protected CoderResult encodeLoopCoreOptimized(CharBuffer source, ByteBuffer target, in encodeLoopCoreOptimized() 291 …protected CoderResult encodeLoopCoreUnoptimized(CharBuffer source, ByteBuffer target, boolean flus… in encodeLoopCoreUnoptimized() 319 …protected final CoderResult encodeMalformedOrUnmappable(CharBuffer source, int ch, boolean flush) { in encodeMalformedOrUnmappable() 329 private final CoderResult encodeTrail(CharBuffer source, char lead, boolean flush) { in encodeTrail()
|
D | CharsetCallback.java | 11 import java.nio.CharBuffer; 140 ByteBuffer source, CharBuffer target, IntBuffer offsets, in call() 156 CharBuffer source, ByteBuffer target, IntBuffer offsets, in call() 165 CharBuffer source, ByteBuffer target, IntBuffer offsets, 185 ByteBuffer source, CharBuffer target, IntBuffer offsets, 205 CharBuffer source, ByteBuffer target, IntBuffer offsets, 229 ByteBuffer source, CharBuffer target, IntBuffer offsets, 254 CharBuffer source, ByteBuffer target, IntBuffer offsets, 268 ByteBuffer source, CharBuffer target, IntBuffer offsets, 293 CharBuffer source, ByteBuffer target, IntBuffer offsets, [all …]
|
D | Charset88591.java | 11 import java.nio.CharBuffer; 28 protected CoderResult decodeLoopCoreOptimized(ByteBuffer source, CharBuffer target, in decodeLoopCoreOptimized() 41 protected CoderResult decodeLoopCoreUnoptimized(ByteBuffer source, CharBuffer target) { in decodeLoopCoreUnoptimized() 65 protected final CoderResult encodeLoopCoreOptimized(CharBuffer source, ByteBuffer target, in encodeLoopCoreOptimized() 96 …protected final CoderResult encodeLoopCoreUnoptimized(CharBuffer source, ByteBuffer target, boolea… in encodeLoopCoreUnoptimized()
|
D | CharsetDecoderICU.java | 13 import java.nio.CharBuffer; 59 CharBuffer target, IntBuffer offsets, char[] buffer, int length, CoderResult cr) { 195 protected final CoderResult implFlush(CharBuffer out) { in implFlush() 234 protected CoderResult decodeLoop(ByteBuffer in,CharBuffer out){ in decodeLoop() 262 … abstract CoderResult decodeLoop(ByteBuffer in, CharBuffer out, IntBuffer offsets, boolean flush); in decodeLoop() 274 … final CoderResult decode(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean flush) { in decode() 388 …final CoderResult toUnicodeWithCallback(ByteBuffer source, CharBuffer target, IntBuffer offsets, b… in toUnicodeWithCallback() 666 … CharBuffer target, IntBuffer offsets, int sourceIndex) { in toUWriteUChars()
|
D | CharsetBOCU1.java | 10 import java.nio.CharBuffer; 387 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 429 …private int fastSingle(CharBuffer source, ByteBuffer target, IntBuffer offsets){ … in fastSingle() 466 private int getTrail(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in getTrail() 485 private int regularLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in regularLoop() 791 protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, in decodeLoop() 841 private int fastSingle(ByteBuffer source, CharBuffer target, IntBuffer offsets){ in fastSingle() 880 private int getTrail(ByteBuffer source, CharBuffer target, IntBuffer offsets){ in getTrail() 916 private int afterGetTrail(ByteBuffer source, CharBuffer target, IntBuffer offsets){ in afterGetTrail() 1034 private void endLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets){ in endLoop()
|
D | CharsetUTF32.java | 10 import java.nio.CharBuffer; 76 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() 177 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 213 …private final CoderResult encodeChar(CharBuffer source, ByteBuffer target, IntBuffer offsets, char… in encodeChar()
|
D | CharsetUTF16.java | 10 import java.nio.CharBuffer; 94 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() 194 …private final CoderResult decodeTrail(ByteBuffer source, CharBuffer target, IntBuffer offsets, cha… in decodeTrail() 252 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 288 …private final CoderResult encodeChar(CharBuffer source, ByteBuffer target, IntBuffer offsets, char… in encodeChar()
|
D | CharsetMBCS.java | 17 import java.nio.CharBuffer; 100 …CharBuffer mbcsIndex; /* for fast conversion from most of BMP to MBCS (utf8Fri… 1414 static int FROM_U(CharBuffer stage12, CharBuffer stage3, int s1Index, int c) { in FROM_U() 1489 static int findFromU(CharBuffer fromUSection, int length, char u) { in findFromU() 1636 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() 1644 …private CoderResult continueMatchToU(ByteBuffer source, CharBuffer target, IntBuffer offsets, int … in continueMatchToU() 1826 … private CoderResult writeToU(int value, CharBuffer target, IntBuffer offsets, int srcIndex) { in writeToU() 1836 CharBuffer cb = ((CharBuffer) ARRAY(cx, EXT_TO_U_UCHARS_INDEX, char.class)); in writeToU() 1843 …private CoderResult toUWriteCodePoint(int c, CharBuffer target, IntBuffer offsets, int sourceIndex… in toUWriteCodePoint() 1882 …private int toU(int length, ByteBuffer source, CharBuffer target, IntBuffer offsets, int sourceInd… in toU() [all …]
|
D | CharsetSCSU.java | 10 import java.nio.CharBuffer; 234 protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, in decodeLoop() 288 … private int fastSingle(ByteBuffer source, CharBuffer target, IntBuffer offsets, int modeType){ in fastSingle() 354 … private int singleByteMode(ByteBuffer source, CharBuffer target, IntBuffer offsets, int modeType){ in singleByteMode() 580 private void endLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets){ in endLoop() 641 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 763 private int loop(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in loop() 1048 private int getTrail(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in getTrail() 1073 private int getTrailUnicode(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in getTrailUnicode() 1146 private void endLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in endLoop() [all …]
|
D | CharsetHZ.java | 10 import java.nio.CharBuffer; 64 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() 239 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 359 …private CoderResult concatEscape(CharBuffer source, ByteBuffer target, IntBuffer offsets, byte[] s… in concatEscape()
|
D | CharsetCompoundText.java | 10 import java.nio.CharBuffer; 340 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() 419 …err = gbEncoder[i].cnvMBCSFromUnicodeWithOffsets(CharBuffer.wrap(sourceCharArray), tmpTargetBuffer… in encodeLoop() 431 …err = gbEncoder[tmpState].cnvMBCSFromUnicodeWithOffsets(CharBuffer.wrap(sourceCharArray), tmpTarge… in encodeLoop() 507 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CharSequenceReaderTest.java | 22 import java.nio.CharBuffer; 148 reader.read(CharBuffer.allocate(10)); in testMethodsThrowWhenClosed() 212 CharBuffer buf2 = CharBuffer.allocate(expected.length()); in assertReadsCorrectly() 220 buf2 = CharBuffer.allocate(5); in assertReadsCorrectly() 250 assertEquals(-1, reader.read(CharBuffer.allocate(10))); in assertFullyRead()
|
/external/guava/guava/src/com/google/common/io/ |
D | CharStreams.java | 29 import java.nio.CharBuffer; 66 CharBuffer buf = CharBuffer.allocate(BUF_SIZE); in copy() 273 return read(CharBuffer.wrap(cbuf, off, len)); in asReader() 277 public int read(CharBuffer target) throws IOException { in asReader()
|
D | LineReader.java | 25 import java.nio.CharBuffer; 42 private final CharBuffer cbuf = CharBuffer.wrap(buf);
|
D | CharSequenceReader.java | 25 import java.nio.CharBuffer; 62 public synchronized int read(CharBuffer target) throws IOException { in read()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | Normalizer.java | 8 import java.nio.CharBuffer; 730 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in compose() 810 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in decompose() 896 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in normalize() 1020 CharBuffer srcBuffer = CharBuffer.wrap(source, start, limit - start); in quickCheck() 1048 CharBuffer srcBuffer = CharBuffer.wrap(src, start, limit - start); in isNormalized() 1152 return internalCompare(CharBuffer.wrap(s1, s1Start, s1Limit-s1Start), in compare() 1153 CharBuffer.wrap(s2, s2Start, s2Limit-s2Start), in compare() 1242 return internalCompare(CharBuffer.wrap(s1), CharBuffer.wrap(s2), options); in compare() 1330 CharBuffer rightBuffer=CharBuffer.wrap(right, rightStart, rightLimit-rightStart); in concatenate() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | Normalizer.java | 9 import java.nio.CharBuffer; 747 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in compose() 831 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in decompose() 921 CharBuffer srcBuffer = CharBuffer.wrap(src, srcStart, srcLimit - srcStart); in normalize() 1051 CharBuffer srcBuffer = CharBuffer.wrap(source, start, limit - start); in quickCheck() 1080 CharBuffer srcBuffer = CharBuffer.wrap(src, start, limit - start); in isNormalized() 1185 return internalCompare(CharBuffer.wrap(s1, s1Start, s1Limit-s1Start), in compare() 1186 CharBuffer.wrap(s2, s2Start, s2Limit-s2Start), in compare() 1273 return internalCompare(CharBuffer.wrap(s1), CharBuffer.wrap(s2), options); in compare() 1360 CharBuffer rightBuffer=CharBuffer.wrap(right, rightStart, rightLimit-rightStart); in concatenate() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/ |
D | InputFile.java | 15 import java.nio.CharBuffer; 146 CharBuffer cb = CharBuffer.wrap(chars); in encode() 162 CharBuffer cb; in decode()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | Relay.java | 30 import java.nio.CharBuffer; 56 private CharBuffer charBuffer; 97 charBuffer = CharBuffer.allocate(BUFFER_SIZE); in run()
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/util/ |
D | UriEncoder.java | 21 import java.nio.CharBuffer; 51 CharBuffer chars = UTF8Decoder.decode(buff); in decode()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/ |
D | IBM437.java | 21 import java.nio.CharBuffer; 59 protected CoderResult decodeLoop(ByteBuffer bb, CharBuffer cb){ in decodeLoop() 156 protected CoderResult encodeLoop(CharBuffer cb, ByteBuffer bb){ in encodeLoop()
|