Home
last modified time | relevance | path

Searched refs:size_type (Results 1 – 15 of 15) sorted by relevance

/art/runtime/base/
Dstringpiece.cc27 char StringPiece::operator[](size_type i) const { in operator []()
37 StringPiece::size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { in copy()
38 size_type ret = std::min(length_ - pos, n); in copy()
43 StringPiece::size_type StringPiece::find(const StringPiece& s, size_type pos) const { in find()
44 if (length_ == 0 || pos > static_cast<size_type>(length_)) { in find()
48 const size_type xpos = result - ptr_; in find()
61 StringPiece::size_type StringPiece::find(char c, size_type pos) const { in find()
69 StringPiece::size_type StringPiece::rfind(const StringPiece& s, size_type pos) const { in rfind()
79 StringPiece::size_type StringPiece::rfind(char c, size_type pos) const { in rfind()
81 for (int i = std::min(pos, static_cast<size_type>(length_ - 1)); in rfind()
[all …]
Dstringpiece.h39 typedef size_t size_type; typedef
41 static constexpr size_type npos = size_type(-1);
62 size_type size() const { return length_; } in size()
63 size_type length() const { return length_; } in length()
70 void set(const char* data_in, size_type len) { in set()
82 void set(const void* data_in, size_type len) { in set()
88 char operator[](size_type i) const {
92 char operator[](size_type i) const;
95 void remove_prefix(size_type n) { in remove_prefix()
100 void remove_suffix(size_type n) { in remove_suffix()
[all …]
Darray_ref.h53 typedef size_t size_type; typedef
127 size_type size() const { return size_; } in size()
132 reference operator[](size_type n) {
137 const_reference operator[](size_type n) const {
165 ArrayRef SubArray(size_type pos) { in SubArray()
168 ArrayRef<const T> SubArray(size_type pos) const { in SubArray()
171 ArrayRef SubArray(size_type pos, size_type length) { in SubArray()
176 ArrayRef<const T> SubArray(size_type pos, size_type length) const { in SubArray()
Dtransform_array_ref.h63 using size_type = typename ArrayRef<BaseType>::size_type; variable
106 size_type size() const { return base().size(); } in size()
111 reference operator[](size_type n) { return GetFunction()(base()[n]); }
112 const_reference operator[](size_type n) const { return GetFunction()(base()[n]); }
120 TransformArrayRef SubArray(size_type pos) { in SubArray()
123 TransformArrayRef SubArray(size_type pos) const { in SubArray()
126 TransformArrayRef SubArray(size_type pos, size_type length) const { in SubArray()
Ddchecked_vector.h54 using typename Base::size_type;
62 explicit dchecked_vector(size_type n, const allocator_type& alloc = allocator_type())
64 dchecked_vector(size_type n,
122 reference operator[](size_type n) {
126 const_reference operator[](size_type n) const {
154 iterator insert(const_iterator position, size_type n, const value_type& value) { in insert()
Dscoped_arena_containers.h117 typedef size_t size_type; typedef
143 size_type max_size() const { in max_size()
144 return static_cast<size_type>(-1) / sizeof(T); in max_size()
150 pointer allocate(size_type n,
157 void deallocate(pointer p, size_type n) { in deallocate()
Darena_containers.h169 typedef size_t size_type; typedef
190 size_type max_size() const { in max_size()
191 return static_cast<size_type>(-1) / sizeof(T); in max_size()
197 pointer allocate(size_type n,
202 void deallocate(pointer p, size_type n) { in deallocate()
Dallocator.h110 typedef typename std::allocator<T>::size_type size_type; typedef
134 pointer allocate(size_type n, const_pointer hint ATTRIBUTE_UNUSED = 0) {
141 void deallocate(PT p, size_type n) { in deallocate()
Dhash_set.h127 using size_type = size_t; variable
/art/runtime/openjdkjvmti/
Djvmti_allocator.h83 typedef size_t size_type; typedef
101 size_type max_size() const { in max_size()
102 return static_cast<size_type>(-1) / sizeof(T); in max_size()
108 pointer allocate(size_type n, JvmtiAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
121 void deallocate(pointer p, size_type n ATTRIBUTE_UNUSED) { in deallocate()
/art/compiler/utils/
Dswap_space.h152 typedef size_t size_type; typedef
170 size_type max_size() const { in max_size()
171 return static_cast<size_type>(-1) / sizeof(T); in max_size()
177 pointer allocate(size_type n, SwapAllocator<void>::pointer hint ATTRIBUTE_UNUSED = nullptr) {
187 void deallocate(pointer p, size_type n) { in deallocate()
/art/runtime/
Dsafe_map.h43 typedef typename ::std::map<K, V, Comparator, Allocator>::size_type size_type; typedef
68 size_type size() const { return map_.size(); } in size()
73 size_type erase(const K& k) { return map_.erase(k); } in erase()
81 size_type count(const K& k) const { return map_.count(k); } in count()
Dutils.cc895 std::string::size_type colon = s.find(c); in ParseStringAfterChar()
/art/compiler/optimizing/
Doptimizing_unit_test.h116 std::string::size_type pos = result.find(p.first); in Patch()
/art/cmdline/
Dcmdline_types.h99 std::string::size_type equals_pos = jdwp_option.find('=');
154 std::string::size_type colon = value.find(':');