Lines Matching refs:latin1
372 void EncodeFromLatin1Tmpl(span<uint8_t> latin1, C* out) { in EncodeFromLatin1Tmpl() argument
373 for (size_t ii = 0; ii < latin1.size(); ++ii) { in EncodeFromLatin1Tmpl()
374 if (latin1[ii] <= 127) in EncodeFromLatin1Tmpl()
377 std::vector<uint8_t> utf8(latin1.begin(), latin1.begin() + ii); in EncodeFromLatin1Tmpl()
378 for (; ii < latin1.size(); ++ii) { in EncodeFromLatin1Tmpl()
379 if (latin1[ii] <= 127) { in EncodeFromLatin1Tmpl()
380 utf8.push_back(latin1[ii]); in EncodeFromLatin1Tmpl()
383 utf8.push_back((latin1[ii] >> 6) | 0xc0); in EncodeFromLatin1Tmpl()
384 utf8.push_back((latin1[ii] | 0x80) & 0xbf); in EncodeFromLatin1Tmpl()
390 EncodeString8(latin1, out); in EncodeFromLatin1Tmpl()
392 void EncodeFromLatin1(span<uint8_t> latin1, std::vector<uint8_t>* out) { in EncodeFromLatin1() argument
393 EncodeFromLatin1Tmpl(latin1, out); in EncodeFromLatin1()
395 void EncodeFromLatin1(span<uint8_t> latin1, std::string* out) { in EncodeFromLatin1() argument
396 EncodeFromLatin1Tmpl(latin1, out); in EncodeFromLatin1()