Home | History | Annotate | Download | only in i18n

Lines Matching refs:encoded

82                       std::string* encoded) {
85 encoded->resize(encoded_max_length);
105 int actual_size = ucnv_fromUChars(converter, &(*encoded)[0],
107 encoded->resize(actual_size);
111 encoded->clear(); // Make sure the output is empty on error.
156 std::string* encoded) {
157 encoded->clear();
165 static_cast<int>(utf16.length()), on_error, encoded);
168 bool CodepageToUTF16(const std::string& encoded,
187 size_t uchar_max_length = encoded.length() + 1;
191 static_cast<int>(uchar_max_length), encoded.data(),
192 static_cast<int>(encoded.length()), &status);
206 std::string* encoded) {
208 return UTF16ToCodepage(wide, codepage_name, on_error, encoded);
210 encoded->clear();
229 return ConvertFromUTF16(converter, &utf16[0], utf16_len, on_error, encoded);
233 bool CodepageToWide(const std::string& encoded,
238 return CodepageToUTF16(encoded, codepage_name, on_error, wide);
251 size_t wchar_max_length = encoded.length() + 1;
256 static_cast<int>(wchar_max_length) * sizeof(wchar_t), encoded.data(),
257 static_cast<int>(encoded.length()), &status);