Home
last modified time | relevance | path

Searched refs:Piece (Results 1 – 25 of 36) sorted by relevance

12

/external/libchrome/base/strings/
Dstring_piece_unittest.cc198 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 …]
Dstring_split.cc139 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/tensorflow/tensorflow/core/lib/strings/
Dstrcat.h133 StringPiece Piece() const { return piece_; } in Piece() function
193 return internal::CatPieces({a.Piece(), b.Piece(), c.Piece(), d.Piece(), in StrCat()
194 e.Piece(), in StrCat()
195 static_cast<const AlphaNum &>(args).Piece()...}); in StrCat()
232 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend()
233 static_cast<const AlphaNum &>(args).Piece()...}); in StrAppend()
/external/tensorflow/tensorflow/compiler/xla/
Dliteral.h324 class Piece {
376 Piece& child(int64 index) { return children_[index]; } in child()
379 void emplace_back(Piece child_piece) { in emplace_back()
393 [&func](const ShapeIndex& index, const Piece& piece) { in ForEachSubpiece()
422 [&func](const ShapeIndex& index, Piece* piece) { in ForEachMutableSubpiece()
426 const_cast<xla::LiteralBase::Piece*>(this), &index) in ForEachMutableSubpiece()
436 func, const_cast<xla::LiteralBase::Piece*>(this), &index); in ForEachMutableSubpieceWithStatus()
441 bool EqualElements(const Piece& other) const;
448 Status CopyFrom(const Piece& src);
463 Status ForEachHelper(const Fn& func, const Piece& piece, in ForEachHelper()
[all …]
Dliteral.cc110 void Literal::SetPiece(const Shape& shape, Piece* piece, bool allocate_arrays) { in SetPiece()
115 auto child_piece = Piece(); in SetPiece()
149 root_piece_ = new Piece(); in Literal()
165 [&](const ShapeIndex& index, Piece* piece) { in DeallocateBuffers()
190 [&](const ShapeIndex& index, Piece* piece) { in CreateFromShape()
308 [&](const ShapeIndex& index, Piece* piece) { in CreateFromProto()
346 [&](const ShapeIndex& index, Piece* dest_piece) { in DecomposeTuple()
351 Piece& src_piece = piece(src_index); in DecomposeTuple()
387 Status LiteralBase::Piece::CopyFrom(const LiteralBase::Piece& src) { in CopyFrom()
441 [&](const ShapeIndex& index, Piece* piece) { in CopyFrom()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Bitcode/
DBitstreamReader.h223 uint32_t Piece = Read(NumBits); in ReadVBR() local
224 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
225 return Piece; in ReadVBR()
230 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR()
232 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
236 Piece = Read(NumBits); in ReadVBR()
243 uint32_t Piece = Read(NumBits); in ReadVBR64() local
244 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64()
245 return uint64_t(Piece); in ReadVBR64()
250 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64()
[all …]
/external/llvm/include/llvm/Bitcode/
DBitstreamReader.h303 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/include/llvm/Bitcode/
DBitstreamReader.h311 uint32_t Piece = Read(NumBits); in ReadVBR() local
312 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
313 return Piece; in ReadVBR()
318 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR()
320 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
324 Piece = Read(NumBits); in ReadVBR()
331 uint32_t Piece = Read(NumBits); in ReadVBR64() local
332 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64()
333 return uint64_t(Piece); in ReadVBR64()
338 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitstreamReader.h722 uint32_t Piece = Read(NumBits); in ReadVBR() local
723 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
724 return Piece; in ReadVBR()
729 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR()
731 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR()
735 Piece = Read(NumBits); in ReadVBR()
742 uint32_t Piece = Read(NumBits); in ReadVBR64() local
743 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64()
744 return uint64_t(Piece); in ReadVBR64()
749 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64()
[all …]
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc404 struct Piece { struct in tensorflow::data::__anonb9a3e0620111::CSVDatasetOp::Dataset::Iterator
409 Piece(string buffer, size_t start, size_t len) in Piece() argument
416 Status SaveAndFillBuffer(std::vector<Piece>* earlier_pieces, in SaveAndFillBuffer()
424 Piece(std::move(temp_buffer), *start, pos_ - *start)); in SaveAndFillBuffer()
439 std::vector<Piece> earlier_pieces; in ParseQuotedField()
508 const std::vector<Piece>& earlier_pieces, in QuotedFieldToOutput()
523 for (const Piece& p : earlier_pieces) { in QuotedFieldToOutput()
534 for (const Piece& p : earlier_pieces) { in QuotedFieldToOutput()
572 std::vector<Piece> earlier_pieces; in ParseUnquotedField()
757 const std::vector<Piece>& earlier_pieces, in UnquotedFieldToOutput()
[all …]
/external/clang/lib/Sema/
DSemaStmtAsm.cpp68 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/
DBenchmarkResult.cpp67 for (llvm::StringRef Piece : Pieces) { in deserialize() local
70 Value.setOpcode(Context.getInstrOpcode(Piece)); in deserialize()
74 Value.addOperand(deserialize(Context, Piece)); in deserialize()
/external/llvm/lib/CodeGen/AsmPrinter/
DDebugHandlerBase.cpp147 const DIExpression *Piece = I->first->getDebugExpression(); in beginFunction() local
150 return !piecesOverlap(Piece, Pred.first->getDebugExpression()); in beginFunction()
/external/curl/tests/data/
Dtest130827 Piece of the file that is to uploaded as a formpost
/external/pdfium/core/fxcrt/
Dcfx_char.h14 enum class CFX_BreakType { None = 0, Piece, Line, Paragraph, Page }; enumerator
/external/pdfium/xfa/fgas/layout/
Dcfx_rtfbreak.cpp250 if (dwStatus != CFX_BreakType::Piece) in EndBreak()
257 if (dwStatus != CFX_BreakType::Piece) in EndBreak()
270 if (dwStatus == CFX_BreakType::Piece) in EndBreak()
389 tp.m_dwStatus = CFX_BreakType::Piece; in EndBreak_BidiLine()
413 tp.m_dwStatus = CFX_BreakType::Piece; in EndBreak_BidiLine()
Dcfx_breakpiece.cpp10 : m_dwStatus(CFX_BreakType::Piece), in CFX_BreakPiece()
Dcfx_txtbreak.h34 return type == CFX_BreakType::None || type == CFX_BreakType::Piece; in CFX_BreakTypeNoneOrPiece()
Dcfx_txtbreak.cpp313 tp.m_dwStatus = CFX_BreakType::Piece; in EndBreak_BidiLine()
330 tp.m_dwStatus = CFX_BreakType::Piece; in EndBreak_BidiLine()
472 if (dwStatus != CFX_BreakType::Piece) in EndBreak()
479 if (dwStatus != CFX_BreakType::Piece) in EndBreak()
491 if (dwStatus == CFX_BreakType::Piece) in EndBreak()
Dcfx_break.cpp104 tc->m_dwStatus = CFX_BreakType::Piece; in SetBreakStatus()
/external/clang/lib/StaticAnalyzer/Core/
DPathDiagnostic.cpp67 PathDiagnosticPiece *Piece = I->get(); in flattenTo() local
69 switch (Piece->getKind()) { in flattenTo()
71 PathDiagnosticCallPiece *Call = cast<PathDiagnosticCallPiece>(Piece); in flattenTo()
84 PathDiagnosticMacroPiece *Macro = cast<PathDiagnosticMacroPiece>(Piece); in flattenTo()
88 Current.push_back(Piece); in flattenTo()
98 Current.push_back(Piece); in flattenTo()
DBugReporter.cpp515 PathDiagnosticPiece *Piece = V->VisitNode(N, Pred, PDB, *R); in GenerateVisitorsOnlyPathDiagnostic() local
516 delete Piece; in GenerateVisitorsOnlyPathDiagnostic()
1967 PathDiagnosticControlFlowPiece *Piece = in addContextEdges() local
1970 if (!Piece) in addContextEdges()
1973 PathDiagnosticLocation SrcLoc = Piece->getStartLocation(); in addContextEdges()
1989 const Stmt *Dst = getLocStmt(Piece->getEndLocation()); in addContextEdges()
2004 Piece->setStartLocation(DstContext); in addContextEdges()
2026 Piece = new PathDiagnosticControlFlowPiece(SrcLoc, DstContext); in addContextEdges()
2027 I = pieces.insert(I, Piece); in addContextEdges()
3131 if (std::unique_ptr<PathDiagnosticPiece> Piece = in generatePathDiagnostic() local
[all …]
/external/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp504 for (const auto &Piece : cast<MDNode>(Option)->operands()) in emitModuleFlags() local
505 StrOptions.push_back(cast<MDString>(Piece)->getString()); in emitModuleFlags()
1045 for (const auto &Piece : cast<MDNode>(Option)->operands()) { in emitModuleFlags() local
1048 Directive.append(cast<MDString>(Piece)->getString()); in emitModuleFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp695 for (const auto &Piece : cast<MDNode>(Option)->operands()) in emitModuleMetadata() local
696 StrOptions.push_back(cast<MDString>(Piece)->getString()); in emitModuleMetadata()
1241 for (const auto &Piece : cast<MDNode>(Option)->operands()) { in emitModuleMetadata() local
1244 Directive.append(cast<MDString>(Piece)->getString()); in emitModuleMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/X86/
Dsroasplit-1.ll27 ; Read Var and Piece:

12