Home
last modified time | relevance | path

Searched refs:Codepoints (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DJSON.cpp709 std::vector<UTF32> Codepoints(S.size()); // 1 codepoint per byte suffices. in fixUTF8() local
711 UTF32 *Out32 = Codepoints.data(); in fixUTF8()
712 ConvertUTF8toUTF32(&In8, In8 + S.size(), &Out32, Out32 + Codepoints.size(), in fixUTF8()
714 Codepoints.resize(Out32 - Codepoints.data()); in fixUTF8()
715 std::string Res(4 * Codepoints.size(), 0); // 4 bytes per codepoint suffice in fixUTF8()
716 const UTF32 *In32 = Codepoints.data(); in fixUTF8()
718 ConvertUTF32toUTF8(&In32, In32 + Codepoints.size(), &Out8, Out8 + Res.size(), in fixUTF8()