/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/ |
Utf8Decoder.java | 86 private char[] charBuffer; 97 public int decode (byte[] b, int offset, int length, char[] charBuffer, int charOffset) { 98 this.charBuffer = charBuffer; 109 charBuffer[charOffset++] = (char)(b & 0xFF); 120 charBuffer[charOffset++] = (char)codePoint; 123 // for (char c : Character.toChars(codePoint)) charBuffer[charOffset++] = c; 126 charBuffer[charOffset++] = utf16Char[0]; 127 if (codePointLength == 2) charBuffer[charOffset++] = utf16Char[1]; 134 charBuffer[charOffset++] = REPLACEMENT [all...] |
/external/icu/icu4c/source/samples/layout/ |
UnicodeReader.cpp | 31 UChar *charBuffer; 107 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); 108 if(charBuffer == 0) { 114 myText.extract(0, myText.length(), charBuffer); 115 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger 117 return charBuffer;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
DirectCharBufferTest.java | 20 import java.nio.CharBuffer; 62 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); 64 long charBufferBasePointer = NIOAccess.getBasePointer(charBuffer); 68 charBuffer.put('b'); 69 assertEquals(charBufferBasePointer + SizeOf.CHAR, NIOAccess.getBasePointer(charBuffer));
|
ByteBufferTest.java | 24 import java.nio.CharBuffer; 815 CharBuffer charBuffer; 822 charBuffer = buf.asCharBuffer(); 823 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); 824 while (charBuffer.remaining() > 0) { 826 value = charBuffer.get(); 833 charBuffer = buf.asCharBuffer(); 834 assertSame(ByteOrder.LITTLE_ENDIAN, charBuffer.order()); 835 while (charBuffer.remaining() > 0) [all...] |
CharBufferTest.java | 24 import java.nio.CharBuffer; 29 * Tests java.nio.CharBuffer 37 protected CharBuffer buf; 44 buf = CharBuffer.wrap(charscopy); 93 CharBuffer readonly = buf.asReadOnlyBuffer(); 142 CharBuffer ret = buf.compact(); 194 CharBuffer other = CharBuffer.allocate(buf.capacity()); 221 CharBuffer duplicate = buf.duplicate(); 279 CharBuffer readonly = buf.asReadOnlyBuffer() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
ReaderTest.java | 21 import java.nio.CharBuffer; 30 CharBuffer charBuffer = null; 32 mockReader.read(charBuffer); 40 //the charBuffer has the capacity of 0, then there the number of char read 41 // to the CharBuffer is 0. Furthermore, the MockReader is intact in its content. 45 CharBuffer charBuffer = CharBuffer.allocate(0); 46 int result = mockReader.read(charBuffer); [all...] |
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
Relay.java | 30 import java.nio.CharBuffer; 56 private CharBuffer charBuffer; 97 charBuffer = CharBuffer.allocate(BUFFER_SIZE); 110 charArray = charBuffer.array(); 131 result = decoder.decode(byteBuffer, charBuffer, false); 140 offset = charBuffer.position(); 148 EastAsianWidth.measure(charArray, 0, charBuffer.position(), wideAttribute, 151 buffer.putString(charArray, wideAttribute, 0, charBuffer.position()) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/ |
DecompressionTest.java | 43 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; 48 charBuffer, 0, charBuffer.length); 55 logln(charBuffer, 0, count1); 56 s.append(charBuffer, 0, count1); 60 charBuffer, count1, 61 charBuffer.length); 68 logln(charBuffer, count1, count2); 70 s.append(charBuffer, count1, count2); 73 logln(charBuffer, 0, count1 + count2) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
DecompressionTest.java | 39 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; 44 charBuffer, 0, charBuffer.length); 51 logln(charBuffer, 0, count1); 52 s.append(charBuffer, 0, count1); 56 charBuffer, count1, 57 charBuffer.length); 64 logln(charBuffer, count1, count2); 66 s.append(charBuffer, count1, count2); 69 logln(charBuffer, 0, count1 + count2) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeDecompressor.java | 38 * char [] charBuffer = new char [ BUFSIZE ]; 48 * charBuffer, 0, BUFSIZE); 51 * out.write(charBuffer, 0, charsWritten); 154 * @param charBuffer A buffer to receive the decompressed data. 160 * @return The number of Unicode characters written to charBuffer. 166 char [] charBuffer, 180 // charBuffer must be at least 2 chars in size 181 if(charBuffer.length < 2 || (charBufferLimit - charBufferStart) < 2) 182 throw new IllegalArgumentException("charBuffer.length < 2"); 207 charBuffer, charBufferStart, [all...] |
UnicodeCompressor.java | 341 * @param charBuffer The character buffer to compress. 345 * the number of characters read from charBuffer. 353 public int compress(char [] charBuffer, 397 curUC = charBuffer[ucPos++]; 401 nextUC = charBuffer[ucPos]; 484 forwardUC = charBuffer[ucPos + 1]; 550 forwardUC = charBuffer[ucPos + 1]; 620 curUC = charBuffer[ucPos++]; 624 nextUC = charBuffer[ucPos]; 746 forwardUC = charBuffer[ucPos + 1] [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeDecompressor.java | 37 * char [] charBuffer = new char [ BUFSIZE ]; 47 * charBuffer, 0, BUFSIZE); 50 * out.write(charBuffer, 0, charsWritten); 156 * @param charBuffer A buffer to receive the decompressed data. 162 * @return The number of Unicode characters written to charBuffer. 169 char [] charBuffer, 183 // charBuffer must be at least 2 chars in size 184 if(charBuffer.length < 2 || (charBufferLimit - charBufferStart) < 2) 185 throw new IllegalArgumentException("charBuffer.length < 2"); 210 charBuffer, charBufferStart, [all...] |
UnicodeCompressor.java | 343 * @param charBuffer The character buffer to compress. 347 * the number of characters read from charBuffer. 356 public int compress(char [] charBuffer, 400 curUC = charBuffer[ucPos++]; 404 nextUC = charBuffer[ucPos]; 487 forwardUC = charBuffer[ucPos + 1]; 553 forwardUC = charBuffer[ucPos + 1]; 623 curUC = charBuffer[ucPos++]; 627 nextUC = charBuffer[ucPos]; 749 forwardUC = charBuffer[ucPos + 1] [all...] |
/packages/apps/TV/usbtuner/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeDecompressor.java | 37 * char [] charBuffer = new char [ BUFSIZE ]; 47 * charBuffer, 0, BUFSIZE); 50 * out.write(charBuffer, 0, charsWritten); 156 * @param charBuffer A buffer to receive the decompressed data. 162 * @return The number of Unicode characters written to charBuffer. 169 char [] charBuffer, 183 // charBuffer must be at least 2 chars in size 184 if(charBuffer.length < 2 || (charBufferLimit - charBufferStart) < 2) 185 throw new IllegalArgumentException("charBuffer.length < 2"); 210 charBuffer, charBufferStart, [all...] |
/external/tinyxml2/ |
tinyxml2.cpp | [all...] |
tinyxml2.h | [all...] |
/external/icu/icu4c/source/io/ |
ustdio.c | 319 char charBuffer[UFILE_CHARBUFFER_SIZE]; 320 char *myTarget = charBuffer; 357 charBuffer + UFILE_CHARBUFFER_SIZE, 373 numConverted = (int32_t)(myTarget - charBuffer); 377 fwrite(charBuffer, 384 myTarget = charBuffer; 414 char charBuffer[UFILE_CHARBUFFER_SIZE]; 445 char *retStr = fgets(charBuffer, ufmt_min(maxCPBytes, UFILE_CHARBUFFER_SIZE), f->fFile); 446 bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0); 450 bytesRead = (int32_t)fread(charBuffer, [all...] |
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
UConverterDataReader.java | 12 import java.nio.CharBuffer; 506 // Consider leaving some large arrays as CharBuffer/IntBuffer rather than 511 CharBuffer charBuffer = byteBuffer.asCharBuffer(); 515 charBuffer.get(mbcsTable.unicodeCodeUnits); 516 // Skip as many bytes as we have read from the CharBuffer. 533 charBuffer.get(mbcsTable.fromUnicodeTable);
|
/frameworks/base/core/java/com/android/internal/util/ |
FastPrintWriter.java | 12 import java.nio.CharBuffer; 346 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); 347 CoderResult result = mCharset.encode(charBuffer, mBytes, true); 353 result = mCharset.encode(charBuffer, mBytes, true);
|
FastXmlSerializer.java | 27 import java.nio.CharBuffer; 242 CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos); 243 CoderResult result = mCharset.encode(charBuffer, mBytes, true); 249 result = mCharset.encode(charBuffer, mBytes, true);
|
/external/icu/icu4c/source/test/iotest/ |
filetst.c | 596 char charBuffer[2048]; 626 returnedCharBuffer = fgets(charBuffer, sizeof(charBuffer)/sizeof(charBuffer[0]), stdFile); 633 if (returnedCharBuffer != charBuffer) { 634 log_err("Didn't get the charBuffer back\n"); 637 u_uastrncpy(expectedBuffer, charBuffer, (int32_t)strlen(charBuffer)+1); [all...] |
/external/icu/icu4c/source/test/cintltst/ |
ccapitst.c | [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLLogWrapper.java | 24 import java.nio.CharBuffer; 944 } else if (input instanceof CharBuffer) { 945 CharBuffer input2 = (CharBuffer) input; 951 CharBuffer result2 = result.asCharBuffer(); 1039 CharBuffer charBuffer; 1040 if (indices instanceof CharBuffer) { 1041 charBuffer = (CharBuffer) indices [all...] |
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
TestCharset.java | 12 import java.nio.CharBuffer; 51 CharBuffer us = CharBuffer.allocate(0xFF*2); 142 CharBuffer us = CharBuffer.allocate(0xFF*2); 238 CharBuffer us = CharBuffer.wrap(chars, 0, limit); 245 us = CharBuffer.wrap(chars, i, 1).slice(); 273 us = CharBuffer.wrap(chars, i, 1).slice(); 299 us = CharBuffer.wrap(chars, i, 1).slice() [all...] |
/prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.3.1/ |
httpcore-4.3.1.jar | |