Home
last modified time | relevance | path

Searched refs:piece (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/external/libchrome/base/strings/
Dstring_split.cc24 OutputType PieceToOutputType(BasicStringPiece<Str> piece) { in PieceToOutputType() argument
25 return piece; in PieceToOutputType()
28 std::string PieceToOutputType<std::string, std::string>(StringPiece piece) { in PieceToOutputType() argument
29 return piece.as_string(); in PieceToOutputType()
32 string16 PieceToOutputType<string16, string16>(StringPiece16 piece) { in PieceToOutputType() argument
33 return piece.as_string(); in PieceToOutputType()
51 size_t FindFirstOf(StringPiece piece, char c, size_t pos) { in FindFirstOf() argument
52 return piece.find(c, pos); in FindFirstOf()
54 size_t FindFirstOf(StringPiece16 piece, char16 c, size_t pos) { in FindFirstOf() argument
55 return piece.find(c, pos); in FindFirstOf()
[all …]
Dstring_piece_unittest.cc711 constexpr StringPiece piece; in TEST() local
712 std::ignore = piece; in TEST()
716 constexpr StringPiece piece("abc"); in TEST() local
717 std::ignore = piece; in TEST()
721 constexpr StringPiece piece("abc", 2); in TEST() local
722 std::ignore = piece; in TEST()
728 constexpr StringPiece piece; in TEST() local
729 static_assert(piece.data() == nullptr, ""); in TEST()
733 constexpr StringPiece piece("abc"); in TEST() local
734 static_assert(piece.data()[0] == 'a', ""); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dliteral.cc110 void Literal::SetPiece(const Shape& shape, Piece* piece, bool allocate_arrays) { in SetPiece() argument
120 piece->emplace_back(std::move(child_piece)); in SetPiece()
129 piece->set_buffer( in SetPiece()
132 piece->set_sparse_indices( in SetPiece()
135 piece->set_buffer(new char[piece->size_bytes()]); in SetPiece()
141 CHECK_EQ(piece->size_bytes(), 0); in SetPiece()
165 [&](const ShapeIndex& index, Piece* piece) { in DeallocateBuffers() argument
166 if (piece->buffer() != nullptr) { in DeallocateBuffers()
167 delete[] piece->buffer(); in DeallocateBuffers()
168 delete piece->sparse_indices(); in DeallocateBuffers()
[all …]
Dliteral.h393 [&func](const ShapeIndex& index, const Piece& piece) { in ForEachSubpiece()
394 func(index, piece); in ForEachSubpiece()
422 [&func](const ShapeIndex& index, Piece* piece) { in ForEachMutableSubpiece()
423 func(index, piece); in ForEachMutableSubpiece()
463 Status ForEachHelper(const Fn& func, const Piece& piece, in ForEachHelper() argument
465 TF_RETURN_IF_ERROR(func(*index, piece)); in ForEachHelper()
466 for (int64 i = 0; i < piece.children_.size(); ++i) { in ForEachHelper()
468 TF_RETURN_IF_ERROR(ForEachHelper(func, piece.children_[i], index)); in ForEachHelper()
474 bool ForEachHelperBool(const Fn& func, const Piece& piece, in ForEachHelperBool() argument
476 if (!func(*index, piece)) { in ForEachHelperBool()
[all …]
Dtext_literal_reader.cc104 for (absl::string_view piece : coordinates) { in ReadAllLines() local
106 if (!absl::SimpleAtoi(piece, &coordinate_value)) { in ReadAllLines()
109 std::string(piece)); in ReadAllLines()
/external/brotli/research/
Dsieve.cc148 SampleIdx piece = 0; in sieve_generate() local
162 if (offsets[piece] == i) { in sieve_generate()
163 piece++; in sieve_generate()
177 if (item.mark != piece) { in sieve_generate()
178 item.mark = piece; in sieve_generate()
187 map.push_back({hashHead[hash], i, 1, piece}); in sieve_generate()
201 sliceLen, map.data(), shortcut.data(), end, end, a, ++piece); in sieve_generate()
205 data, sliceLen, map.data(), shortcut.data(), end, end, a, ++piece); in sieve_generate()
209 size = dryRun(sliceLen, map.data(), shortcut.data(), end, end, b, ++piece); in sieve_generate()
212 data, sliceLen, map.data(), shortcut.data(), end, end, b, ++piece); in sieve_generate()
[all …]
/external/tensorflow/tensorflow/contrib/libsvm/kernels/
Ddecode_libsvm_op.cc52 StringPiece piece; in Compute() local
53 OP_REQUIRES(ctx, str_util::ConsumeNonWhitespace(&line, &piece), in Compute()
59 strings::SafeStringToNumeric<Tlabel>(piece, &label_value), in Compute()
60 errors::InvalidArgument("Label format incorrect: ", piece)); in Compute()
65 while (str_util::ConsumeNonWhitespace(&line, &piece)) { in Compute()
66 size_t p = piece.find(':'); in Compute()
68 errors::InvalidArgument("Invalid feature \"", piece, "\"")); in Compute()
72 ctx, strings::safe_strto64(piece.substr(0, p), &feature_index), in Compute()
73 errors::InvalidArgument("Feature format incorrect: ", piece)); in Compute()
82 strings::SafeStringToNumeric<T>(piece.substr(p + 1), in Compute()
[all …]
/external/dynamic_depth/internal/strings/
Dnumbers.cc462 bool safe_strtof(const string& piece, float* value) { in safe_strtof() argument
464 if (piece.empty()) return false; in safe_strtof()
468 if (piece.size() > sizeof(buf) - 1) { in safe_strtof()
469 bigbuf.reset(new char[piece.size() + 1]); in safe_strtof()
472 memcpy(str, piece.data(), piece.size()); in safe_strtof()
473 str[piece.size()] = '\0'; in safe_strtof()
491 bool safe_strtod(const string& piece, double* value) { in safe_strtod() argument
493 if (piece.empty()) return false; in safe_strtod()
497 if (piece.size() > sizeof(buf) - 1) { in safe_strtod()
498 bigbuf.reset(new char[piece.size() + 1]); in safe_strtod()
[all …]
/external/tensorflow/tensorflow/core/lib/strings/
Dstrcat.cc123 for (const StringPiece piece : pieces) total_size += piece.size(); in CatPieces() local
128 for (const StringPiece piece : pieces) { in CatPieces() local
129 const size_t this_size = piece.size(); in CatPieces()
130 memcpy(out, piece.data(), this_size); in CatPieces()
147 for (const StringPiece piece : pieces) { in AppendPieces() local
148 DCHECK_NO_OVERLAP(*result, piece); in AppendPieces()
149 total_size += piece.size(); in AppendPieces()
155 for (const StringPiece piece : pieces) { in AppendPieces() local
156 const size_t this_size = piece.size(); in AppendPieces()
157 memcpy(out, piece.data(), this_size); in AppendPieces()
/external/curl/lib/
Dhttp_chunks.c118 size_t piece; in Curl_httpchunk_read() local
191 piece = curlx_sotouz((ch->datasize >= length)?length:ch->datasize); in Curl_httpchunk_read()
196 result = Curl_unencode_write(conn, k->writer_stack, datap, piece); in Curl_httpchunk_read()
198 result = Curl_client_write(conn, CLIENTWRITE_BODY, datap, piece); in Curl_httpchunk_read()
204 *wrote += piece; in Curl_httpchunk_read()
205 ch->datasize -= piece; /* decrease amount left to expect */ in Curl_httpchunk_read()
206 datap += piece; /* move read pointer forward */ in Curl_httpchunk_read()
207 length -= piece; /* decrease space left in this round */ in Curl_httpchunk_read()
/external/libchrome/base/
Dbig_endian_unittest.cc22 base::StringPiece piece; in TEST() local
40 EXPECT_TRUE(reader.ReadPiece(&piece, 2)); in TEST()
41 EXPECT_EQ(2u, piece.size()); in TEST()
42 EXPECT_EQ(expected.data(), piece.data()); in TEST()
52 base::StringPiece piece; in TEST() local
62 EXPECT_FALSE(reader.ReadPiece(&piece, 4)); in TEST()
/external/pdfium/xfa/fde/
Dcfde_texteditengine.cpp936 const FDE_TEXTEDITPIECE& piece) { in GetCharRects() argument
937 if (piece.nCount < 1) in GetCharRects()
942 tr.pIdentity = &piece; in GetCharRects()
943 tr.iLength = piece.nCount; in GetCharRects()
947 tr.dwCharStyles = piece.dwCharStyles; in GetCharRects()
948 tr.pRect = &piece.rtPiece; in GetCharRects()
953 const FDE_TEXTEDITPIECE& piece) { in GetDisplayPos() argument
954 if (piece.nCount < 1) in GetDisplayPos()
959 tr.pIdentity = &piece; in GetDisplayPos()
960 tr.iLength = piece.nCount; in GetDisplayPos()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dbytestream.cc174 StringPiece piece(source_->Peek()); in Peek() local
175 if (piece.size() > limit_) { in Peek()
176 piece.set(piece.data(), limit_); in Peek()
179 return piece; in Peek()
/external/cldr/tools/java/org/unicode/cldr/util/
DCaseIterator.java431 String piece = null; in reset() local
433 for (int i = 0; i < source.length(); i += piece.length()) { in reset()
440 piece = UTF16.valueOf(source, i); in reset()
441 caseFold = (String) toCaseFold.get(piece); in reset()
446 piece = source.substring(i, j); in reset()
447 caseFold = (String) toCaseFold.get(piece); in reset()
454 piece = UTF16.valueOf(source, i); in reset()
455 variants[count++] = new String[] { piece }; // single item string in reset()
DTabber.java116 String piece = source.substring(start, limit); in process_field() local
120 final int pieceLength = getMonospaceWidth(piece); in process_field()
135 output.append(piece); in process_field()
140 private int getMonospaceWidth(CharSequence piece) { in getMonospaceWidth() argument
142 for (int cp : CharSequences.codePoints(piece)) { in getMonospaceWidth()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
DCaseIterator.java429 String piece = null; in reset() local
431 for (int i = 0; i < source.length(); i += piece.length()) { in reset()
438 piece = UTF16.valueOf(source, i); in reset()
439 caseFold = (String) toCaseFold.get(piece); in reset()
444 piece = source.substring(i, j); in reset()
445 caseFold = (String) toCaseFold.get(piece); in reset()
452 piece = UTF16.valueOf(source, i); in reset()
453 variants[count++] = new String[] {piece}; // single item string in reset()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_diagnostics.cc125 for (const auto& piece : pieces) { in LogDriverVersionInformation() local
126 if (piece.empty()) { in LogDriverVersionInformation()
129 DIR* dir = opendir(piece.c_str()); in LogDriverVersionInformation()
131 VLOG(1) << "could not open \"" << piece << "\""; in LogDriverVersionInformation()
135 VLOG(1) << piece << " :: " << entity->d_name; in LogDriverVersionInformation()
/external/libchrome/third_party/jinja2/
Dloaders.py27 for piece in template.split('/'):
28 if path.sep in piece \
29 or (path.altsep and path.altsep in piece) or \
30 piece == path.pardir:
32 elif piece and piece != '.':
33 pieces.append(piece)
/external/tensorflow/tensorflow/contrib/android/
Dasset_manager_filesystem.cc29 StringPiece piece(output); in RemoveSuffix() local
30 str_util::ConsumeSuffix(&piece, suffix); in RemoveSuffix()
31 return string(piece); in RemoveSuffix()
232 StringPiece piece(name); in RemoveAssetPrefix() local
233 str_util::ConsumePrefix(&piece, prefix_); in RemoveAssetPrefix()
234 return string(piece); in RemoveAssetPrefix()
/external/pcre/pcrecpp/
Dpcre_stringpiece.cc37 std::ostream& operator<<(std::ostream& o, const pcrecpp::StringPiece& piece) { in operator <<() argument
38 return (o << piece.as_string()); in operator <<()
/external/llvm/test/DebugInfo/X86/
Dpieces-1.ll20 ; 0x0000000000000000 - 0x0000000000000006: rdi, piece 0x00000008, rsi, piece 0x00000004
24 ; 0x0000000000000006 - 0x0000000000000008: rbp-8, piece 0x00000008, rax, piece 0x00000004 )
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DWebPlatformUrlTestData.java103 String piece = parts[i]; in load()
104 if (piece.startsWith("#")) continue; in load()
105 String[] nameAndValue = piece.split(":", 2); in load()
/external/icu/icu4c/source/test/perf/normperf/
Dsimplenormperf.cpp254 UnicodeString piece; in call() local
258 piece.setTo(FALSE, s + start, pieceLength); in call()
259 norm2.normalize(piece, dest, errorCode); in call()
296 icu::StringPiece piece(s + start8, limit8 - start8); in call() local
297 norm2.normalizeUTF8(0, piece, sink, nullptr, errorCode); in call()
/external/tensorflow/tensorflow/contrib/autograph/examples/benchmarks/
Dbenchmark_base.py55 name = '_'.join(str(piece) for piece in name)
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_diagnostics.cc181 for (const auto &piece : pieces) { in LogDriverVersionInformation() local
182 if (piece.empty()) { in LogDriverVersionInformation()
185 DIR *dir = opendir(piece.c_str()); in LogDriverVersionInformation()
187 VLOG(1) << "could not open \"" << piece << "\""; in LogDriverVersionInformation()
191 VLOG(1) << piece << " :: " << entity->d_name; in LogDriverVersionInformation()

12345678910>>...12