/third_party/rust/crates/serde/test_suite/tests/ |
D | test_macros.rs | 185 Token::Str("a"), in test_ser_named_map() 187 Token::Str("b"), in test_ser_named_map() 189 Token::Str("c"), in test_ser_named_map() 205 Token::Str("a"), in test_de_named_map() 207 Token::Str("b"), in test_de_named_map() 209 Token::Str("c"), in test_de_named_map() 271 Token::Str("a"), in test_ser_enum_map() 273 Token::Str("b"), in test_ser_enum_map() 275 Token::Str("c"), in test_ser_enum_map() 277 Token::Str("d"), in test_ser_enum_map() [all …]
|
D | test_annotations.rs | 166 Token::Str("a1"), in test_default_struct() 168 Token::Str("a2"), in test_default_struct() 170 Token::Str("a3"), in test_default_struct() 172 Token::Str("a4"), in test_default_struct() 174 Token::Str("a5"), in test_default_struct() 193 Token::Str("a1"), in test_default_struct() 276 Token::Str("a1"), in test_default_struct_variant() 278 Token::Str("a2"), in test_default_struct_variant() 280 Token::Str("a3"), in test_default_struct_variant() 282 Token::Str("a4"), in test_default_struct_variant() [all …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.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 …]
|
D | ScaledNumber.cpp | 137 static void appendDigit(std::string &Str, unsigned D) { in appendDigit() argument 139 Str += '0' + D % 10; in appendDigit() 142 static void appendNumber(std::string &Str, uint64_t N) { in appendNumber() argument 144 appendDigit(Str, N % 10); in appendNumber() 238 std::string Str; in toString() local 241 appendNumber(Str, Above0); in toString() 242 DigitsOut = Str.size(); in toString() 244 appendDigit(Str, 0); in toString() 245 std::reverse(Str.begin(), Str.end()); in toString() 249 return Str + ".0"; in toString() [all …]
|
D | GraphWriter.cpp | 36 std::string Str(Label); in EscapeString() local 37 for (unsigned i = 0; i != Str.length(); ++i) in EscapeString() 38 switch (Str[i]) { in EscapeString() 40 Str.insert(Str.begin()+i, '\\'); // Escape character... in EscapeString() 42 Str[i] = 'n'; in EscapeString() 45 Str.insert(Str.begin()+i, ' '); // Convert to two spaces in EscapeString() 47 Str[i] = ' '; in EscapeString() 50 if (i+1 != Str.length()) in EscapeString() 51 switch (Str[i+1]) { in EscapeString() 54 Str.erase(Str.begin()+i); continue; in EscapeString() [all …]
|
/third_party/rust/crates/clap/src/builder/ |
D | str.rs | 6 pub struct Str { struct 10 impl Str { impl 41 impl From<&'_ Str> for Str { implementation 42 fn from(id: &'_ Str) -> Self { in from() 48 impl From<std::string::String> for Str { implementation 55 impl From<&'_ std::string::String> for Str { implementation 61 impl From<&'static str> for Str { implementation 67 impl From<&'_ &'static str> for Str { implementation 73 impl From<Str> for String { 74 fn from(name: Str) -> Self { in from() [all …]
|
/third_party/flutter/skia/third_party/externals/wuffs/lang/check/ |
D | type.go | 36 return fmt.Errorf("check: duplicate var %q", name.Str(q.tm)) 71 cond.Str(q.tm), cond.MType().Str(q.tm)) 96 n.Keyword().Str(q.tm), n.IO().Str(q.tm), typ.Str(q.tm)) 108 n.Keyword().Str(q.tm), n.Arg1().Str(q.tm), typ.Str(q.tm), arg1Typ.Str(q.tm)) 128 o.LHS().Str(q.tm), typ.Str(q.tm)) 158 sepStr, labelStr = ":", id.Str(q.tm) 161 n.Keyword().Str(q.tm), sepStr, labelStr) 185 value.Str(q.tm), rTyp.Str(q.tm), lTyp.Str(q.tm)) 191 return fmt.Errorf("check: internal error: unchecked type expression %q", n.XType().Str(q.tm)) 206 cond.Str(q.tm), cond.MType().Str(q.tm)) [all …]
|
D | check.go | 56 b = append(b, f.Str(e.TMap)...) 185 filename, ok := t.Unescape(usePath.Str(c.tm)) 187 return fmt.Errorf("check: cannot resolve `use %s`", usePath.Str(c.tm)) 191 return fmt.Errorf("check: cannot resolve `use %s`: %v", usePath.Str(c.tm), err) 195 return fmt.Errorf("check: duplicate `use \"etc\"` base name %q", baseName.Str(c.tm)) 250 Err: fmt.Errorf("check: duplicate status %s", qid.Str(c.tm)), 268 Err: fmt.Errorf("check: duplicate const %s", qid.Str(c.tm)), 283 return fmt.Errorf("%v in const %s", err, qid.Str(c.tm)) 286 return fmt.Errorf("%v in const %s", err, qid.Str(c.tm)) 290 return fmt.Errorf("%v in const %s", err, qid.Str(c.tm)) [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceInst.cpp | 631 Ostream &Str = Func->getContext()->getStrDump(); in dumpDecorated() local 637 Str << "[XXX]"; in dumpDecorated() 639 Str << llvm::format("[%3d]", Number); in dumpDecorated() 641 Str << " "; in dumpDecorated() 643 Str << " //"; in dumpDecorated() 646 Str << "\n"; in dumpDecorated() 652 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 654 Str << " =~ " << getInstName() << " "; in dump() 661 Ostream &Str = Func->getContext()->getStrDump(); in dumpExtras() local 669 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 | IceInstX8632.cpp | 406 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 407 Str << "[X8632] "; in dump() 414 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 416 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump() 418 Str << ", "; in dump() 420 Str << ", beacon="; in dump() 427 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 428 Str << getLabelName() << ":"; in emit() 442 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 443 Str << getLabelName() << ":"; in dump() [all …]
|
D | IceInstX8664.cpp | 386 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 387 Str << "[X8664] "; in dump() 394 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 396 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump() 398 Str << ", "; in dump() 400 Str << ", beacon="; in dump() 407 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 408 Str << getLabelName() << ":"; in emit() 422 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 423 Str << getLabelName() << ":"; in dump() [all …]
|
D | IceInstARM32.cpp | 106 void InstARM32Pred::dumpOpcodePred(Ostream &Str, const char *Opcode, in dumpOpcodePred() argument 108 Str << Opcode << getPredicate() << "." << Ty; in dumpOpcodePred() 160 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopGPR() local 163 Str << "\t" << Opcode; in emitUnaryopGPR() 165 Str << getWidthString(SrcTy); in emitUnaryopGPR() 166 Str << Instr->getPredicate() << "\t"; in emitUnaryopGPR() 168 Str << ", "; in emitUnaryopGPR() 174 Ostream &Str = Func->getContext()->getStrEmit(); in emitUnaryopFP() local 177 Str << "\t" << Opcode << Instr->getPredicate(); in emitUnaryopFP() 180 Str << getFpWidthString(SrcTy); in emitUnaryopFP() [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 | IceInstMIPS32.cpp | 64 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 66 Str << "\t" << Opcode << "\t"; in emit() 68 Str << ", "; in emit() 71 emitRelocOp(Str, Reloc); in emit() 72 Str << "("; in emit() 74 Str << ")"; in emit() 172 Ostream &Str = Func->getContext()->getStrDump(); in dump() local 173 Str << getLabelName() << ":"; in dump() 179 Ostream &Str = Func->getContext()->getStrEmit(); in emit() local 180 Str << getLabelName() << ":"; in emit() [all …]
|
D | IceELFSection.cpp | 27 void ELFTextSection::appendData(ELFStreamer &Str, in appendData() argument 29 Str.writeBytes(MoreData); in appendData() 35 void ELFDataSection::appendData(ELFStreamer &Str, in appendData() argument 37 Str.writeBytes(MoreData); in appendData() 41 void ELFDataSection::appendZeros(ELFStreamer &Str, SizeT NumBytes) { in appendZeros() argument 42 Str.writeZeroPadding(NumBytes); in appendZeros() 46 void ELFDataSection::appendRelocationOffset(ELFStreamer &Str, bool IsRela, in appendRelocationOffset() argument 50 appendZeros(Str, RelocAddrSize); in appendRelocationOffset() 54 Str.writeLE32(RelocOffset); in appendRelocationOffset() 58 void ELFDataSection::padToAlignment(ELFStreamer &Str, Elf64_Xword Align) { in padToAlignment() argument [all …]
|
D | IceELFObjectWriter.cpp | 71 : Ctx(Ctx), Str(Out), ELF64(isELF64(getFlags())) { in ELFObjectWriter() 204 Elf64_Off OffsetInFile = Str.tell(); in alignFileOffset() 208 Str.writeZeroPadding(AlignDiff); in alignFileOffset() 268 Section->appendData(Str, Asm->getBufferView()); in writeFunctionCode() 308 Section->appendData(Str, llvm::StringRef(SecData.data(), SecData.size())); in writeTargetRODataSection() 400 Section->padToAlignment(Str, Align); in writeDataOfType() 411 Section->appendZeros(Str, SymbolSize); in writeDataOfType() 422 Section->appendData(Str, llvm::StringRef(Data.data(), Data.size())); in writeDataOfType() 426 Section->appendZeros(Str, Init->getNumBytes()); in writeDataOfType() 439 Section->appendRelocationOffset(Str, RelSection->isRela(), in writeDataOfType() [all …]
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | str.md | 1 {{#title rust::Str — Rust ♡ C++}} 2 # rust::Str 14 class Str final { 16 Str() noexcept; 17 Str(const Str &) noexcept; 18 Str(const String &) noexcept; 21 Str(const std::string &); 22 Str(const char *); 23 Str(const char *, size_t); 25 Str &operator=(const Str &) noexcept; [all …]
|
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerUtil.cpp | 81 bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) { in ParseOneDictionaryEntry() argument 83 if (Str.empty()) return false; in ParseOneDictionaryEntry() 84 size_t L = 0, R = Str.size() - 1; // We are parsing the range [L,R]. in ParseOneDictionaryEntry() 86 while (L < R && isspace(Str[L])) L++; in ParseOneDictionaryEntry() 87 while (R > L && isspace(Str[R])) R--; in ParseOneDictionaryEntry() 90 if (Str[R] != '"') return false; in ParseOneDictionaryEntry() 93 while (L < R && Str[L] != '"') L++; in ParseOneDictionaryEntry() 95 assert(Str[L] == '\"'); in ParseOneDictionaryEntry() 99 uint8_t V = (uint8_t)Str[Pos]; in ParseOneDictionaryEntry() 103 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { in ParseOneDictionaryEntry() [all …]
|
/third_party/rust/crates/cxx/src/ |
D | cxx.cc | 59 void cxxbridge1$str$new(rust::Str *self) noexcept; 60 void cxxbridge1$str$ref(rust::Str *self, const rust::String *string) noexcept; 61 bool cxxbridge1$str$from(rust::Str *self, const char *ptr, 63 const char *cxxbridge1$str$ptr(const rust::Str *self) noexcept; 64 std::size_t cxxbridge1$str$len(const rust::Str *self) noexcept; 256 return rust::Str(*this) == rust::Str(rhs); in operator ==() 260 return rust::Str(*this) != rust::Str(rhs); in operator !=() 264 return rust::Str(*this) < rust::Str(rhs); in operator <() 268 return rust::Str(*this) <= rust::Str(rhs); in operator <=() 272 return rust::Str(*this) > rust::Str(rhs); in operator >() [all …]
|
/third_party/rust/crates/clap/src/util/ |
D | id.rs | 1 use crate::builder::Str; 9 pub struct Id(Str); 17 Self(Str::from_static_ref(name)) in from_static_ref() 25 pub(crate) fn as_internal_str(&self) -> &Str { in as_internal_str() argument 36 impl From<Str> for Id { 37 fn from(name: Str) -> Self { in from() 42 impl From<&'_ Str> for Id { 43 fn from(name: &'_ Str) -> Self { in from() 74 impl From<Id> for Str { implementation 82 Str::from(name).into() in from() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | StringRef.h | 38 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 41 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 43 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix, 45 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result); 77 static constexpr size_t strLen(const char *Str) { in strLen() argument 79 return std::char_traits<char>::length(Str); in strLen() 82 return __builtin_strlen(Str); in strLen() 84 const char *Begin = Str; in strLen() 85 while (*Str != '\0') in strLen() 86 ++Str; in strLen() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/ |
D | StringView.h | 31 StringView(const char (&Str)[N]) : First(Str), Last(Str + N - 1) {} in StringView() 36 StringView(const char *Str) : First(Str), Last(Str + std::strlen(Str)) {} in StringView() argument 105 bool startsWith(StringView Str) const { in startsWith() argument 106 if (Str.size() > size()) in startsWith() 108 return std::equal(Str.begin(), Str.end(), begin()); in startsWith()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | DiagnosticPrinter.cpp | 37 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(StringRef Str) { in operator <<() argument 38 Stream << Str; in operator <<() 42 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const char *Str) { in operator <<() argument 43 Stream << Str; in operator <<() 48 const std::string &Str) { in operator <<() argument 49 Stream << Str; in operator <<() 93 DiagnosticPrinter &DiagnosticPrinterRawOStream::operator<<(const Twine &Str) { in operator <<() argument 94 Str.print(Stream); in operator <<()
|