/external/icu/icu4c/source/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* xdata, int32_t len) { ptr_ = xdata; length_ = len; } 159 if (n > length_) { [all...] |
/external/regex-re2/util/ |
stringpiece.cc | 33 target->assign(ptr_, length_); 37 int ret = min(length_ - pos, n); 43 if (length_ < 0 || pos > static_cast<size_type>(length_)) 46 const char* result = std::search(ptr_ + pos, ptr_ + length_, 47 s.ptr_, s.ptr_ + s.length_); 49 return xpos + s.length_ <= length_ ? xpos : npos; 53 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) { [all...] |
/external/regex-re2/re2/ |
stringpiece.h | 32 int length_; member in class:re2::StringPiece 38 StringPiece() : ptr_(NULL), length_(0) { } 40 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } 42 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } 50 int size() const { return length_; } 51 int length() const { return length_; } 52 bool empty() const { return length_ == 0; } 54 void clear() { ptr_ = NULL; length_ = 0; } 55 void set(const char* data, int len) { ptr_ = data; length_ = len; [all...] |
/art/runtime/base/ |
stringpiece.cc | 28 CHECK_LT(i, length_); 34 target->assign(ptr_, length_); 38 size_type ret = std::min(length_ - pos, n); 44 if (length_ == 0 || pos > static_cast<size_type>(length_)) { 47 const char* result = std::search(ptr_ + pos, ptr_ + length_, s.ptr_, s.ptr_ + s.length_); 49 return xpos + s.length_ <= length_ ? xpos : npos; 53 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)) [all...] |
stringpiece.h | 50 StringPiece() : ptr_(nullptr), length_(0) { } 52 : ptr_(str), length_((str == nullptr) ? 0 : strlen(str)) { } 54 : ptr_(str.data()), length_(str.size()) { } 55 StringPiece(const char* offset, size_t len) : 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; 77 length_ = strlen(str) 155 size_type length_; member in class:art::StringPiece [all...] |
/external/icu/icu4c/source/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/marisa-trie/lib/marisa/ |
marisa-string.h | 10 String() : ptr_(NULL), length_(0) {} 11 explicit String(const char *str) : ptr_(str), length_(0) { 12 while (str[length_] != '\0') { 13 ++length_; 17 : ptr_(ptr), length_(length) {} 18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {} 21 MARISA_DEBUG_IF(pos + length > length_, MARISA_PARAM_ERROR); 27 length_ = str.length_; 45 std::size_t length_; member in class:marisa::String 117 std::size_t length_; member in class:marisa::RString [all...] |
cell.h | 10 Cell() : louds_pos_(0), node_(0), key_id_(0), length_(0) {} 22 length_ = length; 35 return length_; 42 std::size_t length_; member in class:marisa::Cell
|
query.h | 12 Query(const char *ptr, std::size_t length) : ptr_(ptr), length_(length) {} 13 Query(const Query &query) : ptr_(query.ptr_), length_(query.length_) {} 16 str->insert(0, ptr_, length_); 20 MARISA_DEBUG_IF(i >= length_, MARISA_PARAM_ERROR); 24 MARISA_DEBUG_IF(i > length_, MARISA_PARAM_ERROR); 25 return i == length_; 30 std::size_t length_; member in class:marisa::Query
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
marisa-string.h | 10 String() : ptr_(NULL), length_(0) {} 11 explicit String(const char *str) : ptr_(str), length_(0) { 12 while (str[length_] != '\0') { 13 ++length_; 17 : ptr_(ptr), length_(length) {} 18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {} 21 MARISA_ALPHA_DEBUG_IF(pos + length > length_, MARISA_ALPHA_PARAM_ERROR); 27 length_ = str.length_; 45 std::size_t length_; member in class:marisa_alpha::String 117 std::size_t length_; member in class:marisa_alpha::RString [all...] |
cell.h | 10 Cell() : louds_pos_(0), node_(0), key_id_(0), length_(0) {} 22 length_ = length; 35 return length_; 42 std::size_t length_; member in class:marisa_alpha::Cell
|
query.h | 12 Query(const char *ptr, std::size_t length) : ptr_(ptr), length_(length) {} 13 Query(const Query &query) : ptr_(query.ptr_), length_(query.length_) {} 16 str->insert(0, ptr_, length_); 20 MARISA_ALPHA_DEBUG_IF(i >= length_, MARISA_ALPHA_PARAM_ERROR); 24 MARISA_ALPHA_DEBUG_IF(i > length_, MARISA_ALPHA_PARAM_ERROR); 25 return i == length_; 30 std::size_t length_; member in class:marisa_alpha::Query
|
/external/google-breakpad/src/common/ |
memory_range.h | 50 MemoryRange() : data_(NULL), length_(0) {} 58 // Set() guarantees that |length_| is zero if |data_| is NULL. 59 return length_ == 0; 65 length_ = 0; 71 // Always set |length_| to zero if |data_| is NULL. 72 length_ = data ? length : 0; 79 // 1. sub_offset is within [ 0 .. length_ - 1 ] 81 // [ sub_offset .. length_ ] 82 return sub_offset < length_ && 84 sub_offset + sub_length <= length_; 140 size_t length_; member in class:google_breakpad::MemoryRange [all...] |
/external/v8/src/ |
vector.h | 22 Vector() : start_(NULL), length_(0) {} 23 Vector(T* data, int length) : start_(data), length_(length) { 34 SLOW_DCHECK(to <= length_); 41 int length() const { return length_; } 44 bool is_empty() const { return length_ == 0; } 51 DCHECK(0 <= index && index < length_); 59 T& last() { return start_[length_ - 1]; } 63 T* result = NewArray<T>(length_); 64 for (int i = 0; i < length_; i++) result[i] = start_[i]; 65 return Vector<T>(result, length_); [all...] |
snapshot-source-sink.h | 25 bool HasMore() { return position_ < length_; } 28 DCHECK(position_ < length_); 59 int length_; 88 DummySnapshotSink() : length_(0) {} 90 virtual void Put(byte b, const char* description) { length_++; } 91 virtual int Position() { return length_; } 94 int length_;
|
list-inl.h | 18 if (length_ < capacity_) { 19 data_[length_++] = element; 34 int result_length = length_ + other.length(); 37 data_[length_ + i] = other.at(i); 39 length_ = result_length; 53 DCHECK(length_ >= capacity_); 61 data_[length_++] = temp; 67 DCHECK_LE(length_, new_capacity); 69 MemCopy(new_data, data_, length_ * sizeof(T)); 78 int start = length_; [all...] |
snapshot-source-sink.cc | 18 : data_(array), length_(length), position_(0) { 26 DCHECK(position_ < length_); // Require at least one byte left. 68 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 69 for (int x = position_; x < length_; x++) { 80 if (position_ + size < length_) { 85 Advance(length_ - position_); // proceed until end.
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
bitmap_glyph_info.cc | 30 length_(length), 42 length_(length), 49 length_ == rhs.length_ && 59 length_ == rhs->length() &&
|
/external/sfntly/cpp/src/sfntly/table/ |
header.cc | 28 length_(0), 38 length_(length), 48 length_(length),
|
/external/google-breakpad/src/common/dwarf/ |
dwarf2reader_test_common.h | 76 D32(length_); 79 D64(length_); 90 length_ = Size() - post_length_offset_; 103 Label length_; member in class:TestCompilationUnit
|
/external/google-breakpad/src/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/mesa3d/src/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/protobuf/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/sfntly/cpp/src/sfntly/port/ |
memory_input_stream.cc | 31 length_(0) { 39 return length_ - position_; 61 if (position_ >= length_) { 83 if (position_ >= length_) { 89 size_t read_count = std::min<size_t>(length_ - position_, length); 114 skip_count = std::min<size_t>(length_ - position_, (size_t)n); 143 length_ = length;
|