/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/compression/ |
D | DecompressionTest.java | 45 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; in decompressTest() local 50 charBuffer, 0, charBuffer.length); in decompressTest() 57 logln(charBuffer, 0, count1); in decompressTest() 58 s.append(charBuffer, 0, count1); in decompressTest() 62 charBuffer, count1, in decompressTest() 63 charBuffer.length); in decompressTest() 70 logln(charBuffer, count1, count2); in decompressTest() 72 s.append(charBuffer, count1, count2); in decompressTest() 75 logln(charBuffer, 0, count1 + count2); in decompressTest()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
D | DecompressionTest.java | 42 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; in decompressTest() local 47 charBuffer, 0, charBuffer.length); in decompressTest() 54 logln(charBuffer, 0, count1); in decompressTest() 55 s.append(charBuffer, 0, count1); in decompressTest() 59 charBuffer, count1, in decompressTest() 60 charBuffer.length); in decompressTest() 67 logln(charBuffer, count1, count2); in decompressTest() 69 s.append(charBuffer, count1, count2); in decompressTest() 72 logln(charBuffer, 0, count1 + count2); in decompressTest()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | UnicodeDecompressor.java | 168 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 …]
|
D | UnicodeCompressor.java | 355 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()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UnicodeDecompressor.java | 171 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 …]
|
D | UnicodeCompressor.java | 358 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()
|
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
D | UnicodeReader.cpp | 35 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()
|
/third_party/icu/icu4c/source/samples/layout/ |
D | UnicodeReader.cpp | 35 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()
|
/third_party/icu/icu4c/source/io/ |
D | ustdio.cpp | 321 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 …]
|
/third_party/skia/third_party/externals/icu/source/io/ |
D | ustdio.cpp | 321 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 …]
|
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | UConverterDataReader.java | 513 CharBuffer charBuffer = byteBuffer.asCharBuffer(); in readMBCSTable() local 517 charBuffer.get(mbcsTable.unicodeCodeUnits); in readMBCSTable() 535 charBuffer.get(mbcsTable.fromUnicodeTable); in readMBCSTable()
|
/third_party/glslang/glslang/MachineIndependent/ |
D | ParseContextBase.cpp | 675 char charBuffer[512]; in growAtomicCounterBlock() local 677 snprintf(charBuffer, 512, "%s_%d", getAtomicCounterBlockName(), binding); in growAtomicCounterBlock() 679 snprintf(charBuffer, 512, "%s_0", getAtomicCounterBlockName()); in growAtomicCounterBlock() 682 TType blockType(new TTypeList, *NewPoolTString(charBuffer), blockQualifier); in growAtomicCounterBlock()
|
/third_party/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 387 unichar* charBuffer = new unichar[len+1]; 388 [characters getCharacters:charBuffer range:NSMakeRange(0, len)]; 390 (void) fWindow->onChar((SkUnichar) charBuffer[i], modifiers); 392 delete [] charBuffer;
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 1706 char charBuffer[21]; /* Leave at an odd number for alignment testing */ in TestConvertSafeClone() local 1715 const char *charBufferLimit = charBuffer + UPRV_LENGTHOF(charBuffer); in TestConvertSafeClone() 1863 pCharBuffer = charBuffer; in TestConvertSafeClone() 1891 pConstCharBuffer = charBuffer; in TestConvertSafeClone() 1935 char charBuffer[21]; /* Leave at an odd number for alignment testing */ in TestConvertClone() local 1941 const char *charBufferLimit = charBuffer + UPRV_LENGTHOF(charBuffer); in TestConvertClone() 2003 pCharBuffer = charBuffer; in TestConvertClone() 2031 pConstCharBuffer = charBuffer; in TestConvertClone() 3774 char charBuffer[2] = {1, 1}; in InvalidArguments() local 3776 char *charsPtr = charBuffer; in InvalidArguments() [all …]
|
/third_party/icu/icu4c/source/test/iotest/ |
D | filetst.c | 628 char charBuffer[2048]; in TestfgetsLineCount() local 658 returnedCharBuffer = fgets(charBuffer, UPRV_LENGTHOF(charBuffer), stdFile); in TestfgetsLineCount() 665 if (returnedCharBuffer != charBuffer) { in TestfgetsLineCount() 669 u_uastrncpy(expectedBuffer, charBuffer, (int32_t)strlen(charBuffer)+1); in TestfgetsLineCount()
|
/third_party/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 2737 CharBuffer charBuffer = CharBuffer.allocate(0x90); in TestCharsetASCIIOverFlow() local 2744 charBuffer.put((char)j); in TestCharsetASCIIOverFlow() 2750 charBuffer.limit(charBufferLimit = charBuffer.position()); in TestCharsetASCIIOverFlow() 2751 charBuffer.position(0); in TestCharsetASCIIOverFlow() 2765 smBufEncode(encoder, "ASCII", charBuffer, byteBufferTest, true, false); in TestCharsetASCIIOverFlow() 5785 CharBuffer charBuffer = CharBuffer.allocate(firstLine.length() + secondLine.length()); in TestCharsetASCII8859BufferHandling() local 5786 charBuffer.put(firstLine); in TestCharsetASCII8859BufferHandling() 5787 charBuffer.put(secondLine); in TestCharsetASCII8859BufferHandling() 5788 charBuffer.flip(); in TestCharsetASCII8859BufferHandling() 5793 charBuffer.position(firstLine.length()); in TestCharsetASCII8859BufferHandling() [all …]
|