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