/third_party/protobuf/src/google/protobuf/stubs/ |
D | stringpiece.cc | 53 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece() 55 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 61 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece() 63 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 68 target->assign(ptr_, length_); in CopyToString() 72 target->append(ptr_, length_); in AppendToString() 77 ptr_ += x.length_; in Consume() 78 length_ -= x.length_; in Consume() 86 length_ -= x.length_; in ConsumeFromEnd() 95 stringpiece_ssize_type ret = std::min(length_ - pos, n); in copy() [all …]
|
D | stringpiece.h | 182 stringpiece_ssize_type length_; variable 211 StringPiece() : ptr_(nullptr), length_(0) {} in StringPiece() 214 : ptr_(str), length_(0) { in StringPiece() 216 length_ = CheckedSsizeTFromSizeT(strlen(str)); in StringPiece() 223 : ptr_(str.data()), length_(0) { in StringPiece() 224 length_ = CheckedSsizeTFromSizeT(str.size()); in StringPiece() 228 : ptr_(offset), length_(len) { in StringPiece() 247 stringpiece_ssize_type size() const { return length_; } in size() 248 stringpiece_ssize_type length() const { return length_; } in length() 249 bool empty() const { return length_ == 0; } in empty() [all …]
|
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/ |
D | string_piece.cc | 38 size_type ret = std::min(length_ - pos, n); in copy() 44 if (pos > length_) in find() 47 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 48 s.ptr_, s.ptr_ + s.length_); in find() 50 return xpos + s.length_ <= length_ ? xpos : npos; in find() 54 if (pos >= length_) in find() 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find() 62 if (length_ < s.length_) in rfind() 66 return std::min(length_, pos); in rfind() [all …]
|
D | string_piece.h | 49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece() 53 : ptr_(str.data()), length_(str.size()) { } in StringPiece() 55 : ptr_(offset), length_(len) { } in StringPiece() 62 size_type size() const { return length_; } in size() 63 size_type length() const { return length_; } in length() 64 bool empty() const { return length_ == 0; } in empty() 68 length_ = 0; in clear() 72 length_ = len; in set() 76 length_ = str ? strlen(str) : 0; in set() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/ |
D | stringpiece.h | 57 int32_t length_; variable 64 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 76 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 117 int32_t size() const { return length_; } in size() 123 int32_t length() const { return length_; } in length() 129 UBool empty() const { return length_ == 0; } in empty() 135 void clear() { ptr_ = NULL; length_ = 0; } in clear() 143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } in set() 159 if (n > length_) { in remove_prefix() [all …]
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | stringpiece.h | 63 int32_t length_; variable 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 107 length_(static_cast<int32_t>(str.size())) { } in StringPiece() 142 length_(static_cast<int32_t>(str.size())) {} in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 195 int32_t size() const { return length_; } in size() 201 int32_t length() const { return length_; } in length() 207 UBool empty() const { return length_ == 0; } in empty() [all …]
|
/third_party/icu/icu4c/source/common/unicode/ |
D | stringpiece.h | 63 int32_t length_; variable 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 107 length_(static_cast<int32_t>(str.size())) { } in StringPiece() 142 length_(static_cast<int32_t>(str.size())) {} in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 195 int32_t size() const { return length_; } in size() 201 int32_t length() const { return length_; } in length() 207 UBool empty() const { return length_ == 0; } in empty() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | stringpiece.h | 63 int32_t length_; variable 70 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() 92 StringPiece(std::nullptr_t p) : ptr_(p), length_(0) {} in StringPiece() 99 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } in StringPiece() 107 length_(static_cast<int32_t>(str.size())) { } in StringPiece() 142 length_(static_cast<int32_t>(str.size())) {} in StringPiece() 150 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } in StringPiece() 195 int32_t size() const { return length_; } in size() 201 int32_t length() const { return length_; } in length() 207 UBool empty() const { return length_ == 0; } in empty() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view.cc | 83 if (empty() || pos > length_) { in find() 88 strings_internal::memmatch(ptr_ + pos, length_ - pos, s.ptr_, s.length_); in find() 93 if (empty() || pos >= length_) { in find() 97 static_cast<const char*>(memchr(ptr_ + pos, c, length_ - pos)); in find() 103 if (length_ < s.length_) return npos; in rfind() 104 if (s.empty()) return std::min(length_, pos); in rfind() 105 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind() 106 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 115 for (size_type i = std::min(pos, length_ - 1);; --i) { in rfind() 130 if (s.length_ == 1) return find_first_of(s.ptr_[0], pos); in find_first_of() [all …]
|
D | string_view.h | 184 constexpr string_view() noexcept : ptr_(nullptr), length_(0) {} in string_view() 203 : ptr_(str), length_(str ? StrlenInternal(str) : 0) {} in string_view() 207 : ptr_(data), length_(CheckLengthInternal(len)) {} in string_view() 226 constexpr const_iterator end() const noexcept { return ptr_ + length_; } in end() 276 constexpr size_type size() const noexcept { return length_; } in size() 291 constexpr bool empty() const noexcept { return length_ == 0; } in empty() 344 ABSL_HARDENING_ASSERT(n <= length_); in remove_prefix() 346 length_ -= n; in remove_prefix() 354 ABSL_HARDENING_ASSERT(n <= length_); in remove_suffix() 355 length_ -= n; in remove_suffix() [all …]
|
/third_party/openh264/test/utils/ |
D | BufferedData.h | 12 BufferedData() : data_ (NULL), capacity_ (0), length_ (0) {} in BufferedData() 19 if (!EnsureCapacity (length_ + 1)) { in PushBack() 22 data_[length_++] = c; in PushBack() 27 if (!EnsureCapacity (length_ + len)) { in PushBack() 30 memcpy (data_ + length_, data, len); in PushBack() 31 length_ += len; in PushBack() 36 len = std::min (length_, len); in PopFront() 38 memmove (data_, data_ + len, length_ - len); in PopFront() 39 if (-1 == SetLength (length_ - len)) in PopFront() 45 length_ = 0; in Clear() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | stringpiece.cpp | 19 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 24 } else if (pos > x.length_) { in StringPiece() 25 pos = x.length_; in StringPiece() 28 length_ = x.length_ - pos; in StringPiece() 34 } else if (pos > x.length_) { in StringPiece() 35 pos = x.length_; in StringPiece() 39 } else if (len > x.length_ - pos) { in StringPiece() 40 len = x.length_ - pos; in StringPiece() 43 length_ = len; in StringPiece() 49 length_ = static_cast<int32_t>(uprv_strlen(str)); in set() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | stringpiece.cpp | 19 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 24 } else if (pos > x.length_) { in StringPiece() 25 pos = x.length_; in StringPiece() 28 length_ = x.length_ - pos; in StringPiece() 34 } else if (pos > x.length_) { in StringPiece() 35 pos = x.length_; in StringPiece() 39 } else if (len > x.length_ - pos) { in StringPiece() 40 len = x.length_ - pos; in StringPiece() 43 length_ = len; in StringPiece() 49 length_ = static_cast<int32_t>(uprv_strlen(str)); in set() [all …]
|
/third_party/icu/icu4c/source/common/ |
D | stringpiece.cpp | 19 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 24 } else if (pos > x.length_) { in StringPiece() 25 pos = x.length_; in StringPiece() 28 length_ = x.length_ - pos; in StringPiece() 34 } else if (pos > x.length_) { in StringPiece() 35 pos = x.length_; in StringPiece() 39 } else if (len > x.length_ - pos) { in StringPiece() 40 len = x.length_ - pos; in StringPiece() 43 length_ = len; in StringPiece() 49 length_ = static_cast<int32_t>(uprv_strlen(str)); in set() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | stringpiece.cpp | 19 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 24 } else if (pos > x.length_) { in StringPiece() 25 pos = x.length_; in StringPiece() 28 length_ = x.length_ - pos; in StringPiece() 34 } else if (pos > x.length_) { in StringPiece() 35 pos = x.length_; in StringPiece() 39 } else if (len > x.length_ - pos) { in StringPiece() 40 len = x.length_ - pos; in StringPiece() 43 length_ = len; in StringPiece() 49 length_ = static_cast<int32_t>(uprv_strlen(str)); in set() [all …]
|
/third_party/node/src/ |
D | node_union_bytes.h | 18 : data_(data), length_(length) {} in NonOwningExternalOneByteResource() 24 size_t length() const override { return length_; } in length() 33 size_t length_; variable 40 : data_(data), length_(length) {} in NonOwningExternalTwoByteResource() 44 size_t length() const override { return length_; } in length() 53 size_t length_; variable 62 : one_bytes_(nullptr), two_bytes_(data), length_(length) {} in UnionBytes() 64 : one_bytes_(data), two_bytes_(nullptr), length_(length) {} in UnionBytes() 83 new NonOwningExternalOneByteResource(one_bytes_data(), length_); in ToStringChecked() 87 new NonOwningExternalTwoByteResource(two_bytes_data(), length_); in ToStringChecked() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 33 length_(0) { in MemoryInputStream() 41 return length_; in Length() 45 return length_ - position_; in Available() 67 if (position_ >= length_) { in Read() 89 if (position_ >= length_) { in Read() 95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() 120 skip_count = std::min<size_t>(length_ - position_, (size_t)n); in Skip() 149 length_ = length; in Attach()
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 33 length_(0) { in MemoryInputStream() 41 return length_; in Length() 45 return length_ - position_; in Available() 67 if (position_ >= length_) { in Read() 89 if (position_ >= length_) { in Read() 95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() 120 skip_count = std::min<size_t>(length_ - position_, (size_t)n); in Skip() 149 length_ = length; in Attach()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-array.hh | 46 …hb_array_t (Type *array_, unsigned int length_) : arrayZ (array_), length (length_), backwards_len… in hb_array_t() 47 template <unsigned int length_> 48 hb_array_t (Type (&array_)[length_]) : arrayZ (array_), length (length_), backwards_length (0) {} in hb_array_t() 215 template <typename T, unsigned int length_> inline hb_array_t<T> 216 hb_array (T (&array_)[length_]) in hb_array() argument 237 hb_sorted_array_t (Type *array_, unsigned int length_) : hb_array_t<Type> (array_, length_) {} in hb_sorted_array_t() 238 template <unsigned int length_> 239 hb_sorted_array_t (Type (&array_)[length_]) : hb_array_t<Type> (array_) {} in hb_sorted_array_t() 318 template <typename T, unsigned int length_> inline hb_sorted_array_t<T> 319 hb_sorted_array (T (&array_)[length_]) in hb_sorted_array() argument
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-array.hh | 60 constexpr hb_array_t (Type *array_, unsigned int length_) : arrayZ (array_), length (length_) {} in hb_array_t() 61 template <unsigned int length_> 62 constexpr hb_array_t (Type (&array_)[length_]) : hb_array_t (array_, length_) {} in hb_array_t() 297 template <typename T, unsigned int length_> inline hb_array_t<T> 298 hb_array (T (&array_)[length_]) in hb_array() argument 318 …nstexpr hb_sorted_array_t (Type *array_, unsigned int length_) : hb_array_t<Type> (array_, length_… in hb_sorted_array_t() 319 template <unsigned int length_> 320 constexpr hb_sorted_array_t (Type (&array_)[length_]) : hb_array_t<Type> (array_) {} in hb_sorted_array_t() 401 template <typename T, unsigned int length_> inline hb_sorted_array_t<T> 402 hb_sorted_array (T (&array_)[length_]) in hb_sorted_array() argument
|
/third_party/harfbuzz/src/ |
D | hb-array.hh | 46 …hb_array_t (Type *array_, unsigned int length_) : arrayZ (array_), length (length_), backwards_len… in hb_array_t() 47 template <unsigned int length_> 48 hb_array_t (Type (&array_)[length_]) : arrayZ (array_), length (length_), backwards_length (0) {} in hb_array_t() 265 template <typename T, unsigned int length_> inline hb_array_t<T> 266 hb_array (T (&array_)[length_]) in hb_array() argument 287 hb_sorted_array_t (Type *array_, unsigned int length_) : hb_array_t<Type> (array_, length_) {} in hb_sorted_array_t() 288 template <unsigned int length_> 289 hb_sorted_array_t (Type (&array_)[length_]) : hb_array_t<Type> (array_) {} in hb_sorted_array_t() 370 template <typename T, unsigned int length_> inline hb_sorted_array_t<T> 371 hb_sorted_array (T (&array_)[length_]) in hb_sorted_array() argument
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | double-conversion-utils.h | 218 Vector() : start_(NULL), length_(0) {} in Vector() 219 Vector(T* data, int len) : start_(data), length_(len) { in Vector() 226 DOUBLE_CONVERSION_ASSERT(to <= length_); in SubVector() 233 int length() const { return length_; } in length() 236 bool is_empty() const { return length_ == 0; } in is_empty() 243 DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_); 249 T& last() { return start_[length_ - 1]; } in last() 253 --length_; in pop_back() 258 int length_; variable
|
/third_party/icu/icu4c/source/i18n/ |
D | double-conversion-utils.h | 218 Vector() : start_(NULL), length_(0) {} in Vector() 219 Vector(T* data, int len) : start_(data), length_(len) { in Vector() 226 DOUBLE_CONVERSION_ASSERT(to <= length_); in SubVector() 233 int length() const { return length_; } in length() 236 bool is_empty() const { return length_ == 0; } in is_empty() 243 DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_); 249 T& last() { return start_[length_ - 1]; } in last() 253 --length_; in pop_back() 258 int length_; variable
|
/third_party/node/deps/icu-small/source/i18n/ |
D | double-conversion-utils.h | 219 Vector() : start_(NULL), length_(0) {} in Vector() 220 Vector(T* data, int len) : start_(data), length_(len) { in Vector() 227 DOUBLE_CONVERSION_ASSERT(to <= length_); in SubVector() 234 int length() const { return length_; } in length() 237 bool is_empty() const { return length_ == 0; } in is_empty() 244 DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_); 250 T& last() { return start_[length_ - 1]; } in last() 254 --length_; in pop_back() 259 int length_; variable
|
/third_party/icu/vendor/double-conversion/upstream/double-conversion/ |
D | utils.h | 205 Vector() : start_(NULL), length_(0) {} in Vector() 206 Vector(T* data, int len) : start_(data), length_(len) { in Vector() 213 DOUBLE_CONVERSION_ASSERT(to <= length_); in SubVector() 220 int length() const { return length_; } in length() 223 bool is_empty() const { return length_ == 0; } in is_empty() 230 DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_); 236 T& last() { return start_[length_ - 1]; } in last() 240 --length_; in pop_back() 245 int length_; variable
|