Home
last modified time | relevance | path

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

1234567891011

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dsubstitute.h180 absl::string_view piece() const { return piece_; } in piece() function
246 const absl::string_view args[] = {a0.piece()}; in SubstituteAndAppend()
254 const absl::string_view args[] = {a0.piece(), a1.piece()}; in SubstituteAndAppend()
263 const absl::string_view args[] = {a0.piece(), a1.piece(), a2.piece()}; in SubstituteAndAppend()
273 const absl::string_view args[] = {a0.piece(), a1.piece(), a2.piece(), in SubstituteAndAppend()
274 a3.piece()}; in SubstituteAndAppend()
285 const absl::string_view args[] = {a0.piece(), a1.piece(), a2.piece(), in SubstituteAndAppend()
286 a3.piece(), a4.piece()}; in SubstituteAndAppend()
298 const absl::string_view args[] = {a0.piece(), a1.piece(), a2.piece(), in SubstituteAndAppend()
299 a3.piece(), a4.piece(), a5.piece()}; in SubstituteAndAppend()
[all …]
Dstr_cat.cc144 for (const absl::string_view& piece : pieces) total_size += piece.size(); in CatPieces() local
149 for (const absl::string_view& piece : pieces) { in CatPieces() local
150 const size_t this_size = piece.size(); in CatPieces()
152 memcpy(out, piece.data(), this_size); in CatPieces()
173 for (const absl::string_view& piece : pieces) { in AppendPieces() local
174 ASSERT_NO_OVERLAP(*dest, piece); in AppendPieces()
175 total_size += piece.size(); in AppendPieces()
181 for (const absl::string_view& piece : pieces) { in AppendPieces() local
182 const size_t this_size = piece.size(); in AppendPieces()
184 memcpy(out, piece.data(), this_size); in AppendPieces()
Dstring_view.cc60 std::ostream& operator<<(std::ostream& o, string_view piece) { in operator <<() argument
65 if (static_cast<size_t>(o.width()) > piece.size()) { in operator <<()
66 size_t pad = o.width() - piece.size(); in operator <<()
74 o.write(piece.data(), piece.size()); in operator <<()
/third_party/skia/third_party/externals/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 …]
/third_party/gn/src/base/strings/
Dstring_split.cc35 size_t FindFirstOf(std::string_view piece, char c, size_t pos) { in FindFirstOf() argument
36 return piece.find(c, pos); in FindFirstOf()
38 size_t FindFirstOf(std::u16string_view piece, char16_t c, size_t pos) { in FindFirstOf() argument
39 return piece.find(c, pos); in FindFirstOf()
41 size_t FindFirstOf(std::string_view piece, in FindFirstOf() argument
44 return piece.find_first_of(one_of, pos); in FindFirstOf()
46 size_t FindFirstOf(std::u16string_view piece, in FindFirstOf() argument
49 return piece.find_first_of(one_of, pos); in FindFirstOf()
77 ViewType piece; in SplitStringT() local
79 piece = str.substr(start); in SplitStringT()
[all …]
/third_party/ninja/src/
Ddepfile_parser.in.cc174 StringPiece piece = StringPiece(filename, len); in Parse() local
176 std::vector<StringPiece>::iterator pos = std::find(ins_.begin(), ins_.end(), piece); in Parse()
184 ins_.push_back(piece); in Parse()
187 if (std::find(outs_.begin(), outs_.end(), piece) == outs_.end()) in Parse()
188 outs_.push_back(piece); in Parse()
Ddepfile_parser.cc338 StringPiece piece = StringPiece(filename, len); in Parse() local
340 std::vector<StringPiece>::iterator pos = std::find(ins_.begin(), ins_.end(), piece); in Parse()
348 ins_.push_back(piece); in Parse()
351 if (std::find(outs_.begin(), outs_.end(), piece) == outs_.end()) in Parse()
352 outs_.push_back(piece); in Parse()
/third_party/node/deps/npm/lib/utils/
Dformat-search-stream.js115 return pieces.map(function (piece) { argument
116 piece = str.slice(p, p + piece.length)
118 str.slice(p + piece.length, p + piece.length + arg.length) +
120 p += piece.length + arg.length
121 return piece + mark
/third_party/curl/lib/
Dhttp_chunks.c110 size_t piece; in Curl_httpchunk_read() local
174 piece = curlx_sotouz((ch->datasize >= length)?length:ch->datasize); in Curl_httpchunk_read()
178 result = Curl_client_write(data, CLIENTWRITE_BODY, datap, piece); in Curl_httpchunk_read()
186 *wrote += piece; in Curl_httpchunk_read()
187 ch->datasize -= piece; /* decrease amount left to expect */ in Curl_httpchunk_read()
188 datap += piece; /* move read pointer forward */ in Curl_httpchunk_read()
189 length -= piece; /* decrease space left in this round */ in Curl_httpchunk_read()
/third_party/protobuf/src/google/protobuf/stubs/
Dbytestream.cc176 StringPiece piece(source_->Peek()); in Peek() local
177 if (piece.size() > limit_) { in Peek()
178 piece.set(piece.data(), limit_); in Peek()
181 return piece; in Peek()
Dstringpiece.cc42 std::ostream& operator<<(std::ostream& o, StringPiece piece) { in operator <<() argument
43 o.write(piece.data(), piece.size()); in operator <<()
/third_party/skia/third_party/externals/angle2/src/common/
Dstring_utils.cpp55 std::string piece; in SplitString() local
58 piece = input.substr(start); in SplitString()
63 piece = input.substr(start, end - start); in SplitString()
69 piece = TrimString(piece, kWhitespaceASCII); in SplitString()
72 if (resultType == SPLIT_WANT_ALL || !piece.empty()) in SplitString()
74 result.push_back(std::move(piece)); in SplitString()
/third_party/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()
/third_party/node/tools/inspector_protocol/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)
/third_party/skia/third_party/externals/jinja2/
Dloaders.py26 for piece in template.split("/"):
28 path.sep in piece
29 or (path.altsep and path.altsep in piece)
30 or piece == path.pardir
33 elif piece and piece != ".":
34 pieces.append(piece)
/third_party/node/deps/v8/third_party/jinja2/
Dloaders.py26 for piece in template.split("/"):
28 path.sep in piece
29 or (path.altsep and path.altsep in piece)
30 or piece == path.pardir
33 elif piece and piece != ".":
34 pieces.append(piece)
/third_party/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()
/third_party/jinja2/
Dloaders.py30 for piece in template.split("/"):
32 os.path.sep in piece
33 or (os.path.altsep and os.path.altsep in piece)
34 or piece == os.path.pardir
37 elif piece and piece != ".":
38 pieces.append(piece)
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Darg.h159 for (string_view piece : value.Chunks()) {
160 if (piece.size() > to_write) {
161 piece.remove_suffix(piece.size() - to_write);
164 to_write -= piece.size();
166 sink->Append(piece);
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/
Dstring_piece.cc16 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() argument
17 o.write(piece.data(), static_cast<std::streamsize>(piece.size())); in operator <<()
/third_party/curl/tests/data/
Dtest59932 this data is slightly larger than the first piece
54 this data is slightly larger than the first piece
/third_party/node/deps/undici/src/lib/cookies/
Dindex.js38 for (const piece of cookie.split(';')) {
39 const [name, ...value] = piece.split('=')
/third_party/vk-gl-cts/external/amber/src/src/
Dtype_parser.cc68 for (const auto& piece : pieces_) in Parse() local
69 type->AsList()->AddMember(piece.type, piece.mode, piece.num_bits); in Parse()
/third_party/icu/icu4c/source/test/intltest/
Dstrtest.cpp509 StringPiece piece(other); in TestStringPieceOther() local
511 assertEquals("size()", piece.size(), static_cast<int32_t>(other.size())); in TestStringPieceOther()
512 assertEquals("data()", piece.data(), other.data()); in TestStringPieceOther()
521 StringPiece piece(view); in TestStringPieceStringView() local
523 assertEquals("size()", piece.size(), view.size()); in TestStringPieceStringView()
524 assertEquals("data()", piece.data(), view.data()); in TestStringPieceStringView()
/third_party/skia/modules/skparagraph/src/
DOneLineShaper.cpp221 auto piece = &this->fParagraph->fRuns.back(); in finish() local
229 piece->fGlyphs[index] = run->fGlyphs[i]; in finish()
231 piece->fClusterIndexes[index] = run->fClusterIndexes[i]; in finish()
232 piece->fPositions[index] = run->fPositions[i] - zero; in finish()
233 piece->fOffsets[index] = run->fOffsets[i]; in finish()
234 piece->addX(index, advanceX); in finish()

1234567891011