Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 21 of 21) sorted by relevance

/ndk/sources/android/support/tests/minitest/
Dminitest.cc33 size_t old_size = size_; in operator +=() local
34 Resize(old_size + other.size_); in operator +=()
35 ::memcpy(str_ + old_size, other.str_, other.size_); in operator +=()
41 size_t old_size = size_; in operator +=() local
42 Resize(old_size + len); in operator +=()
43 ::memcpy(str_ + old_size, str, len); in operator +=()
/ndk/tests/device/test-stlport_shared-exception/jni/
Dbadalloc1.cpp70 size_t old_size = o->size; in realloc() local
72 if (old_size >= size) in realloc()
80 memcpy (r, p, old_size); in realloc()
/ndk/tests/device/test-stlport_static-exception/jni/
Dbadalloc1.cpp70 size_t old_size = o->size; in realloc() local
72 if (old_size >= size) in realloc()
80 memcpy (r, p, old_size); in realloc()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_erase/
Dsize_size.pass.cpp25 typename S::size_type old_size = s.size(); in test() local
31 assert(pos <= old_size); in test()
36 assert(pos > old_size); in test()
45 typename S::size_type old_size = s.size(); in test() local
51 assert(pos <= old_size); in test()
56 assert(pos > old_size); in test()
/ndk/sources/cxx-stl/stlport/src/
Dstrstream.cpp122 ptrdiff_t old_size = epptr() - pbase(); in overflow() local
123 ptrdiff_t new_size = (max)(2 * old_size, ptrdiff_t(1)); in overflow()
127 memcpy(buf, pbase(), old_size); in overflow()
138 pbump((int)old_size); in overflow()
141 setg(buf, buf + old_get_offset, buf + (max)(old_get_offset, old_size)); in overflow()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_insert/
Dsize_pointer.pass.cpp25 typename S::size_type old_size = s.size(); in test() local
31 assert(pos <= old_size); in test()
36 assert(pos > old_size); in test()
Dsize_size_char.pass.cpp26 typename S::size_type old_size = s.size(); in test() local
32 assert(pos <= old_size); in test()
37 assert(pos > old_size); in test()
Dsize_string.pass.cpp25 typename S::size_type old_size = s.size(); in test() local
31 assert(pos <= old_size); in test()
36 assert(pos > old_size); in test()
Dsize_pointer_size.pass.cpp26 typename S::size_type old_size = s.size(); in test() local
32 assert(pos <= old_size); in test()
37 assert(pos > old_size); in test()
Dsize_string_size_size.pass.cpp28 typename S::size_type old_size = s.size(); in test() local
34 assert(pos1 <= old_size && pos2 <= str.size()); in test()
39 assert(pos1 > old_size || pos2 > str.size()); in test()
48 typename S::size_type old_size = s.size(); in test_npos() local
54 assert(pos1 <= old_size && pos2 <= str.size()); in test_npos()
59 assert(pos1 > old_size || pos2 > str.size()); in test_npos()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dstrstream.cpp159 size_t old_size = static_cast<size_t> ((epptr() ? epptr() : egptr()) - eback()); in overflow() local
160 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow()
170 memcpy(buf, eback(), static_cast<size_t>(old_size)); in overflow()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_replace/
Dsize_size_pointer.pass.cpp29 typename S::size_type old_size = s.size(); in test() local
35 assert(pos <= old_size); in test()
37 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
39 assert(s.size() == old_size - xlen + rlen); in test()
43 assert(pos > old_size); in test()
Dsize_size_size_char.pass.cpp28 typename S::size_type old_size = s.size(); in test() local
34 assert(pos <= old_size); in test()
36 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
38 assert(s.size() == old_size - xlen + rlen); in test()
42 assert(pos > old_size); in test()
Dsize_size_string.pass.cpp26 typename S::size_type old_size = s.size(); in test() local
32 assert(pos1 <= old_size); in test()
34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
36 assert(s.size() == old_size - xlen + rlen); in test()
40 assert(pos1 > old_size); in test()
Diter_iter_pointer.pass.cpp27 typename S::size_type old_size = s.size(); in test() local
35 assert(s.size() == old_size - xlen + rlen); in test()
Diter_iter_size_char.pass.cpp28 typename S::size_type old_size = s.size(); in test() local
36 assert(s.size() == old_size - xlen + rlen); in test()
Diter_iter_string.pass.cpp27 typename S::size_type old_size = s.size(); in test() local
35 assert(s.size() == old_size - xlen + rlen); in test()
Dsize_size_pointer_size.pass.cpp30 typename S::size_type old_size = s.size(); in test() local
36 assert(pos <= old_size); in test()
38 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
40 assert(s.size() == old_size - xlen + rlen); in test()
44 assert(pos > old_size); in test()
Diter_iter_pointer_size.pass.cpp28 typename S::size_type old_size = s.size(); in test() local
36 assert(s.size() == old_size - xlen + rlen); in test()
Dsize_size_string_size_size.pass.cpp30 typename S::size_type old_size = s.size(); in test() local
36 assert(pos1 <= old_size && pos2 <= str.size()); in test()
38 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
40 assert(s.size() == old_size - xlen + rlen); in test()
44 assert(pos1 > old_size || pos2 > str.size()); in test()
55 typename S::size_type old_size = s.size(); in test_npos() local
61 assert(pos1 <= old_size && pos2 <= str.size()); in test_npos()
63 typename S::size_type xlen = std::min(n1, old_size - pos1); in test_npos()
65 assert(s.size() == old_size - xlen + rlen); in test_npos()
69 assert(pos1 > old_size || pos2 > str.size()); in test_npos()
Diter_iter_iter_iter.pass.cpp26 typename S::size_type old_size = s.size(); in test() local
34 assert(s.size() == old_size - xlen + rlen); in test()