/external/chromium/base/ |
D | string_piece.cc | 37 size_type ret = std::min(length_ - pos, n); in copy() 43 if (pos > length_) in find() 46 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 47 s.ptr_, s.ptr_ + s.length_); in find() 49 return xpos + s.length_ <= length_ ? xpos : npos; in find() 53 if (pos >= length_) in find() 56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 57 return result != ptr_ + length_ ? result - ptr_ : npos; in find() 61 if (length_ < s.length_) in rfind() 65 return std::min(length_, pos); in rfind() [all …]
|
D | string_piece.h | 35 size_type length_; variable 41 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 43 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece() 45 : ptr_(str.data()), length_(str.size()) { } in StringPiece() 47 : ptr_(offset), length_(len) { } in StringPiece() 54 size_type size() const { return length_; } in size() 55 size_type length() const { return length_; } in length() 56 bool empty() const { return length_ == 0; } in empty() 60 length_ = 0; in clear() 64 length_ = len; in set() [all …]
|
D | ref_counted_memory.h | 38 : data_(NULL), length_(0) {} in RefCountedStaticMemory() 40 : data_(data), length_(length) {} in RefCountedStaticMemory() 43 virtual size_t size() const { return length_; } in size() 47 size_t length_; variable
|
D | file_util_win.cc | 821 length_(INVALID_FILE_SIZE) { in MemoryMappedFile() 828 length_ = ::GetFileSize(file_, NULL); in MapFileToMemoryInternal() 829 if (length_ == INVALID_FILE_SIZE) in MapFileToMemoryInternal() 835 0, static_cast<DWORD>(length_), NULL); in MapFileToMemoryInternal() 840 ::MapViewOfFile(file_mapping_, FILE_MAP_READ, 0, 0, length_)); in MapFileToMemoryInternal() 854 length_ = INVALID_FILE_SIZE; in CloseHandles()
|
D | file_util_posix.cc | 674 length_(0) { in MemoryMappedFile() 683 length_ = file_stat.st_size; in MapFileToMemoryInternal() 686 mmap(NULL, length_, PROT_READ, MAP_SHARED, file_, 0)); in MapFileToMemoryInternal() 695 munmap(data_, length_); in CloseHandles() 700 length_ = 0; in CloseHandles()
|
/external/chromium/third_party/icu/public/common/unicode/ |
D | stringpiece.h | 55 int32_t length_; variable 62 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 75 : 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() 144 if (n > length_) { in remove_prefix() 145 n = length_; in remove_prefix() [all …]
|
/external/icu4c/common/unicode/ |
D | stringpiece.h | 55 int32_t length_; variable 62 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 75 : 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* data, int32_t len) { ptr_ = data; length_ = len; } in set() 159 if (n > length_) { in remove_prefix() [all …]
|
/external/v8/src/ |
D | list-inl.h | 39 if (length_ < capacity_) { in Add() 40 data_[length_++] = element; in Add() 49 int result_length = length_ + other.length_; in AddAll() 51 for (int i = 0; i < other.length_; i++) { in AddAll() 52 data_[length_ + i] = other.data_[i]; in AddAll() 54 length_ = result_length; in AddAll() 68 ASSERT(length_ >= capacity_); in ResizeAddInternal() 76 data_[length_++] = temp; in ResizeAddInternal() 92 int start = length_; in AddBlock() 101 length_--; in Remove() [all …]
|
D | utils.h | 279 Vector() : start_(NULL), length_(0) {} in Vector() 280 Vector(T* data, int length) : start_(data), length_(length) { in Vector() 291 ASSERT(from < length_); in SubVector() 292 ASSERT(to <= length_); in SubVector() 298 int length() const { return length_; } in length() 301 bool is_empty() const { return length_ == 0; } in is_empty() 308 ASSERT(0 <= index && index < length_); 314 T& last() { return start_[length_ - 1]; } in last() 318 T* result = NewArray<T>(length_); in Clone() 319 for (int i = 0; i < length_; i++) result[i] = start_[i]; in Clone() [all …]
|
D | list.h | 72 ASSERT(i < length_); 76 inline T& last() const { return at(length_ - 1); } in last() 79 INLINE(bool is_empty() const) { return length_ == 0; } in INLINE() 80 INLINE(int length() const) { return length_; } in INLINE() 83 Vector<T> ToVector() { return Vector<T>(data_, length_); } in ToVector() 85 Vector<const T> ToConstVector() { return Vector<const T>(data_, length_); } in ToConstVector() 107 INLINE(T RemoveLast()) { return Remove(length_ - 1); } in INLINE() 130 int length_; variable
|
D | string-stream.cc | 56 ASSERT(length_ < capacity_); in Put() 60 if (length_ == capacity_ - 2) { in Put() 69 length_ = capacity_ - 1; // Indicate fullness of the stream. in Put() 70 buffer_[length_ - 4] = '.'; in Put() 71 buffer_[length_ - 3] = '.'; in Put() 72 buffer_[length_ - 2] = '.'; in Put() 73 buffer_[length_ - 1] = '\n'; in Put() 74 buffer_[length_] = '\0'; in Put() 78 buffer_[length_] = c; in Put() 79 buffer_[length_ + 1] = '\0'; in Put() [all …]
|
D | arguments.h | 49 : length_(length), arguments_(arguments) { } in Arguments() 52 ASSERT(0 <= index && index < length_); 65 int length() const { return length_; } in length() 70 int length_;
|
D | string-stream.h | 117 length_(0), in StringStream() 158 length_ = 0; in Reset() 177 unsigned length_; // does not include terminating 0-character variable 180 bool full() const { return (capacity_ - length_) == 1; } in full() 181 int space() const { return capacity_ - length_; } in space()
|
D | unicode.h | 108 inline Buffer(Data data, unsigned length) : data_(data), length_(length) { } in Buffer() 109 inline Buffer() : data_(0), length_(0) { } in Buffer() 111 unsigned length() { return length_; } in length() 114 unsigned length_; variable
|
D | serialize.h | 114 : data_(array), length_(length), position_(0) { } in SnapshotByteSource() 116 bool HasMore() { return position_ < length_; } in HasMore() 119 ASSERT(position_ < length_); in Get() 128 return position_ == length_; in AtEOF() 135 int length_; variable
|
D | bootstrapper.h | 113 return length_; in length() 117 size_t length_; variable
|
D | codegen.h | 259 explicit FastCloneShallowArrayStub(int length) : length_(length) { in FastCloneShallowArrayStub() 266 int length_; 270 int MinorKey() { return length_; } in MinorKey()
|
/external/icu4c/common/ |
D | stringpiece.cpp | 17 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 22 } else if (pos > x.length_) { in StringPiece() 23 pos = x.length_; in StringPiece() 26 length_ = x.length_ - pos; in StringPiece() 32 } else if (pos > x.length_) { in StringPiece() 33 pos = x.length_; in StringPiece() 37 } else if (len > x.length_ - pos) { in StringPiece() 38 len = x.length_ - pos; in StringPiece() 41 length_ = len; in StringPiece() 47 length_ = static_cast<int32_t>(uprv_strlen(str)); in set() [all …]
|
/external/chromium/third_party/icu/source/common/ |
D | stringpiece.cpp | 16 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { } in StringPiece() 21 } else if (pos > x.length_) { in StringPiece() 22 pos = x.length_; in StringPiece() 25 length_ = x.length_ - pos; in StringPiece() 31 } else if (pos > x.length_) { in StringPiece() 32 pos = x.length_; in StringPiece() 36 } else if (len > x.length_ - pos) { in StringPiece() 37 len = x.length_ - pos; in StringPiece() 40 length_ = len; in StringPiece()
|
/external/protobuf/gtest/include/gtest/internal/ |
D | gtest-string.h | 190 String() : c_str_(NULL), length_(0) {} in String() 196 length_ = 0; in String() 212 String(const String& str) : c_str_(NULL), length_(0) { *this = str; } in String() 270 size_t length() const { return length_; } in length() 286 length_ = 0; 305 length_ = length; in ConstructNonNull() 309 size_t length_; variable
|
/external/chromium/net/flip/ |
D | flip_frame_builder.h | 44 int length() const { return length_; } in length() 51 length_ = 0; in take() 88 if (offset + data_len > length_) in WriteBytesToOffset() 126 const char* end_of_payload() const { return buffer_ + length_; } in end_of_payload() 156 size_t length_; // current length of the buffer variable
|
D | flip_frame_builder.cc | 18 length_(0), in FlipFrameBuilder() 26 length_(data_len), in FlipFrameBuilder() 107 size_t offset = length_; in BeginWrite() 108 size_t needed_size = length_ + length; in BeginWrite() 132 length_ += data_len; in WriteBytes()
|
D | flip_protocol.h | 130 uint32 length_; // 24 bits member 213 return ntohl(frame_->flags_length_.length_) & kLengthMask; in length() 219 frame_->flags_length_.length_ = flags() | length; in set_length()
|
/external/v8/test/cctest/ |
D | test-strings.cc | 55 length_ = string.length(); in Resource() 58 virtual size_t length() const { return length_; } in length() 62 size_t length_; member in Resource 70 length_ = string.length(); in AsciiResource() 73 virtual size_t length() const { return length_; } in length() 77 size_t length_; member in AsciiResource
|
/external/v8/include/ |
D | v8.h | 1024 int length() const { return length_; } in length() 1027 int length_; variable 1047 int length() const { return length_; } in length() 1050 int length_; variable 1069 int length() const { return length_; } in length() 1072 int length_; variable 1479 int length_; variable 3033 if (i < 0 || length_ <= i) return Local<Value>(*Undefined()); 3064 return length_;
|