Lines Matching refs:Source
5 // This file is distributed under the University of Illinois Open Source
15 bool ConvertUTF8toWide(unsigned WideCharWidth, llvm::StringRef Source,
21 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin());
22 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) {
26 memcpy(ResultPtr, Source.data(), Source.size());
27 ResultPtr += Source.size();
30 const UTF8 *sourceStart = (const UTF8*)Source.data();
36 &sourceStart, sourceStart + Source.size(),
37 &targetStart, targetStart + 2*Source.size(), flags);
43 const UTF8 *sourceStart = (const UTF8*)Source.data();
49 &sourceStart, sourceStart + Source.size(),
50 &targetStart, targetStart + 4*Source.size(), flags);
61 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr) {
62 const UTF32 *SourceStart = &Source;