Lines Matching full:utf16
160 bool UTF16ToCodepage(const string16& utf16,
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[0], utf16.size(), &utf16_len,
235 return ConvertFromUTF16(converter, &utf16[0], utf16_len, on_error, encoded);