Home
last modified time | relevance | path

Searched refs:charBuffer (Results 1 – 15 of 15) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DDecompressionTest.java40 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; in decompressTest() local
45 charBuffer, 0, charBuffer.length); in decompressTest()
52 logln(charBuffer, 0, count1); in decompressTest()
53 s.append(charBuffer, 0, count1); in decompressTest()
57 charBuffer, count1, in decompressTest()
58 charBuffer.length); in decompressTest()
65 logln(charBuffer, count1, count2); in decompressTest()
67 s.append(charBuffer, count1, count2); in decompressTest()
70 logln(charBuffer, 0, count1 + count2); in decompressTest()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
DDecompressionTest.java39 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; in decompressTest() local
44 charBuffer, 0, charBuffer.length); in decompressTest()
51 logln(charBuffer, 0, count1); in decompressTest()
52 s.append(charBuffer, 0, count1); in decompressTest()
56 charBuffer, count1, in decompressTest()
57 charBuffer.length); in decompressTest()
64 logln(charBuffer, count1, count2); in decompressTest()
66 s.append(charBuffer, count1, count2); in decompressTest()
69 logln(charBuffer, 0, count1 + count2); in decompressTest()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java55 private CharBuffer charBuffer; field in Relay
96 charBuffer = CharBuffer.allocate(BUFFER_SIZE); in run()
109 charArray = charBuffer.array(); in run()
130 result = decoder.decode(byteBuffer, charBuffer, false); in run()
139 offset = charBuffer.position(); in run()
147 EastAsianWidth.measure(charArray, 0, charBuffer.position(), wideAttribute, in run()
150 buffer.putString(charArray, wideAttribute, 0, charBuffer.position()); in run()
151 charBuffer.clear(); in run()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeDecompressor.java168 char [] charBuffer, in decompress() argument
183 if(charBuffer.length < 2 || (charBufferLimit - charBufferStart) < 2) in decompress()
209 charBuffer, charBufferStart, in decompress()
260 charBuffer[ucPos++] = (char) in decompress()
284 charBuffer[ucPos++] = (char) in decompress()
286 charBuffer[ucPos++] = (char) in decompress()
317 charBuffer[ucPos++] = (char) aByte; in decompress()
335 charBuffer[ucPos++] = (char) in decompress()
363 charBuffer[ucPos++] = (char) in decompress()
499 charBuffer[ucPos++] = (char) in decompress()
[all …]
DUnicodeCompressor.java355 public int compress(char [] charBuffer, in compress() argument
399 curUC = charBuffer[ucPos++]; in compress()
403 nextUC = charBuffer[ucPos]; in compress()
486 forwardUC = charBuffer[ucPos + 1]; in compress()
552 forwardUC = charBuffer[ucPos + 1]; in compress()
622 curUC = charBuffer[ucPos++]; in compress()
626 nextUC = charBuffer[ucPos]; in compress()
748 forwardUC = charBuffer[ucPos + 1]; in compress()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeDecompressor.java171 char [] charBuffer, in decompress() argument
186 if(charBuffer.length < 2 || (charBufferLimit - charBufferStart) < 2) in decompress()
212 charBuffer, charBufferStart, in decompress()
263 charBuffer[ucPos++] = (char) in decompress()
287 charBuffer[ucPos++] = (char) in decompress()
289 charBuffer[ucPos++] = (char) in decompress()
320 charBuffer[ucPos++] = (char) aByte; in decompress()
338 charBuffer[ucPos++] = (char) in decompress()
366 charBuffer[ucPos++] = (char) in decompress()
502 charBuffer[ucPos++] = (char) in decompress()
[all …]
DUnicodeCompressor.java358 public int compress(char [] charBuffer, in compress() argument
402 curUC = charBuffer[ucPos++]; in compress()
406 nextUC = charBuffer[ucPos]; in compress()
489 forwardUC = charBuffer[ucPos + 1]; in compress()
555 forwardUC = charBuffer[ucPos + 1]; in compress()
625 curUC = charBuffer[ucPos++]; in compress()
629 nextUC = charBuffer[ucPos]; in compress()
751 forwardUC = charBuffer[ucPos + 1]; in compress()
/external/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp35 UChar *charBuffer; in readFile() local
111 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); in readFile()
112 if(charBuffer == 0) { in readFile()
118 myText.extract(0, myText.length(), charBuffer); in readFile()
119 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
121 return charBuffer; in readFile()
/external/icu/icu4c/source/io/
Dustdio.c321 char charBuffer[UFILE_CHARBUFFER_SIZE]; in u_file_write_flush() local
322 char *myTarget = charBuffer; in u_file_write_flush()
359 charBuffer + UFILE_CHARBUFFER_SIZE, in u_file_write_flush()
375 numConverted = (int32_t)(myTarget - charBuffer); in u_file_write_flush()
379 fwrite(charBuffer, in u_file_write_flush()
386 myTarget = charBuffer; in u_file_write_flush()
416 char charBuffer[UFILE_CHARBUFFER_SIZE]; in ufile_fill_uchar_buffer() local
447 char *retStr = fgets(charBuffer, ufmt_min(maxCPBytes, UFILE_CHARBUFFER_SIZE), f->fFile); in ufile_fill_uchar_buffer()
448 bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0); in ufile_fill_uchar_buffer()
452 bytesRead = (int32_t)fread(charBuffer, in ufile_fill_uchar_buffer()
[all …]
/external/tinyxml2/
Dtinyxml2.cpp1426 charBuffer( 0 ) in XMLDocument()
1435 delete [] charBuffer; in ~XMLDocument()
1457 delete [] charBuffer; in InitDocument()
1458 charBuffer = 0; in InitDocument()
1544 charBuffer = new char[size+1]; in LoadFile()
1545 size_t read = fread( charBuffer, 1, size, fp ); in LoadFile()
1551 charBuffer[size] = 0; in LoadFile()
1553 const char* p = charBuffer; in LoadFile()
1561 ParseDeep( charBuffer + (p-charBuffer), 0 ); in LoadFile()
1613 charBuffer = new char[ len+1 ]; in Parse()
[all …]
Dtinyxml2.h1194 char* charBuffer; variable
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DUConverterDataReader.java514 CharBuffer charBuffer = byteBuffer.asCharBuffer(); in readMBCSTable() local
518 charBuffer.get(mbcsTable.unicodeCodeUnits); in readMBCSTable()
536 charBuffer.get(mbcsTable.fromUnicodeTable); in readMBCSTable()
/external/icu/icu4c/source/test/iotest/
Dfiletst.c599 char charBuffer[2048]; in TestfgetsLineCount() local
629 returnedCharBuffer = fgets(charBuffer, UPRV_LENGTHOF(charBuffer), stdFile); in TestfgetsLineCount()
636 if (returnedCharBuffer != charBuffer) { in TestfgetsLineCount()
640 u_uastrncpy(expectedBuffer, charBuffer, (int32_t)strlen(charBuffer)+1); in TestfgetsLineCount()
/external/icu/icu4c/source/test/cintltst/
Dccapitst.c1689 char charBuffer[21]; /* Leave at an odd number for alignment testing */ in TestConvertSafeClone() local
1698 const char *charBufferLimit = charBuffer + UPRV_LENGTHOF(charBuffer); in TestConvertSafeClone()
1846 pCharBuffer = charBuffer; in TestConvertSafeClone()
1874 pConstCharBuffer = charBuffer; in TestConvertSafeClone()
3599 char charBuffer[2] = {1, 1}; in InvalidArguments() local
3601 char *charsPtr = charBuffer; in InvalidArguments()
3640 if (charBuffer[0] != 1 || charBuffer[1] != 1 in InvalidArguments()
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestCharset.java2787 CharBuffer charBuffer = CharBuffer.allocate(0x90); in TestCharsetASCIIOverFlow() local
2794 charBuffer.put((char)j); in TestCharsetASCIIOverFlow()
2800 charBuffer.limit(charBufferLimit = charBuffer.position()); in TestCharsetASCIIOverFlow()
2801 charBuffer.position(0); in TestCharsetASCIIOverFlow()
2815 smBufEncode(encoder, "ASCII", charBuffer, byteBufferTest, true, false); in TestCharsetASCIIOverFlow()
5803 CharBuffer charBuffer = CharBuffer.allocate(firstLine.length() + secondLine.length()); in TestCharsetASCII8859BufferHandling() local
5804 charBuffer.put(firstLine); in TestCharsetASCII8859BufferHandling()
5805 charBuffer.put(secondLine); in TestCharsetASCII8859BufferHandling()
5806 charBuffer.flip(); in TestCharsetASCII8859BufferHandling()
5811 charBuffer.position(firstLine.length()); in TestCharsetASCII8859BufferHandling()
[all …]