Home
last modified time | relevance | path

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

/external/webrtc/webrtc/system_wrappers/include/
Dutf_util_win.h25 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), in ToUtf16() local
27 rtc::scoped_ptr<wchar_t[]> ws(new wchar_t[len16]); in ToUtf16()
29 len16); in ToUtf16()
30 return std::wstring(ws.get(), len16); in ToUtf16()
/external/webrtc/webrtc/base/
Dwin32.h50 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), in ToUtf16() local
52 wchar_t* ws = STACK_ARRAY(wchar_t, len16); in ToUtf16()
53 ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), ws, len16); in ToUtf16()
54 return std::wstring(ws, len16); in ToUtf16()
/external/skqp/tests/
DUnicodeTest.cpp21 size_t len16 = len8 * 2; in DEF_TEST() local
36 …int count16 = font.textToGlyphs(text16, len16, kUTF16_SkTextEncoding, glyphs16, SK_ARRAY_COUNT(gly… in DEF_TEST()
/external/skia/tests/
DUnicodeTest.cpp21 size_t len16 = len8 * 2; in DEF_TEST() local
36 …int count16 = font.textToGlyphs(text16, len16, kUTF16_SkTextEncoding, glyphs16, SK_ARRAY_COUNT(gly… in DEF_TEST()
/external/icu/icu4c/source/i18n/
Drepattrn.cpp575 … int32_t len16 = utext_extract(fPattern, 0, nativeLen, NULL, 0, &status); // buffer overflow error in pattern() local
579 UChar *resultChars = result.getBuffer(len16); in pattern()
580 utext_extract(fPattern, 0, nativeLen, resultChars, len16, &status); // unterminated warning in pattern()
581 result.releaseBuffer(len16); in pattern()
Drematch.cpp322 int32_t len16; in appendReplacement() local
324 len16 = (int32_t)(fMatchStart-fAppendPosition); in appendReplacement()
327len16 = utext_extract(fInputText, fAppendPosition, fMatchStart, NULL, 0, &lengthStatus); in appendReplacement()
329 UChar *inputChars = (UChar *)uprv_malloc(sizeof(UChar)*(len16+1)); in appendReplacement()
334 utext_extract(fInputText, fAppendPosition, fMatchStart, inputChars, len16+1, &status); in appendReplacement()
335 destLen += utext_replace(dest, destLen, destLen, inputChars, len16, &status); in appendReplacement()
521 int32_t len16; in appendTail() local
523 len16 = (int32_t)(fInputLength-fAppendPosition); in appendTail()
525 len16 = utext_extract(fInputText, fAppendPosition, fInputLength, NULL, 0, &status); in appendTail()
529 UChar *inputChars = (UChar *)uprv_malloc(sizeof(UChar)*(len16)); in appendTail()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcustrtrn.c213 int32_t len16, u32DestLen; in Test_strToUTF32_surrogates() local
221 len16 = UPRV_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, UPRV_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, UPRV_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, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &nu… in Test_strToUTF32_surrogates()
/external/javasqlite/src/main/native/
Dsqlite_jni.c3543 jsize len16; in Java_SQLite_Database_stmt_1prepare() local
3565 len16 = (*env)->GetStringLength(env, sql) * sizeof (jchar); in Java_SQLite_Database_stmt_1prepare()
3566 if (len16 < 1) { in Java_SQLite_Database_stmt_1prepare()
3572 ret = sqlite3_prepare16_v2((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3575 ret = sqlite3_prepare16((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3596 len16 = len16 + sizeof (jchar) - ((char *) tail - (char *) sql16); in Java_SQLite_Database_stmt_1prepare()
3597 if (len16 < sizeof (jchar)) { in Java_SQLite_Database_stmt_1prepare()
3598 len16 = sizeof (jchar); in Java_SQLite_Database_stmt_1prepare()
3600 v = malloc(sizeof (hvm) + len16); in Java_SQLite_Database_stmt_1prepare()
3615 memcpy(v->tail, tail, len16); in Java_SQLite_Database_stmt_1prepare()
[all …]