Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Support/
H A DJSON.cpp549 std::vector<UTF32> Codepoints(S.size()); // 1 codepoint per byte suffices. in fixUTF8() local
551 UTF32 *Out32 = Codepoints.data(); in fixUTF8()
552 ConvertUTF8toUTF32(&In8, In8 + S.size(), &Out32, Out32 + Codepoints.size(), in fixUTF8()
554 Codepoints.resize(Out32 - Codepoints.data()); in fixUTF8()
555 std::string Res(4 * Codepoints.size(), 0); // 4 bytes per codepoint suffice in fixUTF8()
556 const UTF32 *In32 = Codepoints.data(); in fixUTF8()
558 ConvertUTF32toUTF8(&In32, In32 + Codepoints.size(), &Out8, Out8 + Res.size(), in fixUTF8()