Lines Matching refs:Source
17 bool ConvertUTF8toWide(unsigned WideCharWidth, llvm::StringRef Source, in ConvertUTF8toWide() argument
23 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide()
24 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide()
28 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide()
29 ResultPtr += Source.size(); in ConvertUTF8toWide()
32 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
38 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
39 &targetStart, targetStart + 2*Source.size(), flags); in ConvertUTF8toWide()
45 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
51 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
52 &targetStart, targetStart + 4*Source.size(), flags); in ConvertUTF8toWide()
63 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr) { in ConvertCodePointToUTF8() argument
64 const UTF32 *SourceStart = &Source; in ConvertCodePointToUTF8()