Lines Matching defs:Src
94 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin());
97 assert((uintptr_t)Src % sizeof(UTF16) == 0);
101 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_SWAPPED) {
102 ByteSwapped.insert(ByteSwapped.end(), Src, SrcEnd);
105 Src = &ByteSwapped[0];
110 if (Src[0] == UNI_UTF16_BYTE_ORDER_MARK_NATIVE)
111 Src++;
120 ConvertUTF16toUTF8(&Src, SrcEnd, &Dst, DstEnd, strictConversion);
134 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) {
136 llvm::ArrayRef<char>(reinterpret_cast<const char *>(Src.data()),
137 Src.size() * sizeof(UTF16)),
152 const UTF32 *Src = reinterpret_cast<const UTF32 *>(SrcBytes.begin());
155 assert((uintptr_t)Src % sizeof(UTF32) == 0);
159 if (Src[0] == UNI_UTF32_BYTE_ORDER_MARK_SWAPPED) {
160 ByteSwapped.insert(ByteSwapped.end(), Src, SrcEnd);
163 Src = &ByteSwapped[0];
168 if (Src[0] == UNI_UTF32_BYTE_ORDER_MARK_NATIVE)
169 Src++;
178 ConvertUTF32toUTF8(&Src, SrcEnd, &Dst, DstEnd, strictConversion);
192 bool convertUTF32ToUTF8String(ArrayRef<UTF32> Src, std::string &Out) {
194 llvm::ArrayRef<char>(reinterpret_cast<const char *>(Src.data()),
195 Src.size() * sizeof(UTF32)),
210 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin());
223 ConvertUTF8toUTF16(&Src, SrcEnd, &Dst, DstEnd, strictConversion);