/libcore/luni/src/main/java/java/io/ |
BufferedWriter.java | 274 char[] chars = new char[count]; local 275 str.getChars(offset, offset + count, chars, 0); 276 out.write(chars, 0, count); 294 char[] chars = new char[count]; local 295 str.getChars(offset, offset + available, chars, 0); 296 out.write(chars, 0, available);
|
OutputStreamWriter.java | 176 private void convert(CharBuffer chars) throws IOException { 178 CoderResult result = encoder.encode(chars, bytes, false); 195 CharBuffer chars = CharBuffer.allocate(0); local 197 CoderResult result = encoder.encode(chars, bytes, true); 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); local 266 convert(chars); 285 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); local 286 convert(chars); 323 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); local 324 convert(chars); [all...] |
PipedReader.java | 103 * @param pipeSize the size of the buffer in chars. 120 * @param pipeSize the size of the buffer in chars. 195 char[] chars = new char[1]; local 196 int result = read(chars, 0, 1); 197 return result != -1 ? chars[0] : result; 268 /* Copy chars from out to end of buffer first */ 390 synchronized void receive(char[] chars, int offset, int count) throws IOException { 391 Arrays.checkOffsetAndCount(chars.length, offset, count); 427 System.arraycopy(chars, offset, buffer, in, length); 440 System.arraycopy(chars, offset, buffer, in, length) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
DNParser.java | 50 /** distinguished name chars */ 51 private final char[] chars; field in class:DNParser 63 chars = dn.toCharArray(); 72 // skip preceding space chars, they can present after 74 for (; pos < chars.length && chars[pos] == ' '; pos++) { 76 if (pos == chars.length) { 83 // attribute type chars 85 for (; pos < chars.length && chars[pos] != '=' && chars[pos] != ' '; pos++) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
DataOutputStreamTest.java | 92 char[] chars = new char[65535 - 1 - 2]; local 93 Arrays.fill(chars, 0, chars.length, 'a'); 94 chars[0] = '\u0666'; // a two-byte character 95 chars[1] = '\u2603'; // a three-byte character 96 String maxLength = new String(chars);
|
/ndk/tests/device/test-gnustl-full/unit/ |
alg_test.cpp | 277 char chars[] = {1, 2}; local 286 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); 291 unsigned char chars[] = {1, 2, 255}; local 300 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); 305 signed char chars[] = {93, 2, -101, 13}; local 315 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)) 320 char chars[] = {1, 2}; local [all...] |
/ndk/tests/device/test-stlport/unit/ |
alg_test.cpp | 277 char chars[] = {1, 2}; local 286 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); 291 unsigned char chars[] = {1, 2, 255}; local 300 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)); 305 signed char chars[] = {93, 2, -101, 13}; local 315 first = find_first_of(intv.begin(), intv.end(), chars, chars + sizeof(chars)) 320 char chars[] = {1, 2}; local [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
LevenshteinSuggestionFormatter.java | 102 final char[] chars = seq.toCharArray(); local 107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { 111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) { 116 tokens[tokenCount++] = new Token(chars, start, end);
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstUtf8.java | 81 char[] chars = new char[length]; // This is sized to avoid a realloc. local 154 chars[outAt] = out; 158 return new String(chars, 0, outAt); 362 * get the number of 16-bit chars in the UTF-16 encoding of this
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
CstString.java | 81 char[] chars = new char[length]; // This is sized to avoid a realloc. local 154 chars[outAt] = out; 158 return new String(chars, 0, outAt); 362 * get the number of 16-bit chars in the UTF-16 encoding of this
|
/dalvik/vm/ |
Ddm.cpp | 265 const u2* chars; local 273 chars = nameObj->chars(); 276 chars = NULL; 291 set2BE((u1*) (outChars++), *chars++); 314 const u2* chars = newName->chars(); local 320 * (xb) string chars 329 set2BE((u1*) (outChars++), *chars++);
|
UtfString.cpp | 33 * chars array is stored to the pChars pointer. Callers must 61 ArrayObject* chars = dvmAllocPrimitiveArray('C', charsLength, ALLOC_DEFAULT); local 62 if (chars == NULL) { 68 dvmSetFieldObject(result, STRING_FIELDOFF_VALUE, (Object*) chars); 69 dvmReleaseTrackedAlloc((Object*) chars, NULL); 72 *pChars = chars; 214 ArrayObject* chars = local 216 hashCode = computeUtf16Hash((u2*)(void*)chars->contents + offset, len); 243 ArrayObject* chars; local 244 StringObject* newObj = makeStringObject(utf16Length, &chars); 265 ArrayObject* chars; local 293 ArrayObject* chars = local 321 ArrayObject* chars = local 339 const u2* StringObject::chars() const function in class:StringObject 342 ArrayObject* chars = local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
DataOutputStreamTest.java | 156 char[] chars = new char[50]; local 159 chars[i] = dis.readChar(); 160 assertEquals("Incorrect chars written", "Test String", new String( 161 chars, 0, i));
|
PushbackReaderTest.java | 120 assertTrue("Failed to read chars", new String(c).equals(pbString 210 assertTrue("Failed to unread chars", new String(c).equals(pbString 221 char chars[] = new char[] { 'h', 'e', 'l', 'l', 'o' }; local 226 reader = new StringReader(new String(chars)); 227 reader2 = new StringReader(new String(chars)); 230 reader = new FilterReader(new StringReader(new String(chars))) { 232 reader2 = new FilterReader(new StringReader(new String(chars))) { 236 reader = new CharArrayReader(chars); 237 reader2 = new CharArrayReader(chars); 292 assertTrue("Failed to unread chars", new String(c).equals(pbStrin [all...] |
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
ASCIICharsetEncoderTest.java | 101 char[] chars = Character.toChars(i); local 102 CharBuffer cb = CharBuffer.wrap(chars);
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
Encodings.java | 164 char[] chars = new char[mx]; local 173 chars[i] = ch; 180 upper = String.valueOf(chars);
|
WriterToUTF8Buffered.java | 88 // Big enough to hold the input chars that will be transformed 170 * @param chars Array of characters 178 public void write(final char chars[], final int start, final int length) 217 final char c = chars[end_chunk - 1]; 218 int ic = chars[end_chunk - 1]; 227 // char in the current chunk of chars. 244 this.write(chars,start_chunk, len_chunk); 263 for(; i < n && (c = chars[i])< 0x80 ; i++ ) 269 final char c = chars[i]; 290 low = chars[i] 379 final char[] chars = m_inputChars; local [all...] |
/external/chromium/base/ |
pickle.cc | 225 char* chars = reinterpret_cast<char*>(*iter); local 226 result->assign(chars, len); 244 wchar_t* chars = reinterpret_cast<wchar_t*>(*iter); local 245 result->assign(chars, len); 260 char16* chars = reinterpret_cast<char16*>(*iter); 261 result->assign(chars, len);
|
/external/clang/test/SemaCXX/ |
for-range-examples.cpp | 132 map_range::vector<char> chars; local 133 chars.push_back('a'); 134 chars.push_back('b'); 135 chars.push_back('c'); 136 for (char c : chars) {
|
/external/icu4c/common/ |
dictbe.cpp | 326 int32_t chars = 0; local 332 chars += 1; 343 utext_setNativeIndex(text, current+wordLength+chars); 357 wordLength += chars;
|
unorm_it.c | 37 * chars and states either use the static buffers 43 UChar *chars; member in struct:UNormIterator 49 * api.limit: one past the last valid character in chars[], but states[limit] is valid 94 UChar *chars; local 102 chars=(UChar *)(states+(capacity+1)); 114 uprv_memcpy(chars+delta+start, uni->chars+start, (limit-start)*4); 122 uprv_memcpy(chars+start, uni->chars+start, (limit-start)*4); 125 uni->chars=chars [all...] |
/external/icu4c/test/cintltst/ |
ucsdetst.c | 163 static const UChar chars[] = { local 169 int32_t beLength = 0, leLength = 0, cLength = ARRAY_SIZE(chars); 170 char *beBytes = extractBytes(chars, cLength, "UTF-16BE", &beLength); 171 char *leBytes = extractBytes(chars, cLength, "UTF-16LE", &leLength); 432 static const UChar chars[] = { local 473 int32_t bLength = 0, brLength = 0, cLength = ARRAY_SIZE(chars), crLength = ARRAY_SIZE(chars_reverse); 475 char *bytes = extractBytes(chars, cLength, "IBM424", &bLength); 518 static const UChar chars[] = { local 551 int32_t bLength = 0, brLength = 0, cLength = ARRAY_SIZE(chars), crLength = ARRAY_SIZE(chars_reverse); 553 char *bytes = extractBytes(chars, cLength, "IBM420", &bLength) [all...] |
/external/icu4c/test/letest/ |
cletest.c | 48 LEUnicode chars[] = { local 131 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status); 134 log_err("Calling layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status) did not fail w/ LE_ILLEGAL_ARGUMENT_ERROR.\n"); 138 glyphCount = le_layoutChars(engine, chars, 8, -1, 20, TRUE, 0.0, 0.0, &status); 141 log_err("Calling layoutChars(chars, 8, -1, 20, TRUE, 0.0, 0.0, status) did not fail w/ LE_ILLEGAL_ARGUMENT_ERROR.\n"); 145 glyphCount = le_layoutChars(engine, chars, 8, 6, -1, TRUE, 0.0, 0.0, &status); 148 log_err("Calling layoutChars((chars, 8, 6, -1, TRUE, 0.0, 0.0, status) did not fail w/ LE_ILLEGAL_ARGUMENT_ERROR.\n"); 152 glyphCount = le_layoutChars(engine, chars, 8, 6, 10, TRUE, 0.0, 0.0, &status); 155 log_err("Calling layoutChars(chars, 8, 6, 10, TRUE, 0.0, 0.0, status) did not fail w/ LE_ILLEGAL_ARGUMENT_ERROR.\n"); 159 glyphCount = le_layoutChars(engine, chars, 8, 6, 20, TRUE, 0.0, 0.0, &status) 218 LEUnicode chars[] = { local 522 LEUnicode chars[] = { local [all...] |
/external/icu4c/tools/icuswap/ |
icuswap.cpp | 328 const char *chars=(const char *)context; local 329 return (int32_t)uprv_strcmp(chars+((const ToCEntry *)left)->nameOffset, 330 chars+((const ToCEntry *)right)->nameOffset);
|
/external/libvpx/examples/includes/PHP-SmartyPants-1.5.1e/ |
smartypants.php | 129 $chars = preg_split('//', $attr); variable 130 foreach ($chars as $c){
|