Home
last modified time | relevance | path

Searched refs:len16 (Results 1 – 7 of 7) sorted by relevance

/external/chromium/third_party/libjingle/source/talk/base/
Dwin32.h60 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, len, NULL, 0); in ToUtf16() local
61 wchar_t* ws = STACK_ARRAY(wchar_t, len16); in ToUtf16()
62 ::MultiByteToWideChar(CP_UTF8, 0, utf8, len, ws, len16); in ToUtf16()
63 return std::wstring(ws, len16); in ToUtf16()
/external/icu4c/i18n/
Duspoof.cpp342 int32_t len16; in uspoof_checkUTF8() local
344 u_strFromUTF8(text16, USPOOF_STACK_BUFFER_SIZE, &len16, text, length, status); in uspoof_checkUTF8()
349 text16 = static_cast<UChar *>(uprv_malloc(len16 * sizeof(UChar) + 2)); in uspoof_checkUTF8()
355 u_strFromUTF8(text16, len16+1, NULL, text, length, status); in uspoof_checkUTF8()
359 int32_t result = uspoof_check(sc, text16, len16, &position16, status); in uspoof_checkUTF8()
367 U_ASSERT(position16 <= len16); in uspoof_checkUTF8()
Drematch.cpp324 int32_t len16; in appendReplacement() local
326 len16 = (int32_t)(fMatchStart-fAppendPosition); in appendReplacement()
329len16 = utext_extract(fInputText, fAppendPosition, fMatchStart, NULL, 0, &lengthStatus); in appendReplacement()
331 UChar *inputChars = (UChar *)uprv_malloc(sizeof(UChar)*(len16+1)); in appendReplacement()
336 utext_extract(fInputText, fAppendPosition, fMatchStart, inputChars, len16+1, &status); in appendReplacement()
337 destLen += utext_replace(dest, destLen, destLen, inputChars, len16, &status); in appendReplacement()
515 int32_t len16; in appendTail() local
517 len16 = (int32_t)(fInputLength-fAppendPosition); in appendTail()
519 len16 = utext_extract(fInputText, fAppendPosition, fInputLength, NULL, 0, &status); in appendTail()
523 UChar *inputChars = (UChar *)uprv_malloc(sizeof(UChar)*(len16)); in appendTail()
[all …]
Drepattrn.cpp564 … int32_t len16 = utext_extract(fPattern, 0, nativeLen, NULL, 0, &status); // buffer overflow error in pattern() local
568 UChar *resultChars = result.getBuffer(len16); in pattern()
569 utext_extract(fPattern, 0, nativeLen, resultChars, len16, &status); // unterminated warning in pattern()
570 result.releaseBuffer(len16); in pattern()
/external/icu4c/test/cintltst/
Dcustrtrn.c213 int32_t len16, u32DestLen; in Test_strToUTF32_surrogates() local
221 len16 = LENGTHOF(surr16); in Test_strToUTF32_surrogates()
224 u_strToUTF32(u32Target, 0, &u32DestLen, surr16+i, len16-i, &err); in Test_strToUTF32_surrogates()
232 u_strToUTF32(u32Target, LENGTHOF(u32Target), &u32DestLen, surr16+i, len16-i, &err); in Test_strToUTF32_surrogates()
257 u_strToUTF32(u32Target, 0, &u32DestLen, surr16+4, len16-4-1, &err); in Test_strToUTF32_surrogates()
265 u_strToUTF32(u32Target, LENGTHOF(u32Target), &u32DestLen, surr16+4, len16-4-1, &err); in Test_strToUTF32_surrogates()
291 … u_strToUTF32WithSub(u32Target, 0, &u32DestLen, surr16, len16-1, 0xfffd, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
299 …u_strToUTF32WithSub(u32Target, LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &numSubs… in Test_strToUTF32_surrogates()
Dreapits.c1754 int32_t len16; in TestUTextAPI() local
1766 len16 = group_len; in TestUTextAPI()
1768 groupChars = (UChar *)malloc(sizeof(UChar)*(len16+1)); in TestUTextAPI()
1769 … utext_extract(actual, nativeIndex, nativeIndex + group_len, groupChars, len16+1, &shallowStatus); in TestUTextAPI()
1771 utext_openUChars(&groupText, groupChars, len16, &shallowStatus); in TestUTextAPI()
/external/javasqlite/src/main/native/
Dsqlite_jni.c3544 jsize len16; in Java_SQLite_Database_stmt_1prepare() local
3566 len16 = (*env)->GetStringLength(env, sql) * sizeof (jchar); in Java_SQLite_Database_stmt_1prepare()
3567 if (len16 < 1) { in Java_SQLite_Database_stmt_1prepare()
3573 ret = sqlite3_prepare16_v2((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3576 ret = sqlite3_prepare16((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3597 len16 = len16 + sizeof (jchar) - ((char *) tail - (char *) sql16); in Java_SQLite_Database_stmt_1prepare()
3598 if (len16 < sizeof (jchar)) { in Java_SQLite_Database_stmt_1prepare()
3599 len16 = sizeof (jchar); in Java_SQLite_Database_stmt_1prepare()
3601 v = malloc(sizeof (hvm) + len16); in Java_SQLite_Database_stmt_1prepare()
3616 memcpy(v->tail, tail, len16); in Java_SQLite_Database_stmt_1prepare()
[all …]