D | ConvertUTFWrapper.cpp | 14 bool ConvertUTF8toWide(unsigned WideCharWidth, llvm::StringRef Source, in ConvertUTF8toWide() argument 20 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide() 21 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide() 25 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide() 26 ResultPtr += Source.size(); in ConvertUTF8toWide() 29 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide() 35 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide() 36 &targetStart, targetStart + 2*Source.size(), flags); in ConvertUTF8toWide() 42 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide() 48 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide() [all …]
|