/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.access/ |
D | at.pass.cpp | 23 test(S s, typename S::size_type pos) in test() argument 28 assert(s.at(pos) == s[pos]); in test() 29 assert(cs.at(pos) == cs[pos]); in test() 30 assert(pos < cs.size()); in test() 34 assert(pos >= s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/ |
D | substr.pass.cpp | 26 test(S str, unsigned pos) in test() argument 32 S s2(str, pos); in test() 34 assert(pos <= str.size()); in test() 35 unsigned rlen = str.size() - pos; in test() 37 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test() 43 assert(pos > str.size()); in test() 49 test(S str, unsigned pos, unsigned n) in test() argument 55 S s2(str, pos, n); in test() 57 assert(pos <= str.size()); in test() 58 unsigned rlen = std::min<unsigned>(str.size() - pos, n); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
D | nasty_containers.hpp | 98 template <class... Args> iterator emplace(const_iterator pos, Args&&... args) in emplace() argument 99 { return v_.emplace(pos, std::forward<Args>(args)...); } in emplace() 103 iterator insert(const_iterator pos, const value_type& x) { return v_.insert(pos, x); } in insert() argument 105 …iterator insert(const_iterator pos, value_type&& x) { return v_.insert(pos, std::forward<valu… in insert() argument 107 …iterator insert(const_iterator pos, size_type n, const value_type& x) { return v_.insert(pos, n, x… in insert() argument 109 iterator insert(const_iterator pos, InputIterator first, InputIterator last) in insert() argument 110 { return v_.insert(pos, first, last); } in insert() 113 …iterator insert(const_iterator pos, std::initializer_list<value_type> il) { return v_.insert(pos, … in insert() argument 116 iterator erase(const_iterator pos) { return v_.erase(pos); } in erase() argument 219 template <class... Args> iterator emplace(const_iterator pos, Args&&... args) in emplace() argument [all …]
|
/ndk/sources/cxx-stl/stlport/src/ |
D | stdio_streambuf.cpp | 94 FPOS_T pos; in seekoff() local 95 FGETPOS(_M_file, &pos); in seekoff() 99 return pos_type((streamoff)pos.__pos); in seekoff() 101 return pos_type(pos.__fpos_elem[ 0 ]); in seekoff() 103 return pos_type((streamoff)pos._pos); in seekoff() 105 return pos_type(pos); in seekoff() 114 stdio_streambuf_base::seekpos(pos_type pos, ios_base::openmode /* mode */) { in seekpos() argument 119 p.__pos = pos; in seekpos() 132 p.__fpos_elem[0] = pos; in seekpos() 135 p._pos = pos; in seekpos() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_append/ |
D | string_size_size.pass.cpp | 24 test(S s, S str, typename S::size_type pos, typename S::size_type n, S expected) in test() argument 28 s.append(str, pos, n); in test() 30 assert(pos <= str.size()); in test() 35 assert(pos > str.size()); in test() 41 test_npos(S s, S str, typename S::size_type pos, S expected) in test_npos() argument 45 s.append(str, pos); in test_npos() 47 assert(pos <= str.size()); in test_npos() 52 assert(pos > str.size()); in test_npos()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_assign/ |
D | string_size_size.pass.cpp | 24 test(S s, S str, typename S::size_type pos, typename S::size_type n, S expected) in test() argument 28 s.assign(str, pos, n); in test() 30 assert(pos <= str.size()); in test() 35 assert(pos > str.size()); in test() 41 test_npos(S s, S str, typename S::size_type pos, S expected) in test_npos() argument 45 s.assign(str, pos); in test_npos() 47 assert(pos <= str.size()); in test_npos() 52 assert(pos > str.size()); in test_npos()
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
D | badalloc1.cpp | 36 static size_t pos; variable 43 object *p = reinterpret_cast<object *>(&arena[pos]); in malloc() 50 pos += size + sizeof(object); in malloc() 53 if (pos > arena_size) in malloc()
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
D | badalloc1.cpp | 36 static size_t pos; variable 43 object *p = reinterpret_cast<object *>(&arena[pos]); in malloc() 50 pos += size + sizeof(object); in malloc() 53 if (pos > arena_size) in malloc()
|
/ndk/sources/host-tools/ndk-depends/ |
D | ndk-depends.cc | 275 virtual const uint8_t* GetBytesAt(off_t pos, size_t size) = 0; 276 virtual uint16_t GetU16At(off_t pos) = 0; 277 virtual uint32_t GetU32At(off_t pos) = 0; 278 virtual uint64_t GetU64At(off_t pos) = 0; 287 virtual const uint8_t* GetBytesAt(off_t pos, size_t size) { in GetBytesAt() argument 289 fseek(file_, pos, SEEK_SET) == 0 && in GetBytesAt() 306 virtual uint16_t GetU16At(off_t pos) { in GetU16At() argument 307 const uint8_t* buf = GetBytesAt(pos, 2); in GetU16At() 311 virtual uint32_t GetU32At(off_t pos) { in GetU32At() argument 312 const uint8_t* buf = GetBytesAt(pos, 4); in GetU32At() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_substr/ |
D | substr.pass.cpp | 23 test(const S& s, typename S::size_type pos, typename S::size_type n) in test() argument 27 S str = s.substr(pos, n); in test() 29 assert(pos <= s.size()); in test() 30 typename S::size_type rlen = std::min(n, s.size() - pos); in test() 32 assert(S::traits_type::compare(s.data()+pos, str.data(), rlen) == 0); in test() 36 assert(pos > s.size()); in test()
|
/ndk/tests/device/test-stlport/unit/ |
D | mvctor_test.cpp | 187 int pos = 1; in deque_test() local 190 vect_deque.insert(vect_deque.begin() + pos, vect_vect.begin(), vect_vect.end()); in deque_test() 191 bufs.insert(bufs.begin() + pos, &vect_deque[pos].front()); in deque_test() 192 bufs.insert(bufs.begin() + pos + 1, &vect_deque[pos + 1].front()); in deque_test() 193 ++pos; in deque_test() 217 int pos = 2; in deque_test() local 220 vect_deque.insert(vect_deque.begin() + pos, vect_vect.begin(), vect_vect.end()); in deque_test() 221 bufs.insert(bufs.begin() + pos, &vect_deque[pos].front()); in deque_test() 222 bufs.insert(bufs.begin() + pos + 1, &vect_deque[pos + 1].front()); in deque_test() 223 ++pos; in deque_test() [all …]
|
D | rope_test.cpp | 168 int pos = 0; in test_saved_rope_iterators() local 175 int newpos = pos; in test_saved_rope_iterators() 186 ++pos; in test_saved_rope_iterators()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | mvctor_test.cpp | 187 int pos = 1; in deque_test() local 190 vect_deque.insert(vect_deque.begin() + pos, vect_vect.begin(), vect_vect.end()); in deque_test() 191 bufs.insert(bufs.begin() + pos, &vect_deque[pos].front()); in deque_test() 192 bufs.insert(bufs.begin() + pos + 1, &vect_deque[pos + 1].front()); in deque_test() 193 ++pos; in deque_test() 217 int pos = 2; in deque_test() local 220 vect_deque.insert(vect_deque.begin() + pos, vect_vect.begin(), vect_vect.end()); in deque_test() 221 bufs.insert(bufs.begin() + pos, &vect_deque[pos].front()); in deque_test() 222 bufs.insert(bufs.begin() + pos + 1, &vect_deque[pos + 1].front()); in deque_test() 223 ++pos; in deque_test() [all …]
|
D | rope_test.cpp | 168 int pos = 0; in test_saved_rope_iterators() local 175 int newpos = pos; in test_saved_rope_iterators() 186 ++pos; in test_saved_rope_iterators()
|
/ndk/sources/host-tools/ndk-stack/regex/ |
D | regcomp.c | 131 #define INSERT(op, pos) doinsert(p, (sop)(op), HERE()-(pos)+1, pos) argument 132 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) argument 133 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) argument 295 sopno pos; in p_ere_exp() local 304 pos = HERE(); in p_ere_exp() 388 INSERT(OPLUS_, pos); in p_ere_exp() 389 ASTERN(O_PLUS, pos); in p_ere_exp() 390 INSERT(OQUEST_, pos); in p_ere_exp() 391 ASTERN(O_QUEST, pos); in p_ere_exp() 394 INSERT(OPLUS_, pos); in p_ere_exp() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_erase/ |
D | iter.pass.cpp | 21 test(S s, typename S::difference_type pos, S expected) in test() argument 23 typename S::const_iterator p = s.begin() + pos; in test() 27 assert(i - s.begin() == pos); in test()
|
D | size_size.pass.cpp | 23 test(S s, typename S::size_type pos, typename S::size_type n, S expected) in test() argument 29 s.erase(pos, n); in test() 31 assert(pos <= old_size); in test() 36 assert(pos > old_size); in test() 43 test(S s, typename S::size_type pos, S expected) in test() argument 49 s.erase(pos); in test() 51 assert(pos <= old_size); in test() 56 assert(pos > old_size); in test()
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/runtime/cla/ |
D | argv_traverser.ipp | 74 std::size_t pos = 0; 75 while(pos < m_remainder_size ) { 76 argv[argc++] = m_remainder.get() + pos; 78 pos = std::find( m_remainder.get() + pos, m_remainder.get() + m_remainder_size, 80 m_remainder[pos++] = BOOST_RT_PARAM_LITERAL( '\0' );
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_copy/ |
D | copy.pass.cpp | 24 typename S::size_type pos) in test() argument 29 typename S::size_type r = cs.copy(s, n, pos); in test() 30 assert(pos <= cs.size()); in test() 31 typename S::size_type rlen = std::min(n, cs.size() - pos); in test() 34 assert(S::traits_type::eq(cs[pos+r], s[r])); in test() 38 assert(pos > str.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_rfind/ |
D | pointer_size.pass.cpp | 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() argument 24 assert(s.rfind(str, pos) == x); in test() 28 assert(x <= pos && x + n <= s.size()); in test() 39 typename S::size_type pos = s.size(); in test() local 41 assert(x <= pos && x + n <= s.size()); in test()
|
D | char_size.pass.cpp | 21 test(const S& s, typename S::value_type c, typename S::size_type pos, in test() argument 24 assert(s.rfind(c, pos) == x); in test() 26 assert(x <= pos && x + 1 <= s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_find.last.not.of/ |
D | char_size.pass.cpp | 21 test(const S& s, typename S::value_type c, typename S::size_type pos, in test() argument 24 assert(s.find_last_not_of(c, pos) == x); in test() 26 assert(x <= pos && x < s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/ |
D | char_size.pass.cpp | 21 test(const S& s, typename S::value_type c, typename S::size_type pos, in test() argument 24 assert(s.find_first_not_of(c, pos) == x); in test() 26 assert(pos <= x && x < s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_find/ |
D | char_size.pass.cpp | 21 test(const S& s, typename S::value_type c, typename S::size_type pos, in test() argument 24 assert(s.find(c, pos) == x); in test() 26 assert(pos <= x && x + 1 <= s.size()); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string_find.first.of/ |
D | char_size.pass.cpp | 21 test(const S& s, typename S::value_type c, typename S::size_type pos, in test() argument 24 assert(s.find_first_of(c, pos) == x); in test() 26 assert(pos <= x && x < s.size()); in test()
|