Lines Matching defs:SrcBytes
83 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out) {
87 if (SrcBytes.size() % 2)
91 if (SrcBytes.empty())
94 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin());
95 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end());
115 Out.resize(SrcBytes.size() * UNI_MAX_UTF8_BYTES_PER_CODE_POINT + 1);
141 bool convertUTF32ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out) {
145 if (SrcBytes.size() % 4)
149 if (SrcBytes.empty())
152 const UTF32 *Src = reinterpret_cast<const UTF32 *>(SrcBytes.begin());
153 const UTF32 *SrcEnd = reinterpret_cast<const UTF32 *>(SrcBytes.end());
173 Out.resize(SrcBytes.size() * UNI_MAX_UTF8_BYTES_PER_CODE_POINT + 1);