/ndk/sources/android/support/tests/minitest/ |
D | minitest.cc | 33 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/ |
D | badalloc1.cpp | 70 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/ |
D | badalloc1.cpp | 70 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/ |
D | size_size.pass.cpp | 25 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/ |
D | strstream.cpp | 122 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/ |
D | size_pointer.pass.cpp | 25 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()
|
D | size_size_char.pass.cpp | 26 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()
|
D | size_string.pass.cpp | 25 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()
|
D | size_pointer_size.pass.cpp | 26 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()
|
D | size_string_size_size.pass.cpp | 28 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/ |
D | strstream.cpp | 159 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/ |
D | size_size_pointer.pass.cpp | 29 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()
|
D | size_size_size_char.pass.cpp | 28 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()
|
D | size_size_string.pass.cpp | 26 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()
|
D | iter_iter_pointer.pass.cpp | 27 typename S::size_type old_size = s.size(); in test() local 35 assert(s.size() == old_size - xlen + rlen); in test()
|
D | iter_iter_size_char.pass.cpp | 28 typename S::size_type old_size = s.size(); in test() local 36 assert(s.size() == old_size - xlen + rlen); in test()
|
D | iter_iter_string.pass.cpp | 27 typename S::size_type old_size = s.size(); in test() local 35 assert(s.size() == old_size - xlen + rlen); in test()
|
D | size_size_pointer_size.pass.cpp | 30 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()
|
D | iter_iter_pointer_size.pass.cpp | 28 typename S::size_type old_size = s.size(); in test() local 36 assert(s.size() == old_size - xlen + rlen); in test()
|
D | size_size_string_size_size.pass.cpp | 30 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()
|
D | iter_iter_iter_iter.pass.cpp | 26 typename S::size_type old_size = s.size(); in test() local 34 assert(s.size() == old_size - xlen + rlen); in test()
|