Lines Matching refs:d_first
363 OutputIterator d_first, in copy() argument
366 std::min(static_cast<size_t>(std::distance(d_first, d_last)), srclen); in copy()
367 return std::make_pair(std::copy_n(src, nwrite, d_first), d_last); in copy()
374 copy(const char *src, OutputIterator d_first, OutputIterator d_last) { in copy() argument
375 return copy(src, strlen(src), d_first, d_last); in copy()
382 copy(const StringRef &src, OutputIterator d_first, OutputIterator d_last) { in copy() argument
383 return copy(src.c_str(), src.size(), d_first, d_last); in copy()
390 copy_l(const char (&src)[N], OutputIterator d_first, OutputIterator d_last) { in copy_l() argument
391 return copy(src, N - 1, d_first, d_last); in copy_l()
397 std::pair<OutputIterator, OutputIterator> copy(char c, OutputIterator d_first, in copy() argument
399 if (d_first == d_last) { in copy()
402 *d_first++ = c; in copy()
403 return std::make_pair(d_first, d_last); in copy()
414 copy_hex_low(const uint8_t *src, size_t srclen, OutputIterator d_first, in copy_hex_low() argument
416 auto nwrite = std::min(static_cast<size_t>(std::distance(d_first, d_last)), in copy_hex_low()
420 *d_first++ = LOWER_XDIGITS[src[i] >> 4]; in copy_hex_low()
421 *d_first++ = LOWER_XDIGITS[src[i] & 0xf]; in copy_hex_low()
423 return std::make_pair(d_first, d_last); in copy_hex_low()
429 std::pair<OutputIterator, OutputIterator> copy(T n, OutputIterator d_first, in copy() argument
431 if (static_cast<size_t>(std::distance(d_first, d_last)) < in copy()
435 return std::make_pair(util::utos(d_first, n), d_last); in copy()
501 copy_escape(const char *src, size_t srclen, OutputIterator d_first, in copy_escape() argument
504 for (auto p = src; p != src + srclen && d_first != d_last; ++p) { in copy_escape()
511 std::min(std::distance(d_first, d_last), std::distance(safe_first, p)); in copy_escape()
512 d_first = std::copy_n(safe_first, n, d_first); in copy_escape()
513 if (std::distance(d_first, d_last) < 4) { in copy_escape()
514 return std::make_pair(d_first, d_last); in copy_escape()
516 *d_first++ = '\\'; in copy_escape()
517 *d_first++ = 'x'; in copy_escape()
518 *d_first++ = LOWER_XDIGITS[c >> 4]; in copy_escape()
519 *d_first++ = LOWER_XDIGITS[c & 0xf]; in copy_escape()
523 auto n = std::min(std::distance(d_first, d_last), in copy_escape()
525 return std::make_pair(std::copy_n(safe_first, n, d_first), d_last); in copy_escape()
532 OutputIterator d_first, in copy_escape() argument
534 return copy_escape(src.c_str(), src.size(), d_first, d_last); in copy_escape()