Searched defs:utf16 (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium/base/i18n/
H A Dicu_string_conversions_unittest.cc301 string16 utf16; local
305 &utf16);
312 EXPECT_EQ(utf16_expected, utf16);
320 success = UTF16ToCodepage(utf16, kConvertCodepageCases[i].codepage_name,
H A Dicu_string_conversions.cc160 bool UTF16ToCodepage(const string16& utf16, argument
171 return ConvertFromUTF16(converter, utf16.c_str(),
172 static_cast<int>(utf16.length()), on_error, encoded);
178 string16* utf16) {
179 utf16->clear();
197 int actual_size = ucnv_toUChars(converter, WriteInto(utf16, uchar_max_length),
202 utf16->clear(); // Make sure the output is empty on error.
206 utf16->resize(actual_size);
230 std::vector<UChar> utf16(wide.length() * 2 + 1);
231 u_strFromWCS(&utf16[
175 CodepageToUTF16(const std::string& encoded, const char* codepage_name, OnStringConversionError::Type on_error, string16* utf16) argument
[all...]
/external/chromium/base/
H A Dutf_offset_string_conversions.cc93 std::wstring UTF16ToWideAndAdjustOffset(const string16& utf16, argument
95 if (offset_for_adjustment && (*offset_for_adjustment >= utf16.length()))
97 return utf16;
113 std::wstring UTF16ToWideAndAdjustOffset(const string16& utf16, argument
116 UTF16ToWideAndAdjustOffset(utf16.data(), utf16.length(), &ret,
H A Dutf_string_conversions.cc90 std::wstring UTF16ToWide(const string16& utf16) { argument
91 return utf16;
118 std::wstring UTF16ToWide(const string16& utf16) { argument
120 UTF16ToWide(utf16.data(), utf16.length(), &ret);
148 std::string UTF16ToUTF8(const string16& utf16) { argument
152 UTF16ToUTF8(utf16.data(), utf16.length(), &ret);
171 std::string UTF16ToUTF8(const string16& utf16) { argument
172 return WideToUTF8(utf16);
[all...]
H A Dutf_string_conversions_unittest.cc143 const wchar_t* utf16; member in struct:base::WideToUTF8Case
163 WideToUTF8(convert_cases[i].utf16,
164 wcslen(convert_cases[i].utf16),
H A Dvalues_unittest.cc138 Value::CreateStringValueFromUTF16(ASCIIToUTF16("utf16")));
145 string16 utf16 = ASCIIToUTF16("http://google.com"); local
148 ASSERT_TRUE(narrow_value->GetAsUTF16(&utf16));
151 ASSERT_EQ(ASCIIToUTF16("narrow"), utf16);
155 ASSERT_TRUE(wide_value->GetAsUTF16(&utf16));
158 ASSERT_EQ(ASCIIToUTF16("wide"), utf16);
162 ASSERT_TRUE(utf16_value->GetAsUTF16(&utf16));
163 ASSERT_EQ(std::string("utf16"), narrow);
164 ASSERT_EQ(std::wstring(L"utf16"), wide);
165 ASSERT_EQ(ASCIIToUTF16("utf16"), utf1
[all...]
H A Dstring_util.cc558 std::string UTF16ToASCII(const string16& utf16) { argument
559 DCHECK(IsStringASCII(utf16)) << utf16;
560 return std::string(utf16.begin(), utf16.end());
/external/chromium/googleurl/src/
H A Durl_canon_query.cc102 RawCanonOutputW<1024> utf16; local
103 ConvertUTF8ToUTF16(&spec[query.begin], query.len, &utf16);
104 converter->ConvertFromUTF16(utf16.data(), utf16.length(), output);
H A Durl_canon_host.cc263 StackBufferW utf16; local
264 if (!ConvertUTF8ToUTF16(utf8_source, utf8_source_len, &utf16)) {
277 return DoIDNHost(utf16.data(), utf16.length(), output);
/external/webkit/WebKit/chromium/src/
H A DWebCString.cpp81 WebString WebCString::utf16() const function in class:WebKit::WebCString
/external/webkit/WebCore/platform/android/
H A DKeyEventAndroid.cpp206 UChar utf16[2] = {lead, trail}; local
207 return String(utf16, 2);
/external/webkit/WebCore/platform/graphics/android/
H A DFontCacheAndroid.cpp61 static char* AtomicStringToUTF8String(const AtomicString& utf16) argument
63 SkASSERT(sizeof(uint16_t) == sizeof(utf16.characters()[0]));
64 const uint16_t* uni = (uint16_t*)utf16.characters();
66 size_t bytes = SkUTF16_ToUTF8(uni, utf16.length(), NULL);
69 (void)SkUTF16_ToUTF8(uni, utf16.length(), utf8);
/external/bluetooth/glib/tests/
H A Dconvert-test.c294 const gunichar2 *utf16,
335 g_assert (result[i] == utf16[i]);
355 g_assert (result[i] == utf16[i]);
360 g_assert (result3[i] == utf16[i]);
368 check_utf16_to_utf8 (const gunichar2 *utf16, argument
380 result = g_utf16_to_utf8 (utf16, utf16_len, &items_read, &items_written, &error);
381 if (utf16[utf16_len] == 0)
385 result2 = g_utf16_to_utf8 (utf16, -1, &items_read2, &items_written2, &error2);
400 result3 = g_utf16_to_utf8 (utf16, utf16_len, NULL, NULL, &error3);
442 const gunichar2 *utf16,
292 check_utf8_to_utf16(const char *utf8, glong utf8_len, const gunichar2 *utf16, glong utf16_len, glong error_pos) argument
440 check_ucs4_to_utf16(const gunichar *ucs4, glong ucs4_len, const gunichar2 *utf16, glong utf16_len, glong error_pos) argument
508 check_utf16_to_ucs4(const gunichar2 *utf16, glong utf16_len, const gunichar *ucs4, glong ucs4_len, glong error_pos) argument
588 gunichar2 utf16[100]; local
[all...]
/external/chromium/third_party/icu/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/icu4c/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/third_party/icu/source/test/cintltst/
H A Ducnvseltst.c443 static UChar utf16[10000]; local
468 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
478 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt);
479 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb);
481 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt);
482 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
H A Dccapitst.c2478 UChar utf16[U16_MAX_LENGTH]; local
2495 U16_APPEND_UNSAFE(utf16, utf16Length, c);
2499 utf16Source=utf16;
2503 &utf16Source, utf16+utf16Length,
2507 utf16Source=utf16;
2511 &utf16Source, utf16+utf16Length,
2698 utf16[]={ local
2765 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2784 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2798 length=ucnv_fromAlgorithmic(cnv, (UConverterType)99, target, 0, (const char *)utf16,
[all...]
/external/icu4c/test/cintltst/
H A Ducnvseltst.c444 static UChar utf16[10000]; local
469 u_strFromUTF8(utf16, LENGTHOF(utf16), &length16, s, length8, &status);
479 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt);
480 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb);
482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt);
483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
H A DSDL_x11events.c182 buffer pointed to by utf16. The maximum number of UTF-16 encoding
185 encoding units placed in the output buffer pointed to by utf16.
190 The caller must estimate the size of utf16 buffer by itself before
205 - The output buffer has no enough space to hold entire utf16 data.
228 static int Utf8ToUtf16(const Uint8 *utf8, const int utf8_length, Uint16 *utf16, const int utf16_max_length) { argument
231 Uint16 *p = utf16;
232 Uint16 const *const max_ptr = utf16 + utf16_max_length;
294 return p - utf16;
/external/chromium/third_party/icu/source/common/
H A Dunistr.cpp426 UChar *utf16 = result.getBuffer(capacity); local
429 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16,
1157 UChar *utf16 = getBuffer(capacity); local
1160 u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
/external/chromium/third_party/icu/source/test/intltest/
H A Dustrtest.cpp241 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local
244 UnicodeString from16(FALSE, utf16, LENGTHOF(utf16));
1798 static const UChar utf16[] = { local
1807 UnicodeString(FALSE, utf16, LENGTHOF(utf16)).
1856 static const UChar utf16[] = { local
1863 UnicodeString us(FALSE, utf16, LENGTHOF(utf16));
/external/icu4c/common/
H A Dunistr.cpp427 UChar *utf16 = result.getBuffer(capacity); local
430 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16,
1169 UChar *utf16 = getBuffer(capacity); local
1172 u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
/external/icu4c/test/intltest/
H A Dustrtest.cpp242 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local
245 UnicodeString from16(FALSE, utf16, LENGTHOF(utf16));
1815 static const UChar utf16[] = { local
1824 UnicodeString(FALSE, utf16, LENGTHOF(utf16)).
1873 static const UChar utf16[] = { local
1880 UnicodeString us(FALSE, utf16, LENGTHOF(utf16));
/external/webkit/WebCore/platform/
H A DKURLGoogle.cpp930 url_canon::RawCanonOutputT<url_parse::UTF16Char> utf16; local
935 utf16.push_back(uch);
944 url_canon::AppendUTF16Value(codePoint, &utf16);
952 utf16.push_back(static_cast<unsigned char>(unescaped.at(i)));
955 utf16.push_back(static_cast<unsigned char>(unescaped.at(i)));
960 return String(reinterpret_cast<UChar*>(utf16.data()), utf16.length());
/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;

Completed in 255 milliseconds

12