/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 145 StringRef Str("hello"); in TEST() local 146 EXPECT_EQ("lo", Str.substr(3)); in TEST() 147 EXPECT_EQ("", Str.substr(100)); in TEST() 148 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST() 149 EXPECT_EQ("o", Str.substr(4, 10)); in TEST() 153 StringRef Str("hello"); in TEST() local 154 EXPECT_EQ("l", Str.slice(2, 3)); in TEST() 155 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST() 156 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST() 157 EXPECT_EQ("", Str.slice(2, 1)); in TEST() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Triple.cpp | 192 Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) { in getArchTypeForDarwinArchName() argument 205 if (Str == "ppc" || Str == "ppc601" || Str == "ppc603" || Str == "ppc604" || in getArchTypeForDarwinArchName() 206 Str == "ppc604e" || Str == "ppc750" || Str == "ppc7400" || in getArchTypeForDarwinArchName() 207 Str == "ppc7450" || Str == "ppc970") in getArchTypeForDarwinArchName() 210 if (Str == "ppc64") in getArchTypeForDarwinArchName() 213 if (Str == "i386" || Str == "i486" || Str == "i486SX" || Str == "pentium" || in getArchTypeForDarwinArchName() 214 Str == "i586" || Str == "pentpro" || Str == "i686" || Str == "pentIIm3" || in getArchTypeForDarwinArchName() 215 Str == "pentIIm5" || Str == "pentium4") in getArchTypeForDarwinArchName() 218 if (Str == "x86_64") in getArchTypeForDarwinArchName() 222 if (Str == "arm" || Str == "armv4t" || Str == "armv5" || Str == "xscale" || in getArchTypeForDarwinArchName() [all …]
|
D | StringRef.cpp | 143 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 144 size_t N = Str.size(); in find() 148 if (substr(i, N).equals(Str)) in find() 157 size_t StringRef::rfind(StringRef Str) const { in rfind() 158 size_t N = Str.size(); in rfind() 163 if (substr(i, N).equals(Str)) in rfind() 232 size_t StringRef::count(StringRef Str) const { in count() 234 size_t N = Str.size(); in count() 238 if (substr(i, N).equals(Str)) in count() 243 static unsigned GetAutoSenseRadix(StringRef &Str) { in GetAutoSenseRadix() argument [all …]
|
/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | StringRefTest.cpp | 102 StringRef Str("hello"); in TEST() local 103 EXPECT_EQ("lo", Str.substr(3)); in TEST() 104 EXPECT_EQ("", Str.substr(100)); in TEST() 105 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST() 106 EXPECT_EQ("o", Str.substr(4, 10)); in TEST() 110 StringRef Str("hello"); in TEST() local 111 EXPECT_EQ("l", Str.slice(2, 3)); in TEST() 112 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST() 113 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST() 114 EXPECT_EQ("", Str.slice(2, 1)); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 45 StringRef Str; variable 54 : Str(S), Result(nullptr) { } in StringSwitch() 59 if (!Result && N-1 == Str.size() && in Case() 60 (std::memcmp(S, Str.data(), N-1) == 0)) { in Case() 70 if (!Result && Str.size() >= N-1 && in EndsWith() 71 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { in EndsWith() 81 if (!Result && Str.size() >= N-1 && in StartsWith() 82 std::memcmp(S, Str.data(), N-1) == 0) { in StartsWith() 94 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases() 95 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) { in Cases() [all …]
|
/external/llvm/lib/Support/ |
D | StringRef.cpp | 142 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 146 const char *Needle = Str.data(); in find() 147 size_t N = Str.size(); in find() 172 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find() 189 size_t StringRef::rfind(StringRef Str) const { in rfind() 190 size_t N = Str.size(); in rfind() 195 if (substr(i, N).equals(Str)) in rfind() 342 size_t StringRef::count(StringRef Str) const { in count() 344 size_t N = Str.size(); in count() 348 if (substr(i, N).equals(Str)) in count() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | StringRef.cpp | 147 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 154 const char *Needle = Str.data(); in find() 155 size_t N = Str.size(); in find() 181 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find() 196 size_t StringRef::find_lower(StringRef Str, size_t From) const { in find_lower() argument 198 while (This.size() >= Str.size()) { in find_lower() 199 if (This.startswith_lower(Str)) in find_lower() 222 size_t StringRef::rfind(StringRef Str) const { in rfind() 223 size_t N = Str.size(); in rfind() 228 if (substr(i, N).equals(Str)) in rfind() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | StringRef.cpp | 133 size_t StringRef::find(StringRef Str, size_t From) const { in find() argument 140 const char *Needle = Str.data(); in find() 141 size_t N = Str.size(); in find() 167 BadCharSkip[(uint8_t)Str[i]] = N-1-i; in find() 182 size_t StringRef::find_lower(StringRef Str, size_t From) const { in find_lower() argument 184 while (This.size() >= Str.size()) { in find_lower() 185 if (This.startswith_lower(Str)) in find_lower() 208 size_t StringRef::rfind(StringRef Str) const { in rfind() 209 size_t N = Str.size(); in rfind() 214 if (substr(i, N).equals(Str)) in rfind() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mc/ |
D | Disassembler.cpp | 80 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument 82 if (Str.empty()) in SkipToToken() 86 if (size_t Pos = Str.find_first_not_of(" \t\r\n,")) { in SkipToToken() 87 Str = Str.substr(Pos); in SkipToToken() 92 if (Str[0] == '#') { in SkipToToken() 93 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 102 StringRef &Str, in ByteArrayFromString() argument 104 while (SkipToToken(Str)) { in ByteArrayFromString() 106 if (Str[0] == '[' || Str[0] == ']') in ByteArrayFromString() 110 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | Disassembler.cpp | 80 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument 82 if (Str.empty()) in SkipToToken() 86 if (size_t Pos = Str.find_first_not_of(" \t\r\n,")) { in SkipToToken() 87 Str = Str.substr(Pos); in SkipToToken() 92 if (Str[0] == '#') { in SkipToToken() 93 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 102 StringRef &Str, in ByteArrayFromString() argument 104 while (SkipToToken(Str)) { in ByteArrayFromString() 106 if (Str[0] == '[' || Str[0] == ']') in ByteArrayFromString() 110 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString() [all …]
|
/external/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 109 StringRef Str("hello"); in TEST() local 110 EXPECT_EQ("lo", Str.substr(3)); in TEST() 111 EXPECT_EQ("", Str.substr(100)); in TEST() 112 EXPECT_EQ("hello", Str.substr(0, 100)); in TEST() 113 EXPECT_EQ("o", Str.substr(4, 10)); in TEST() 117 StringRef Str("hello"); in TEST() local 118 EXPECT_EQ("l", Str.slice(2, 3)); in TEST() 119 EXPECT_EQ("ell", Str.slice(1, 4)); in TEST() 120 EXPECT_EQ("llo", Str.slice(2, 100)); in TEST() 121 EXPECT_EQ("", Str.slice(2, 1)); in TEST() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceInst.cpp | 648 Ostream &Str = Func->getContext()->getStrDump(); in dumpDecorated() local 654 Str << "[XXX]"; in dumpDecorated() 656 Str << llvm::format("[%3d]", Number); in dumpDecorated() 658 Str << " "; in dumpDecorated() 660 Str << " //"; in dumpDecorated() 663 Str << "\n"; in dumpDecorated() 669 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 671 Str << " =~ " << getInstName() << " "; in dump() 678 Ostream &Str = Func->getContext()->getStrDump(); in dumpExtras() local 686 Str << " // LIVEEND={"; in dumpExtras() [all …]
|
D | IceELFSection.h | 85 template <bool IsELF64> void writeHeader(ELFStreamer &Str); 110 void appendData(ELFStreamer &Str, const llvm::StringRef MoreData); 124 void appendData(ELFStreamer &Str, const llvm::StringRef MoreData); 126 void appendZeros(ELFStreamer &Str, SizeT NumBytes); 128 void appendRelocationOffset(ELFStreamer &Str, bool IsRela, 134 void padToAlignment(ELFStreamer &Str, Elf64_Xword Align); 198 void writeData(ELFStreamer &Str, bool IsELF64); 207 void writeSymbolMap(ELFStreamer &Str, const SymMap &Map); 246 void writeData(ELFStreamer &Str, const ELFSymbolTableSection *SymTab); 269 void add(const std::string &Str); [all …]
|
D | IceInstARM32.cpp | 111 void InstARM32Pred::dumpOpcodePred(Ostream &Str, const char *Opcode, in dumpOpcodePred() argument 113 Str << Opcode << getPredicate() << "." << Ty; in dumpOpcodePred() 165 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopGPR() local 168 Str << "\t" << Opcode; in emitUnaryopGPR() 170 Str << getWidthString(SrcTy); in emitUnaryopGPR() 171 Str << Instr->getPredicate() << "\t"; in emitUnaryopGPR() 173 Str << ", "; in emitUnaryopGPR() 179 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopFP() local 182 Str << "\t" << Opcode << Instr->getPredicate(); in emitUnaryopFP() 185 Str << getFpWidthString(SrcTy); in emitUnaryopFP() [all …]
|
D | IceInstX8664.cpp | 61 void TargetX8664Traits::X86Operand::dump(const Cfg *, Ostream &Str) const { in dump() 63 Str << "<OperandX8664>"; in dump() 122 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 128 Str << Disp; in emit() 132 Str << CI->getValue() + Disp; in emit() 143 Str << "(%rip)"; in emit() 145 Str << "(%eip)"; in emit() 156 Str << "("; in emit() 179 Str << ","; in emit() 182 Str << "," << (1u << Shift); in emit() [all …]
|
D | IceInstX8632.cpp | 72 void TargetX8632Traits::X86Operand::dump(const Cfg *, Ostream &Str) const { in dump() 74 Str << "<OperandX8632>"; in dump() 149 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 152 Str << "%" << X8632::Traits::InstSegmentRegNames[SegmentReg] << ":"; in emit() 159 Str << Disp; in emit() 163 Str << CI->getValue() + Disp; in emit() 175 Str << "("; in emit() 179 Str << ","; in emit() 182 Str << "," << (1u << getShift()); in emit() 184 Str << ")"; in emit() [all …]
|
D | IceInstMIPS32.h | 34 inline void emitRelocOp(Ostream &Str, RelocOp Reloc) { in emitRelocOp() argument 39 Str << "%hi"; in emitRelocOp() 42 Str << "%lo"; in emitRelocOp() 64 void dump(const Cfg *, Ostream &Str) const override { in dump() argument 66 Str << "<OperandMIPS32>"; in dump() 90 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 91 Str << "$fcc" << static_cast<uint16_t>(FpCondCode); in emit() 98 void dump(const Cfg *Func, Ostream &Str) const override { in dump() argument 102 Str << "$fcc" << static_cast<uint16_t>(FpCondCode); in dump() 152 void dump(const Cfg *Func, Ostream &Str) const override { in dump() argument [all …]
|
D | IceInstX86BaseImpl.h | 404 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 405 Str << "[" << Traits::TargetName << "] "; in dump() 413 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 415 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump() 417 Str << ", "; in dump() 419 Str << ", beacon="; in dump() 429 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 430 Str << "\t" in emit() 450 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 452 Str << " = call getIP"; in dump() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/DynamicLibrary/ |
D | PipSqueak.cpp | 13 std::string *Str; member 15 Global() : Str(nullptr), Vec(nullptr) {} in Global() 17 if (Str) { in ~Global() 19 Vec->push_back(*Str); in ~Global() 20 *Str = "Global::~Global"; in ~Global() 28 std::string &Str; member 29 Local(std::string &S) : Str(S) { in Local() 30 Str = "Local::Local"; in Local() 31 if (Glb.Str && !Glb.Str->empty()) in Local() 32 Str += std::string("(") + *Glb.Str + std::string(")"); in Local() [all …]
|
/external/clang/tools/libclang/ |
D | CXString.cpp | 46 CXString Str; in createEmpty() local 47 Str.data = ""; in createEmpty() 48 Str.private_flags = CXS_Unmanaged; in createEmpty() 49 return Str; in createEmpty() 53 CXString Str; in createNull() local 54 Str.data = nullptr; in createNull() 55 Str.private_flags = CXS_Unmanaged; in createNull() 56 return Str; in createNull() 63 CXString Str; in createRef() local 64 Str.data = String; in createRef() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-mc/ |
D | Disassembler.cpp | 96 StringRef &Str, in ByteArrayFromString() argument 98 while (!Str.empty()) { in ByteArrayFromString() 100 if (size_t Pos = Str.find_first_not_of(" \t\r")) { in ByteArrayFromString() 101 Str = Str.substr(Pos); in ByteArrayFromString() 107 if (Str[0] == '\n' || Str[0] == '#') { in ByteArrayFromString() 110 if (Str[0] == '\n') { in ByteArrayFromString() 111 Str = Str.substr(1); in ByteArrayFromString() 113 Str = Str.substr(Str.find_first_of('\n')); in ByteArrayFromString() 114 if (!Str.empty()) in ByteArrayFromString() 115 Str = Str.substr(1); in ByteArrayFromString() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ |
D | Mangler.cpp | 48 static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) { in NameNeedsEscaping() argument 49 assert(!Str.empty() && "Cannot create an empty MCSymbol"); in NameNeedsEscaping() 53 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') in NameNeedsEscaping() 59 for (unsigned i = 0, e = Str.size(); i != e; ++i) in NameNeedsEscaping() 60 if (!isAcceptableChar(Str[i], AllowPeriod)) in NameNeedsEscaping() 67 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str, in appendMangledName() argument 71 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') { in appendMangledName() 72 MangleLetter(OutName, Str[0]); in appendMangledName() 73 Str = Str.substr(1); in appendMangledName() 77 for (unsigned i = 0, e = Str.size(); i != e; ++i) { in appendMangledName() [all …]
|
/external/libtextclassifier/utils/hash/ |
D | farmhash.h | 162 template <typename Str> 163 inline size_t Hash(const Str& s) { in Hash() 171 template <typename Str> 172 inline uint32_t Hash32(const Str& s) { in Hash32() 181 template <typename Str> 182 inline uint32_t Hash32WithSeed(const Str& s, uint32_t seed) { in Hash32WithSeed() 191 template <typename Str> 192 inline uint64_t Hash64(const Str& s) { in Hash64() 201 template <typename Str> 202 inline uint64_t Hash64WithSeed(const Str& s, uint64_t seed) { in Hash64WithSeed() [all …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
D | jid_unittest.cc | 21 EXPECT_EQ("dude", jid.Str()); in TEST() 22 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 33 EXPECT_EQ("walter@dude", jid.Str()); in TEST() 34 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 45 EXPECT_EQ("dude/bowlingalley", jid.Str()); in TEST() 46 EXPECT_EQ("dude", jid.BareJid().Str()); in TEST() 57 EXPECT_EQ("walter@dude/bowlingalley", jid.Str()); in TEST() 58 EXPECT_EQ("walter@dude", jid.BareJid().Str()); in TEST() 69 EXPECT_EQ("", jid.Str()); in TEST() 70 EXPECT_EQ("", jid.BareJid().Str()); in TEST() [all …]
|
/external/webrtc/webrtc/libjingle/xmllite/ |
D | xmlbuilder_unittest.cc | 27 EXPECT_EQ("<testing/>", builder.BuiltElement()->Str()); in TEST() 33 EXPECT_EQ("<testing a=\"b\"/>", builder.BuiltElement()->Str()); in TEST() 40 builder.BuiltElement()->Str()); in TEST() 48 builder.BuiltElement()->Str()); in TEST() 59 "</second></top>", builder.BuiltElement()->Str()); in TEST() 65 EXPECT_EQ("<testing a=\">\"/>", builder.BuiltElement()->Str()); in TEST() 72 builder.BuiltElement()->Str()); in TEST() 79 builder.BuiltElement()->Str()); in TEST() 86 builder.BuiltElement()->Str()); in TEST() 94 builder.BuiltElement()->Str()); in TEST() [all …]
|