/external/libchrome/base/strings/ |
D | string_piece_unittest.cc | 198 typedef BasicStringPiece<TypeParam> Piece; in TYPED_TEST() typedef 211 Piece e; in TYPED_TEST() 215 Piece f(temp); in TYPED_TEST() 234 ASSERT_EQ(Piece::npos, TypeParam::npos); in TYPED_TEST() 237 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST() 240 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 241 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST() 242 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 248 Piece g(not_found); in TYPED_TEST() 249 ASSERT_EQ(a.find(g), Piece::npos); in TYPED_TEST() [all …]
|
D | string_split.cc | 139 using Piece = BasicStringPiece<Str>; in SplitStringUsingSubstrT() typedef 140 using size_type = typename Piece::size_type; in SplitStringUsingSubstrT() 143 for (size_type begin_index = 0, end_index = 0; end_index != Piece::npos; in SplitStringUsingSubstrT() 146 Piece term = end_index == Piece::npos in SplitStringUsingSubstrT()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | TextDiagnostics.cpp | 102 for (const auto &Piece : PD->path) { in FlushDiagnosticsImpl() local 103 if (!isa<PathDiagnosticNotePiece>(Piece.get())) in FlushDiagnosticsImpl() 106 reportPiece(NoteID, Piece->getLocation().asLocation(), in FlushDiagnosticsImpl() 107 Piece->getString(), Piece->getRanges(), in FlushDiagnosticsImpl() 108 Piece->getFixits()); in FlushDiagnosticsImpl() 116 for (const auto &Piece : FlatPath) { in FlushDiagnosticsImpl() local 117 if (isa<PathDiagnosticNotePiece>(Piece.get())) in FlushDiagnosticsImpl() 120 reportPiece(NoteID, Piece->getLocation().asLocation(), in FlushDiagnosticsImpl() 121 Piece->getString(), Piece->getRanges(), in FlushDiagnosticsImpl() 122 Piece->getFixits()); in FlushDiagnosticsImpl()
|
D | HTMLDiagnostics.cpp | 509 for (const auto &Piece : path) { in FinalizeHTML() local 510 if (const auto *P = dyn_cast<PathDiagnosticNotePiece>(Piece.get())) { in FinalizeHTML() 656 const PathDiagnosticPopUpPiece &Piece, in HandlePopUpPieceEndTag() argument 663 SourceRange Range(Piece.getLocation().asRange()); in HandlePopUpPieceEndTag() 674 Out << "</div></td><td>" << Piece.getString() << "</td></tr>"; in HandlePopUpPieceEndTag() 716 const auto &Piece = *I->get(); in RewriteFile() local 718 if (isa<PathDiagnosticPopUpPiece>(Piece)) { in RewriteFile() 720 } else if (isa<PathDiagnosticNotePiece>(Piece)) { in RewriteFile() 724 HandlePiece(R, FID, Piece, PopUpRanges, NumNotePieces, TotalNotePieces); in RewriteFile() 727 HandlePiece(R, FID, Piece, PopUpRanges, NumRegularPieces, in RewriteFile() [all …]
|
D | SarifDiagnostics.cpp | 237 static Importance calculateImportance(const PathDiagnosticPiece &Piece) { in calculateImportance() argument 238 switch (Piece.getKind()) { in calculateImportance() 246 return Piece.getTagStr() == "ConditionBRVisitor" ? Importance::Important in calculateImportance() 259 for (const auto &Piece : Pieces) { in createThreadFlow() local 260 const PathDiagnosticLocation &P = Piece->getLocation(); in createThreadFlow() 266 Piece->getString()), in createThreadFlow() 267 calculateImportance(*Piece))); in createThreadFlow()
|
/external/tensorflow/tensorflow/core/platform/ |
D | strcat.h | 137 StringPiece Piece() const { return piece_; } in Piece() function 197 return internal::CatPieces({a.Piece(), b.Piece(), c.Piece(), d.Piece(), in StrCat() 198 e.Piece(), in StrCat() 199 static_cast<const AlphaNum &>(args).Piece()...}); in StrCat() 236 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 237 static_cast<const AlphaNum &>(args).Piece()...}); in StrAppend()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | literal.h | 359 class Piece { 409 Piece& child(int64 index) { return children_[index]; } in child() 412 void emplace_back(Piece child_piece) { in emplace_back() 426 [&func](const ShapeIndex& index, const Piece& piece) { in ForEachSubpiece() 455 [&func](const ShapeIndex& index, Piece* piece) { in ForEachMutableSubpiece() 459 const_cast<xla::LiteralBase::Piece*>(this), &index) in ForEachMutableSubpiece() 469 func, const_cast<xla::LiteralBase::Piece*>(this), &index); in ForEachMutableSubpieceWithStatus() 475 bool EqualElements(const Piece& other) const; 479 bool EqualDynamicSize(const Piece& other) const; 487 Status CopyFrom(const Piece& src, bool only_dynamic_bound); [all …]
|
D | literal.cc | 144 void Literal::SetPiece(const Shape& shape, Piece* piece, bool allocate_arrays) { in SetPiece() 149 auto child_piece = Piece(); in SetPiece() 178 root_piece_ = new Piece(); in Literal() 194 [&](const ShapeIndex& index, Piece* piece) { in DeallocateBuffers() 221 [&](const ShapeIndex& index, Piece* piece) { in CreateFromShape() 369 [&](const ShapeIndex& index, Piece* piece) { in CreateFromProto() 413 [&](const ShapeIndex& index, Piece* dest_piece) { in DecomposeTuple() 418 Piece& src_piece = piece(src_index); in DecomposeTuple() 452 int32 LiteralBase::Piece::GetDynamicSize(int64 dim_index) const { in GetDynamicSize() 462 void LiteralBase::Piece::SetDynamicSize(int64 dim_index, int32 size) { in SetDynamicSize() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/libtextclassifier/abseil-cpp/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/abseil-cpp/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/webrtc/third_party/abseil-cpp/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/angle/third_party/abseil-cpp/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/openscreen/third_party/abseil/src/absl/strings/ |
D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/external/llvm-project/clang/utils/TableGen/ |
D | ClangDiagnosticsEmitter.cpp | 507 struct Piece { struct 509 Piece(PieceKind Kind) : ClassKind(Kind) {} in Piece() function 510 Piece(Piece const &O) = delete; 511 Piece &operator=(Piece const &) = delete; 512 virtual ~Piece() {} in ~Piece() argument 515 static bool classof(const Piece *) { return true; } in classof() argument 521 struct MultiPiece : Piece { 522 MultiPiece() : Piece(MultiPieceClass) {} in MultiPiece() 523 MultiPiece(std::vector<Piece *> Pieces) in MultiPiece() 524 : Piece(MultiPieceClass), Pieces(std::move(Pieces)) {} in MultiPiece() [all …]
|
/external/llvm/include/llvm/Bitcode/ |
D | BitstreamReader.h | 303 uint32_t Piece = Read(NumBits); in ReadVBR() local 304 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 305 return Piece; in ReadVBR() 310 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR() 312 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 316 Piece = Read(NumBits); in ReadVBR() 323 uint32_t Piece = Read(NumBits); in ReadVBR64() local 324 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64() 325 return uint64_t(Piece); in ReadVBR64() 330 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/ |
D | BitstreamReader.h | 236 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR() 246 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 253 Piece = MaybeRead.get(); in ReadVBR() 263 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 265 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64() 266 return uint64_t(Piece); in ReadVBR64() 271 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64() [all …]
|
/external/llvm-project/llvm/include/llvm/Bitstream/ |
D | BitstreamReader.h | 237 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 239 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 240 return Piece; in ReadVBR() 245 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR() 247 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 254 Piece = MaybeRead.get(); in ReadVBR() 264 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 266 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64() 267 return uint64_t(Piece); in ReadVBR64() 272 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64() [all …]
|
/external/toolchain-utils/cros_utils/ |
D | tiny_render.py | 85 Piece = t.Any # pylint: disable=invalid-name variable 88 def _render_text_pieces(piece: Piece, indent_level: int, argument 127 def render_text_pieces(piece: Piece) -> str: argument 134 def _render_html_pieces(piece: Piece, into: t.List[str]) -> None: argument 177 def render_html_pieces(piece: Piece) -> str: argument
|
/external/toolchain-utils/llvm_tools/ |
D | nightly_revert_checker_test.py | 26 def prettify_sha(sha: str) -> tiny_render.Piece: 29 def get_sha_description(sha: str) -> tiny_render.Piece: 67 def prettify_sha(sha: str) -> tiny_render.Piece: 70 def get_sha_description(sha: str) -> tiny_render.Piece:
|
D | nightly_revert_checker.py | 106 ('body', tiny_render.Piece), 112 prettify_sha: t.Callable[[str], tiny_render.Piece], argument 113 get_sha_description: t.Callable[[str], tiny_render.Piece], 250 def prettify_sha(sha: str) -> tiny_render.Piece: 261 def get_sha_description(sha: str) -> tiny_render.Piece:
|
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClBitstreamReader.h | 719 uint32_t Piece = Read(NumBits); in ReadVBR() local 720 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR() 721 return Piece; in ReadVBR() 726 Result |= (Piece & ((1U << (NumBits - 1)) - 1)) << NextBit; in ReadVBR() 728 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR() 732 Piece = Read(NumBits); in ReadVBR() 739 uint32_t Piece = Read(NumBits); in ReadVBR64() local 740 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR64() 741 return uint64_t(Piece); in ReadVBR64() 746 Result |= uint64_t(Piece & ((1U << (NumBits - 1)) - 1)) << NextBit; in ReadVBR64() [all …]
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | csv_dataset_op.cc | 465 struct Piece { struct in tensorflow::data::experimental::__anon7230ae400111::CSVDatasetOp::Dataset::Iterator 470 Piece(string buffer, size_t start, size_t len) in Piece() argument 477 Status SaveAndFillBuffer(std::vector<Piece>* earlier_pieces, in SaveAndFillBuffer() 485 Piece(std::move(temp_buffer), *start, pos_ - *start)); in SaveAndFillBuffer() 500 std::vector<Piece> earlier_pieces; in ParseQuotedField() 569 const std::vector<Piece>& earlier_pieces, in QuotedFieldToOutput() 585 for (const Piece& p : earlier_pieces) { in QuotedFieldToOutput() 596 for (const Piece& p : earlier_pieces) { in QuotedFieldToOutput() 634 std::vector<Piece> earlier_pieces; in ParseUnquotedField() 819 const std::vector<Piece>& earlier_pieces, in UnquotedFieldToOutput() [all …]
|
/external/clang/lib/Sema/ |
D | SemaStmtAsm.cpp | 68 const GCCAsmStmt::AsmStringPiece &Piece = AsmStrPieces[p]; in isOperandMentioned() local 69 if (!Piece.isOperand()) continue; in isOperandMentioned() 73 if (Piece.getOperandNo() == OpNo) in isOperandMentioned() 363 GCCAsmStmt::AsmStringPiece &Piece = Pieces[i]; in ActOnGCCAsmStmt() local 364 if (!Piece.isOperand()) continue; in ActOnGCCAsmStmt() 367 unsigned ConstraintIdx = Piece.getOperandNo(); in ActOnGCCAsmStmt() 394 Literal->getString(), Piece.getModifier(), Size, in ActOnGCCAsmStmt() 400 auto B = Diag(Piece.getRange().getBegin(), in ActOnGCCAsmStmt() 403 SuggestedModifier = "%" + SuggestedModifier + Piece.getString(); in ActOnGCCAsmStmt() 404 B.AddFixItHint(FixItHint::CreateReplacement(Piece.getRange(), in ActOnGCCAsmStmt()
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | BugReporter.h | 512 void addCallStackHint(PathDiagnosticPieceRef Piece, in addCallStackHint() argument 514 StackHints[Piece] = std::move(StackHint); in addCallStackHint() 517 bool hasCallStackHint(PathDiagnosticPieceRef Piece) const { in hasCallStackHint() argument 518 return StackHints.count(Piece) > 0; in hasCallStackHint() 524 getCallStackMessage(PathDiagnosticPieceRef Piece, in getCallStackMessage() argument 526 auto I = StackHints.find(Piece); in getCallStackMessage()
|