/external/protobuf/src/google/protobuf/stubs/ |
D | stringpiece.cc | 51 : ptr_(x.ptr_ + pos), length_(x.length_ - pos) { in StringPiece() 53 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 59 : ptr_(x.ptr_ + pos), length_(std::min(len, x.length_ - pos)) { in StringPiece() 61 GOOGLE_DCHECK_LE(pos, x.length_); in StringPiece() 66 target->assign(ptr_, length_); in CopyToString() 70 target->append(ptr_, length_); in AppendToString() 75 ptr_ += x.length_; in Consume() 76 length_ -= x.length_; in Consume() 84 length_ -= x.length_; in ConsumeFromEnd() 93 stringpiece_ssize_type ret = std::min(length_ - pos, n); in copy() [all …]
|
D | stringpiece.h | 181 stringpiece_ssize_type length_; variable 210 StringPiece() : ptr_(NULL), length_(0) {} in StringPiece() 213 : ptr_(str), length_(0) { in StringPiece() 215 length_ = CheckedSsizeTFromSizeT(strlen(str)); in StringPiece() 222 : ptr_(str.data()), length_(0) { in StringPiece() 223 length_ = CheckedSsizeTFromSizeT(str.size()); in StringPiece() 229 : ptr_(str.data()), length_(0) { in StringPiece() 230 length_ = CheckedSsizeTFromSizeT(str.size()); in StringPiece() 235 : ptr_(offset), length_(len) { in StringPiece() 254 stringpiece_ssize_type size() const { return length_; } in size() [all …]
|
/external/pcre/pcrecpp/include/ |
D | pcre_stringpiece.h | 64 int length_; variable 71 : ptr_(NULL), length_(0) { } in StringPiece() 73 : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { } in StringPiece() 76 length_(static_cast<int>(strlen(ptr_))) { } in StringPiece() 78 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece() 80 : ptr_(offset), length_(len) { } in StringPiece() 89 int size() const { return length_; } in size() 90 bool empty() const { return length_ == 0; } in empty() 92 void clear() { ptr_ = NULL; length_ = 0; } in clear() 93 void set(const char* buffer, int len) { ptr_ = buffer; length_ = len; } in set() [all …]
|
/external/grpc-grpc/include/grpcpp/impl/codegen/ |
D | string_ref.h | 51 string_ref() : data_(nullptr), length_(0) {} in string_ref() 53 : data_(other.data_), length_(other.length_) {} in string_ref() 56 length_ = rhs.length_; 60 string_ref(const char* s) : data_(s), length_(strlen(s)) {} in string_ref() 61 string_ref(const char* s, size_t l) : data_(s), length_(l) {} in string_ref() 62 string_ref(const grpc::string& s) : data_(s.data()), length_(s.length()) {} in string_ref() 66 const_iterator end() const { return data_ + length_; } in end() 68 const_iterator cend() const { return data_ + length_; } in cend() 83 size_t size() const { return length_; } in size() 84 size_t length() const { return length_; } in length() [all …]
|
/external/v8/src/ |
D | vector.h | 23 constexpr Vector() : start_(nullptr), length_(0) {} in Vector() 25 Vector(T* data, size_t length) : start_(data), length_(length) { in Vector() 30 explicit constexpr Vector(T (&arr)[N]) : start_(arr), length_(N) {} in Vector() 40 DCHECK_LE(to, length_); in SubVector() 46 DCHECK(length_ <= static_cast<size_t>(std::numeric_limits<int>::max())); in length() 47 return static_cast<int>(length_); in length() 51 constexpr size_t size() const { return length_; } in size() 54 constexpr bool is_empty() const { return length_ == 0; } in is_empty() 61 DCHECK_LT(index, length_); 70 DCHECK_LT(0, length_); in last() [all …]
|
D | string-stream.cc | 27 CHECK_LE(bytes, length_); in allocate() 33 *old = length_; in grow() 40 DCHECK(length_ < capacity_); in Put() 44 if (length_ == capacity_ - 2) { in Put() 53 length_ = capacity_ - 1; // Indicate fullness of the stream. in Put() 54 buffer_[length_ - 4] = '.'; in Put() 55 buffer_[length_ - 3] = '.'; in Put() 56 buffer_[length_ - 2] = '.'; in Put() 57 buffer_[length_ - 1] = '\n'; in Put() 58 buffer_[length_] = '\0'; in Put() [all …]
|
D | string-builder.cc | 107 length_(0), in FixedArrayBuilder() 115 : array_(backing_store), length_(0), has_non_smi_elements_(false) { in FixedArrayBuilder() 123 int required_length = length_ + elements; in HasCapacity() 129 int required_length = length_ + elements; in EnsureCapacity() 137 array_->CopyTo(0, *extended_array, 0, length_); in EnsureCapacity() 144 DCHECK(length_ < capacity()); in Add() 145 array_->set(length_, value); in Add() 146 length_++; in Add() 152 DCHECK(length_ < capacity()); in Add() 153 array_->set(length_, value); in Add() [all …]
|
D | string-stream.h | 46 : buffer_(buffer), length_(length) {} in FixedStringAllocator() 53 unsigned length_; variable 111 length_(0), in allocator_() 139 int length() const { return length_; } in length() 153 length_ = 0; in Reset() 173 unsigned length_; // does not include terminating 0-character variable 176 bool full() const { return (capacity_ - length_) == 1; } in full() 177 int space() const { return capacity_ - length_; } in space()
|
/external/icu/icu4c/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 …]
|
/external/v8/src/zone/ |
D | zone-list-inl.h | 19 if (length_ < capacity_) { in Add() 20 data_[length_++] = element; in Add() 33 int result_length = length_ + other.length(); in AddAll() 37 memcpy(data_ + length_, other.start(), sizeof(*data_) * other.length()); in AddAll() 39 for (int i = 0; i < other.length(); i++) data_[length_ + i] = other.at(i); in AddAll() 41 length_ = result_length; in AddAll() 54 DCHECK(length_ >= capacity_); in ResizeAddInternal() 62 data_[length_++] = temp; in ResizeAddInternal() 67 DCHECK_LE(length_, new_capacity); in Resize() 69 MemCopy(new_data, data_, length_ * sizeof(T)); in Resize() [all …]
|
/external/libchrome/base/strings/ |
D | string_piece.h | 179 constexpr BasicStringPiece() : ptr_(NULL), length_(0) {} in BasicStringPiece() 185 : ptr_(str), length_(!str ? 0 : CharTraits<value_type>::length(str)) {} in BasicStringPiece() 187 : ptr_(str.data()), length_(str.size()) {} in BasicStringPiece() 189 : ptr_(offset), length_(len) {} in BasicStringPiece() 197 length_ = static_cast<size_t>(std::distance(begin, end)); in BasicStringPiece() 201 ptr_ = length_ > 0 ? &*begin : nullptr; in BasicStringPiece() 209 constexpr size_type size() const { return length_; } in size() 210 constexpr size_type length() const { return length_; } in length() 211 bool empty() const { return length_ == 0; } in empty() 215 length_ = 0; in clear() [all …]
|
/external/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 …]
|
/external/webrtc/webrtc/base/ |
D | cryptstring.h | 76 length_ = 0; in FormatCryptString() 85 EnsureStorage(length_ + length + 1); in Append() 86 memcpy(storage_ + length_, data, length); in Append() 87 length_ += length; in Append() 88 storage_[length_] = '\0'; in Append() 93 EnsureStorage(length_ + len + 1); in Append() 94 password->CopyTo(storage_ + length_, true); in Append() 95 length_ += len; in Append() 99 return length_; in GetLength() 125 memcpy(storage_, old_storage, length_); in EnsureStorage() [all …]
|
/external/libaom/libaom/test/ |
D | hash_test.cc | 48 int length_; member in __anon0afdca660111::AV1Crc32cHashTest 58 length_ = bsize_ * bsize_ * sizeof(uint16_t); in SetUp() 59 buffer_ = new uint8_t[length_]; in SetUp() 61 for (int i = 0; i < length_; ++i) { in SetUp() 71 uint32_t crc0 = test_impl(&calc_, buffer_, length_); in RunCheckOutput() 72 uint32_t crc1 = test_impl(&calc_, buffer_, length_); in RunCheckOutput() 73 uint32_t crc2 = ref_impl(&calc_, buffer_, length_); in RunCheckOutput() 78 uint32_t crc3 = test_impl(&calc_, buffer_, length_); in RunCheckOutput() 79 uint32_t crc4 = ref_impl(&calc_, buffer_, length_); in RunCheckOutput() 93 impls[i](&calc_, buffer_, length_); in RunSpeedTest()
|
/external/google-breakpad/src/common/ |
D | memory_range.h | 50 MemoryRange() : data_(NULL), length_(0) {} in MemoryRange() 59 return length_ == 0; in IsEmpty() 65 length_ = 0; in Reset() 72 length_ = data ? length : 0; in Set() 82 return sub_offset < length_ && in Covers() 84 sub_offset + sub_length <= length_; in Covers() 133 size_t length() const { return length_; } in length() 140 size_t length_; variable
|
/external/webrtc/webrtc/common_audio/ |
D | real_fourier_ooura.cc | 39 length_(FftLength(order_)), in RealFourierOoura() 43 work_ip_(new size_t[ComputeWorkIpSize(length_)]()), in RealFourierOoura() 53 std::copy(src, src + length_, dest_float); in Forward() 54 WebRtc_rdft(length_, 1, dest_float, work_ip_.get(), work_w_.get()); in Forward() 78 WebRtc_rdft(length_, -1, dest, work_ip_.get(), work_w_.get()); in Inverse() 81 const float scale = 2.0f / length_; in Inverse() 82 std::for_each(dest, dest + length_, [scale](float& v) { v *= scale; }); in Inverse()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | wpd_node.cc | 29 length_(length), in WPDNode() 40 if (!parent_data || (parent_data_length / 2) != length_) { in Update() 50 data_.get(), parent_data_length, kOddSequence, data_.get(), length_); in Update() 51 if (output_samples != length_) { in Update() 56 for (size_t i = 0; i < length_; ++i) { in Update() 64 if (!new_data || length != length_) { in set_data()
|
/external/perfetto/src/trace_processor/ |
D | trace_blob_view.h | 41 length_(static_cast<uint32_t>(length)) { in TraceBlobView() 55 PERFETTO_DCHECK(offset + length <= offset_ + length_); in slice() 61 (length_ == rhs.length_); 69 PERFETTO_DCHECK(data >= start() && data <= (start() + offset_ + length_)); in offset_of() 73 size_t length() const { return length_; } in length() 138 length_(static_cast<uint32_t>(l)) {} in TraceBlobView() 142 uint32_t length_; // Measured from |offset_|, not from |data()|. variable
|
/external/sfntly/cpp/src/sfntly/port/ |
D | memory_input_stream.cc | 33 length_(0) { in MemoryInputStream() 41 return length_ - position_; in Available() 63 if (position_ >= length_) { in Read() 85 if (position_ >= length_) { in Read() 91 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() 116 skip_count = std::min<size_t>(length_ - position_, (size_t)n); in Skip() 145 length_ = length; in Attach()
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-string.h | 192 String() : c_str_(NULL), length_(0) {} in String() 198 length_ = 0; in String() 214 String(const String& str) : c_str_(NULL), length_(0) { *this = str; } in String() 270 size_t length() const { return length_; } in length() 288 length_ = 0; 307 length_ = a_length; in ConstructNonNull() 311 size_t length_; variable
|
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-string.h | 192 String() : c_str_(NULL), length_(0) {} in String() 198 length_ = 0; in String() 214 String(const String& str) : c_str_(NULL), length_(0) { *this = str; } in String() 270 size_t length() const { return length_; } in length() 288 length_ = 0; 307 length_ = a_length; in ConstructNonNull() 311 size_t length_; variable
|
/external/google-breakpad/src/testing/gtest/include/gtest/internal/ |
D | gtest-string.h | 192 String() : c_str_(NULL), length_(0) {} in String() 198 length_ = 0; in String() 214 String(const String& str) : c_str_(NULL), length_(0) { *this = str; } in String() 270 size_t length() const { return length_; } in length() 288 length_ = 0; 307 length_ = a_length; in ConstructNonNull() 311 size_t length_; variable
|
/external/ImageMagick/Magick++/lib/ |
D | Blob.cpp | 24 Magick::Blob::Blob(const void* data_,const size_t length_) in Blob() argument 25 : _blobRef(new Magick::BlobRef(data_, length_)) in Blob() 113 void Magick::Blob::update(const void* data_,size_t length_) in update() argument 118 _blobRef=new Magick::BlobRef(data_,length_); in update() 121 void Magick::Blob::updateNoCopy(void* data_,size_t length_, in updateNoCopy() argument 129 _blobRef->length=length_; in updateNoCopy()
|
/external/v8/src/snapshot/ |
D | snapshot-source-sink.h | 24 length_(length), in SnapshotByteSource() 28 : data_(payload.start()), length_(payload.length()), position_(0) {} in SnapshotByteSource() 32 bool HasMore() { return position_ < length_; } in HasMore() 35 DCHECK(position_ < length_); in Get() 49 DCHECK(position_ + 3 < length_); in GetInt() 71 int length_; variable
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
D | bitmap_glyph_info.cc | 30 length_(length), in BitmapGlyphInfo() 42 length_(length), in BitmapGlyphInfo() 49 length_ == rhs.length_ && in operator ==() 59 length_ == rhs->length() && in operator ==()
|