HomeSort by relevance Sort by last modified time
    Searched refs:length_ (Results 1 - 25 of 69) sorted by null

1 2 3

  /external/icu4c/common/unicode/
stringpiece.h 55 int32_t length_; member in class:StringPiece
62 StringPiece() : ptr_(NULL), length_(0) { }
75 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
117 int32_t size() const { return length_; }
123 int32_t length() const { return length_; }
129 UBool empty() const { return length_ == 0; }
135 void clear() { ptr_ = NULL; length_ = 0; }
143 void set(const char* data, int32_t len) { ptr_ = data; length_ = len; }
159 if (n > length_) {
    [all...]
  /external/icu4c/common/
stringpiece.cpp 17 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
22 } else if (pos > x.length_) {
23 pos = x.length_;
26 length_ = x.length_ - pos;
32 } else if (pos > x.length_) {
33 pos = x.length_;
37 } else if (len > x.length_ - pos) {
38 len = x.length_ - pos;
41 length_ = len
    [all...]
  /external/chromium/base/
string_piece.cc 32 size_type ret = std::min(length_ - pos, n);
38 if (pos > length_)
41 const char* result = std::search(ptr_ + pos, ptr_ + length_,
42 s.ptr_, s.ptr_ + s.length_);
44 return xpos + s.length_ <= length_ ? xpos : npos;
48 if (pos >= length_)
51 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
52 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos;
56 if (length_ < s.length_
    [all...]
string_piece.h 49 StringPiece() : ptr_(NULL), length_(0) { }
51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { }
53 : ptr_(str.data()), length_(str.size()) { }
55 : ptr_(offset), length_(len) { }
62 size_type size() const { return length_; }
63 size_type length() const { return length_; }
64 bool empty() const { return length_ == 0; }
68 length_ = 0;
72 length_ = len;
76 length_ = str ? strlen(str) : 0
164 size_type length_; member in class:base::StringPiece
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
buffer.h 57 size_t length() const { return length_; }
67 return (length_ == buf.length() &&
68 memcmp(data_.get(), buf.data(), length_) == 0);
81 size_t old_length = length_;
82 SetLength(length_ + length);
87 length_ = length;
92 memcpy(data.get(), data_.get(), length_);
101 buf->length_ = length_;
113 size_t length_; member in class:talk_base::Buffer
    [all...]
cryptstring.h 96 length_ = 0;
105 EnsureStorage(length_ + length + 1);
106 memcpy(storage_ + length_, data, length);
107 length_ += length;
108 storage_[length_] = '\0';
113 EnsureStorage(length_ + len + 1);
114 password->CopyTo(storage_ + length_, true);
115 length_ += len;
119 return length_;
145 memcpy(storage_, old_storage, length_);
168 size_t length_; member in class:talk_base::FormatCryptString
    [all...]
  /external/v8/src/
list-inl.h 39 if (length_ < capacity_) {
40 data_[length_++] = element;
49 int result_length = length_ + other.length_;
51 for (int i = 0; i < other.length_; i++) {
52 data_[length_ + i] = other.data_[i];
54 length_ = result_length;
68 ASSERT(length_ >= capacity_);
76 data_[length_++] = temp;
92 int start = length_;
    [all...]
list.h 72 ASSERT(i < length_);
76 inline T& last() const { return at(length_ - 1); }
79 INLINE(bool is_empty() const) { return length_ == 0; }
80 INLINE(int length() const) { return length_; }
83 Vector<T> ToVector() { return Vector<T>(data_, length_); }
85 Vector<const T> ToConstVector() { return Vector<const T>(data_, length_); }
114 INLINE(T RemoveLast()) { return Remove(length_ - 1); }
124 INLINE(void RewindBy(int count)) { Rewind(length_ - count); }
143 int length_;
arguments.h 37 // (length_, arguments_) are "overlayed" with the parameters
49 : length_(length), arguments_(arguments) { }
52 ASSERT(0 <= index && index < length_);
65 int length() const { return length_; }
69 int length_; member in class:v8::internal::BASE_EMBEDDED
string-stream.h 117 length_(0),
146 int length() const { return length_; }
160 length_ = 0;
179 unsigned length_; // does not include terminating 0-character member in class:v8::internal::StringStream
182 bool full() const { return (capacity_ - length_) == 1; }
183 int space() const { return capacity_ - length_; }
safepoint-table.h 120 (length_ * (kPcAndDeoptimizationIndexSize + entry_size_)); }
121 unsigned length() const { return length_; }
125 ASSERT(index < length_);
130 ASSERT(index < length_);
166 unsigned length_;
string-stream.cc 53 ASSERT(length_ < capacity_);
54 // Since the trailing '\0' is not accounted for in length_ fullness is
55 // indicated by a difference of 1 between length_ and capacity_. Thus when
57 if (length_ == capacity_ - 2) {
66 length_ = capacity_ - 1; // Indicate fullness of the stream.
67 buffer_[length_ - 4] = '.';
68 buffer_[length_ - 3] = '.';
69 buffer_[length_ - 2] = '.';
70 buffer_[length_ - 1] = '\n';
71 buffer_[length_] = '\0'
77 length_++; member in namespace:v8::internal
    [all...]
global-handles.h 55 group->length_ = length;
66 size_t length_; member in class:v8::internal::ObjectGroup
90 group->length_ = length;
100 size_t length_; member in class:v8::internal::ImplicitRefGroup
utils.h 301 Vector() : start_(NULL), length_(0) {}
302 Vector(T* data, int length) : start_(data), length_(length) {
313 ASSERT(to <= length_);
320 int length() const { return length_; }
323 bool is_empty() const { return length_ == 0; }
330 ASSERT(0 <= index && index < length_);
338 T& last() { return start_[length_ - 1]; }
342 T* result = NewArray<T>(length_);
343 for (int i = 0; i < length_; i++) result[i] = start_[i];
344 return Vector<T>(result, length_);
    [all...]
data-flow.h 91 : length_(length),
99 : length_(other.length()),
100 data_length_(SizeFor(length_)),
192 int length() const { return length_; }
199 int length_; member in class:v8::internal::BitVector
  /external/chromium/base/memory/
ref_counted_memory.h 41 : data_(NULL), length_(0) {}
43 : data_(data), length_(length) {}
51 size_t length_; member in class:RefCountedStaticMemory
ref_counted_memory.cc 18 return length_;
  /external/chromium/testing/gtest/include/gtest/internal/
gtest-string.h 192 String() : c_str_(NULL), length_(0) {}
198 length_ = 0;
214 String(const String& str) : c_str_(NULL), length_(0) { *this = str; }
270 size_t length() const { return length_; }
288 length_ = 0;
307 length_ = a_length;
311 size_t length_; member in class:testing::internal::String
  /external/llvm/utils/unittest/googletest/include/gtest/internal/
gtest-string.h 192 String() : c_str_(NULL), length_(0) {}
198 length_ = 0;
214 String(const String& str) : c_str_(NULL), length_(0) { *this = str; }
270 size_t length() const { return length_; }
288 length_ = 0;
307 length_ = a_length;
311 size_t length_; member in class:testing::internal::String
  /external/protobuf/gtest/include/gtest/internal/
gtest-string.h 190 String() : c_str_(NULL), length_(0) {}
196 length_ = 0;
212 String(const String& str) : c_str_(NULL), length_(0) { *this = str; }
270 size_t length() const { return length_; }
286 length_ = 0;
305 length_ = length;
309 size_t length_; member in class:testing::internal::String
  /external/chromium/net/spdy/
spdy_frame_builder.h 41 int length() const { return length_; }
48 length_ = 0;
85 if (offset + data_len > length_)
123 const char* end_of_payload() const { return buffer_ + length_; }
153 size_t length_; // current length of the buffer member in class:spdy::SpdyFrameBuilder
spdy_frame_builder.cc 18 length_(0),
26 length_(data_len),
126 length_ += data_len;
150 size_t needed_size = length_ + length;
158 return buffer_ + length_;
  /hardware/ril/mock-ril/src/cpp/
node_buffer.cpp 71 if ((size_t)end > parent->length_) { \
141 length_ = end - start;
142 assert(start + length_ <= parent->length());
154 size_t length() const { return length_; }
158 size_t length_;
213 args.This()->Set(length_symbol, Integer::New(buffer->length_));
244 length_ = length;
261 length_ = end - start;
262 assert(length_ <= parent->length_);
    [all...]
  /external/chromium/third_party/libjingle/source/talk/p2p/base/
stun.h 124 uint16 length() const { return length_; }
149 uint16 length_; member in class:cricket::StunMessage
164 uint16 length() const { return length_; }
188 void SetLength(uint16 length) { length_ = length; }
192 uint16 length_; member in class:cricket::StunAttribute
  /bootable/recovery/minzip/
SysUtil.c 47 static int getFileStartAndLength(int fd, off_t *start_, size_t *length_)
53 assert(length_ != NULL);
71 *length_ = length;

Completed in 289 milliseconds

1 2 3