Searched defs:utf16 (Results 26 - 50 of 52) sorted by relevance

123

/external/icu/icu4c/source/test/perf/unisetperf/
H A Dunisetperf.cpp210 UChar utf16[2]; local
214 utf16[0]=(UChar)c;
215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
220 utf16[0]=(UChar)c;
222 utf16[1]=(UChar)c2;
223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
261 UChar utf16[2]; local
265 utf16[0]=(UChar)c;
266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
271 utf16[
[all...]
/external/chromium_org/base/strings/
H A Dstring_util_unittest.cc404 string16 utf16 = ASCIIToUTF16(char_cases[i]); local
405 EXPECT_EQ(WideToUTF16(wchar_cases[i]), utf16); local
/external/chromium_org/chrome/browser/chromeos/file_manager/
H A Dfile_browser_handlers.cc92 base::string16 utf16 = base::UTF8ToUTF16( local
95 base::UTF16ToUTF8(base::i18n::ToLower(utf16)),
/external/libexif/libexif/
H A Dexif-entry.c1383 unsigned short *utf16 = exif_mem_alloc (e->priv->mem, e->size+sizeof(unsigned short)); local
1384 if (!utf16) break;
1385 memcpy(utf16, e->data, e->size);
1386 utf16[e->size/sizeof(unsigned short)] = 0;
1390 exif_convert_utf16_to_utf8(val, utf16, maxlen);
1391 exif_mem_free(e->priv->mem, utf16);
/external/chromium_org/base/
H A Dvalues_unittest.cc137 scoped_ptr<Value> utf16_value(new StringValue(ASCIIToUTF16("utf16")));
143 string16 utf16 = ASCIIToUTF16("http://google.com"); local
146 ASSERT_TRUE(narrow_value->GetAsString(&utf16));
149 ASSERT_EQ(ASCIIToUTF16("narrow"), utf16);
153 ASSERT_TRUE(utf16_value->GetAsString(&utf16));
155 ASSERT_EQ(std::string("utf16"), narrow);
156 ASSERT_EQ(ASCIIToUTF16("utf16"), utf16);
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Ducnvseltst.c447 static UChar utf16[10000]; local
472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt);
483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb);
485 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt);
486 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
H A Dccapitst.c2446 UChar utf16[U16_MAX_LENGTH]; local
2463 U16_APPEND_UNSAFE(utf16, utf16Length, c);
2467 utf16Source=utf16;
2471 &utf16Source, utf16+utf16Length,
2475 utf16Source=utf16;
2479 &utf16Source, utf16+utf16Length,
2752 utf16[]={ local
2819 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2838 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2852 length=ucnv_fromAlgorithmic(cnv, (UConverterType)99, target, 0, (const char *)utf16,
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSampleAll.cpp351 short utf16[] = {'u', 't', 'f', '1', '6', 0x2026 }; local
481 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint);
/external/icu/icu4c/source/test/cintltst/
H A Ducnvseltst.c447 static UChar utf16[10000]; local
472 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt);
483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb);
485 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt);
486 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
H A Dccapitst.c2450 UChar utf16[U16_MAX_LENGTH]; local
2467 U16_APPEND_UNSAFE(utf16, utf16Length, c);
2471 utf16Source=utf16;
2475 &utf16Source, utf16+utf16Length,
2479 utf16Source=utf16;
2483 &utf16Source, utf16+utf16Length,
2756 utf16[]={ local
2823 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2842 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2856 length=ucnv_fromAlgorithmic(cnv, (UConverterType)99, target, 0, (const char *)utf16,
[all...]
/external/qemu/distrib/sdl-1.2.15/src/file/
H A DSDL_rwops.c145 char *utf16 = SDL_iconv_string("UCS2", "UTF8", filename, SDL_strlen(filename) + 1); local
150 if (!utf16 ||
151 !WideCharToMultiByte(CP_ACP, 0, (LPCWSTR)utf16, -1, filenameA, size*6, 0, &bDefCharUsed) ||
154 SDL_free(utf16);
169 SDL_free(utf16);
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11events.c188 buffer pointed to by utf16. The maximum number of UTF-16 encoding
191 encoding units placed in the output buffer pointed to by utf16.
196 The caller must estimate the size of utf16 buffer by itself before
211 - The output buffer has no enough space to hold entire utf16 data.
234 static int Utf8ToUtf16(const Uint8 *utf8, const int utf8_length, Uint16 *utf16, const int utf16_max_length) { argument
237 Uint16 *p = utf16;
238 Uint16 const *const max_ptr = utf16 + utf16_max_length;
300 return p - utf16;
/external/skia/samplecode/
H A DSampleAll.cpp349 short utf16[] = {'u', 't', 'f', '1', '6', 0x2026 }; local
479 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint);
/external/chromium_org/base/files/
H A Dfile_path.cc621 FilePath FilePath::FromUTF16Unsafe(const string16& utf16) { argument
623 return FilePath(UTF16ToUTF8(utf16));
625 return FilePath(SysWideToNativeMB(UTF16ToWide(utf16)));
654 FilePath FilePath::FromUTF16Unsafe(const string16& utf16) { argument
655 return FilePath(utf16);
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dustrtest.cpp16 #include "unicode/utf16.h"
243 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local
246 UnicodeString from16(FALSE, utf16, LENGTHOF(utf16));
1838 static const UChar utf16[] = { local
1847 UnicodeString(FALSE, utf16, LENGTHOF(utf16)).
1904 static const UChar utf16[] = { local
1911 UnicodeString us(FALSE, utf16, LENGTHOF(utf16));
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dustrtest.cpp16 #include "unicode/utf16.h"
243 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local
246 UnicodeString from16(FALSE, utf16, LENGTHOF(utf16));
1838 static const UChar utf16[] = { local
1847 UnicodeString(FALSE, utf16, LENGTHOF(utf16)).
1904 static const UChar utf16[] = { local
1911 UnicodeString us(FALSE, utf16, LENGTHOF(utf16));
[all...]
/external/chromium_org/third_party/expat/files/lib/
H A Dxmltok.c1251 unsigned short utf16[256]; member in struct:unknown_encoding
1332 unsigned short c = uenc->utf16[(unsigned char)**fromP];
1365 e->utf16[i] = 0xFFFF;
1374 e->utf16[i] = 0;
1384 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c);
1389 e->utf16[i] = 0xFFFF;
1403 e->utf16[i] = (unsigned short)c;
/external/chromium_org/third_party/icu/source/common/
H A Dunistr.cpp29 #include "unicode/utf16.h"
425 UChar *utf16 = result.getBuffer(capacity); local
428 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16,
1250 UChar *utf16 = getBuffer(capacity); local
1253 u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
/external/expat/lib/
H A Dxmltok.c1251 unsigned short utf16[256]; member in struct:unknown_encoding
1332 unsigned short c = uenc->utf16[(unsigned char)**fromP];
1365 e->utf16[i] = 0xFFFF;
1374 e->utf16[i] = 0;
1384 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c);
1389 e->utf16[i] = 0xFFFF;
1403 e->utf16[i] = (unsigned short)c;
/external/icu/icu4c/source/common/
H A Dunistr.cpp29 #include "unicode/utf16.h"
425 UChar *utf16 = result.getBuffer(capacity); local
428 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16,
1250 UChar *utf16 = getBuffer(capacity); local
1253 u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_win.cpp369 // Unicode code points that require conjugate pairs in utf16 are not
810 WCHAR utf16[2]; local
812 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) {
828 DWORD result = GetGlyphIndicesW(fDDC, utf16, 1, &index, GGI_MARK_NONEXISTING_GLYPHS);
849 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &sc, NULL, si, &numItems),
858 HRZM(ScriptShape(fDDC, &fSC, utf16, numWCHAR, maxGlyphs, &si[0].a,
2099 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) {
2110 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &scriptControl, NULL, si, &numItems),
2119 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &si[0].a,
H A DSkFontHost_mac.cpp1461 // Unicode code points that require conjugate pairs in utf16 are not
1931 UniChar* utf16 = charStorage.reset(2 * glyphCount); local
1932 src = utf16;
1935 utf16 += SkUTF16_FromUnichar(uni, utf16);
1937 srcCount = SkToInt(utf16 - src);
1953 UniChar* utf16 = charStorage.reset(2 * glyphCount); local
1954 src = utf16;
1956 utf16 += SkUTF16_FromUnichar(utf32[i], utf16);
[all...]
/external/skia/src/ports/
H A DSkFontHost_win.cpp368 // Unicode code points that require conjugate pairs in utf16 are not
810 WCHAR utf16[2]; local
812 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) {
828 DWORD result = GetGlyphIndicesW(fDDC, utf16, 1, &index, GGI_MARK_NONEXISTING_GLYPHS);
849 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &sc, NULL, si, &numItems),
858 HRZM(ScriptShape(fDDC, &fSC, utf16, numWCHAR, maxGlyphs, &si[0].a,
2127 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) {
2138 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &scriptControl, NULL, si, &numItems),
2147 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &si[0].a,
/external/chromium_org/testing/gtest/test/
H A Dgtest_unittest.cc1049 const WCHAR* utf16 = String::AnsiToUtf16("str"); local
1050 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3));
1051 delete [] utf16;
1058 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); local
1059 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3));
1060 delete [] utf16;
/external/gtest/test/
H A Dgtest_unittest.cc1056 const WCHAR* utf16 = String::AnsiToUtf16("str"); local
1057 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3));
1058 delete [] utf16;
1065 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); local
1066 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3));
1067 delete [] utf16;

Completed in 623 milliseconds

123