Searched refs:SrcBytes (Results 1 – 3 of 3) sorted by relevance
84 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out) { in convertUTF16ToUTF8String() argument88 if (SrcBytes.size() % 2) in convertUTF16ToUTF8String()92 if (SrcBytes.empty()) in convertUTF16ToUTF8String()95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String()96 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String()113 Out.resize(SrcBytes.size() * UNI_MAX_UTF8_BYTES_PER_CODE_POINT); in convertUTF16ToUTF8String()
243 unsigned SrcBytes = LT.second.getStoreSize(); in getMemoryOpCost() local244 if (SrcBytes && Alignment && Alignment < SrcBytes) in getMemoryOpCost()245 Cost *= (SrcBytes/Alignment); in getMemoryOpCost()
231 bool hasUTF16ByteOrderMark(ArrayRef<char> SrcBytes);240 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out);