/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_replace/ |
D | iter_iter_iter_iter.pass.cpp | 37 const char* str = "12345678901234567890"; variable 42 test(S(""), 0, 0, str, str+0, S("")); in test0() 43 test(S(""), 0, 0, str, str+0, S("")); in test0() 44 test(S(""), 0, 0, str, str+1, S("1")); in test0() 45 test(S(""), 0, 0, str, str+2, S("12")); in test0() 46 test(S(""), 0, 0, str, str+4, S("1234")); in test0() 47 test(S(""), 0, 0, str, str+5, S("12345")); in test0() 48 test(S(""), 0, 0, str, str+0, S("")); in test0() 49 test(S(""), 0, 0, str, str+1, S("1")); in test0() 50 test(S(""), 0, 0, str, str+5, S("12345")); in test0() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/ |
D | get_long.pass.cpp | 50 const char str[] = "123"; in main() local 55 f.get(input_iterator<const char*>(str), in main() 56 input_iterator<const char*>(str+sizeof(str)), in main() 58 assert(iter.base() == str+3); in main() 63 const char str[] = "-123"; in main() local 68 f.get(input_iterator<const char*>(str), in main() 69 input_iterator<const char*>(str+sizeof(str)), in main() 71 assert(iter.base() == str+4); in main() 76 const char str[] = "123"; in main() local 80 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_long_double.pass.cpp | 41 const char str[] = "123"; in main() local 46 f.get(input_iterator<const char*>(str), in main() 47 input_iterator<const char*>(str+sizeof(str)), in main() 49 assert(iter.base() == str+sizeof(str)-1); in main() 54 const char str[] = "-123"; in main() local 57 f.get(input_iterator<const char*>(str), in main() 58 input_iterator<const char*>(str+sizeof(str)), in main() 60 assert(iter.base() == str+sizeof(str)-1); in main() 65 const char str[] = "123.5"; in main() local 68 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_double.pass.cpp | 56 const char str[] = "123"; in main() local 61 f.get(input_iterator<const char*>(str), in main() 62 input_iterator<const char*>(str+sizeof(str)), in main() 64 assert(iter.base() == str+sizeof(str)-1); in main() 69 const char str[] = "-123"; in main() local 72 f.get(input_iterator<const char*>(str), in main() 73 input_iterator<const char*>(str+sizeof(str)), in main() 75 assert(iter.base() == str+sizeof(str)-1); in main() 80 const char str[] = "123.5"; in main() local 83 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_float.pass.cpp | 41 const char str[] = "123"; in main() local 46 f.get(input_iterator<const char*>(str), in main() 47 input_iterator<const char*>(str+sizeof(str)), in main() 49 assert(iter.base() == str+sizeof(str)-1); in main() 54 const char str[] = "-123"; in main() local 57 f.get(input_iterator<const char*>(str), in main() 58 input_iterator<const char*>(str+sizeof(str)), in main() 60 assert(iter.base() == str+sizeof(str)-1); in main() 65 const char str[] = "123.5"; in main() local 68 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_bool.pass.cpp | 60 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 72 const char str[] = "0"; in main() local 76 f.get(input_iterator<const char*>(str), in main() 77 input_iterator<const char*>(str+sizeof(str)), in main() 79 assert(iter.base() == str+sizeof(str)-1); in main() 84 const char str[] = "12"; in main() local 88 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_long_long.pass.cpp | 50 const char str[] = "0"; in main() local 53 f.get(input_iterator<const char*>(str), in main() 54 input_iterator<const char*>(str+sizeof(str)), in main() 56 assert(iter.base() == str+sizeof(str)-1); in main() 61 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 72 const char str[] = "-1"; in main() local 75 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_unsigned_int.pass.cpp | 50 const char str[] = "0"; in main() local 53 f.get(input_iterator<const char*>(str), in main() 54 input_iterator<const char*>(str+sizeof(str)), in main() 56 assert(iter.base() == str+sizeof(str)-1); in main() 61 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 73 const char str[] = "0xFFFFFFFF"; in main() local 76 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_unsigned_long_long.pass.cpp | 50 const char str[] = "0"; in main() local 53 f.get(input_iterator<const char*>(str), in main() 54 input_iterator<const char*>(str+sizeof(str)), in main() 56 assert(iter.base() == str+sizeof(str)-1); in main() 61 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 73 const char str[] = "0xFFFFFFFFFFFFFFFF"; in main() local 76 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_unsigned_short.pass.cpp | 50 const char str[] = "0"; in main() local 53 f.get(input_iterator<const char*>(str), in main() 54 input_iterator<const char*>(str+sizeof(str)), in main() 56 assert(iter.base() == str+sizeof(str)-1); in main() 61 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 73 const char str[] = "0xFFFF"; in main() local 76 f.get(input_iterator<const char*>(str), in main() [all …]
|
D | get_unsigned_long.pass.cpp | 50 const char str[] = "0"; in main() local 53 f.get(input_iterator<const char*>(str), in main() 54 input_iterator<const char*>(str+sizeof(str)), in main() 56 assert(iter.base() == str+sizeof(str)-1); in main() 61 const char str[] = "1"; in main() local 64 f.get(input_iterator<const char*>(str), in main() 65 input_iterator<const char*>(str+sizeof(str)), in main() 67 assert(iter.base() == str+sizeof(str)-1); in main() 73 const char str[] = "0xFFFFFFFF"; in main() local 76 f.get(input_iterator<const char*>(str), in main() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | num_put_get_test.cpp | 70 string tmp = ostr.str(); in reset_stream() 71 ostr.str(""); in reset_stream() 82 stringstream str; in check_get_float() local 84 str << "1E+" << limits::max_exponent10; in check_get_float() 86 str >> in_val_d; in check_get_float() 87 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 88 CPPUNIT_ASSERT(str.eof()); in check_get_float() 93 stringstream str; in check_get_float() local 95 str << "-1E+" << limits::max_exponent10; in check_get_float() 97 str >> in_val_d; in check_get_float() [all …]
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | num_put_get_test.cpp | 70 string tmp = ostr.str(); in reset_stream() 71 ostr.str(""); in reset_stream() 82 stringstream str; in check_get_float() local 84 str << "1E+" << limits::max_exponent10; in check_get_float() 86 str >> in_val_d; in check_get_float() 87 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 88 CPPUNIT_ASSERT(str.eof()); in check_get_float() 93 stringstream str; in check_get_float() local 95 str << "-1E+" << limits::max_exponent10; in check_get_float() 97 str >> in_val_d; in check_get_float() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_long_double_en_US.pass.cpp | 62 char str[100]; in main() local 63 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 65 std::string ex(str, iter.base()); in main() 70 char str[100]; in main() local 71 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 73 std::string ex(str, iter.base()); in main() 78 char str[100]; in main() local 79 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 81 std::string ex(str, iter.base()); in main() 86 char str[100]; in main() local [all …]
|
D | put_long_double_fr_FR.pass.cpp | 64 char str[100]; in main() local 65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 67 std::string ex(str, iter.base()); in main() 72 char str[100]; in main() local 73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 75 std::string ex(str, iter.base()); in main() 80 char str[100]; in main() local 81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 83 std::string ex(str, iter.base()); in main() 88 char str[100]; in main() local [all …]
|
D | put_long_double_zh_CN.pass.cpp | 62 char str[100]; in main() local 63 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 65 std::string ex(str, iter.base()); in main() 70 char str[100]; in main() local 71 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 73 std::string ex(str, iter.base()); in main() 78 char str[100]; in main() local 79 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 81 std::string ex(str, iter.base()); in main() 86 char str[100]; in main() local [all …]
|
D | put_long_double_ru_RU.pass.cpp | 64 char str[100]; in main() local 65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 67 std::string ex(str, iter.base()); in main() 72 char str[100]; in main() local 73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 75 std::string ex(str, iter.base()); in main() 80 char str[100]; in main() local 81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 83 std::string ex(str, iter.base()); in main() 88 char str[100]; in main() local [all …]
|
D | put_string_en_US.pass.cpp | 62 char str[100]; in main() local 63 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 65 std::string ex(str, iter.base()); in main() 70 char str[100]; in main() local 71 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 73 std::string ex(str, iter.base()); in main() 78 char str[100]; in main() local 79 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() 81 std::string ex(str, iter.base()); in main() 86 char str[100]; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 34 char str[200]; in main() local 48 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main() 49 std::string ex(str, iter.base()); in main() 53 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main() 54 std::string ex(str, iter.base()); in main() 58 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main() 59 std::string ex(str, iter.base()); in main() 63 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main() 64 std::string ex(str, iter.base()); in main() 68 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_double.pass.cpp | 47 char str[200]; in test1() local 69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 70 std::string ex(str, iter.base()); in test1() 77 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 78 std::string ex(str, iter.base()); in test1() 85 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 86 std::string ex(str, iter.base()); in test1() 93 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 94 std::string ex(str, iter.base()); in test1() 103 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() [all …]
|
D | put_long_double.pass.cpp | 47 char str[200]; in test1() local 69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 70 std::string ex(str, iter.base()); in test1() 77 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 78 std::string ex(str, iter.base()); in test1() 85 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 86 std::string ex(str, iter.base()); in test1() 93 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 94 std::string ex(str, iter.base()); in test1() 103 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() [all …]
|
D | put_long_long.pass.cpp | 49 char str[50]; in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 51 std::string ex(str, iter.base()); in main() 57 char str[50]; in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 59 std::string ex(str, iter.base()); in main() 65 char str[50]; in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 67 std::string ex(str, iter.base()); in main() 73 char str[50]; in main() local [all …]
|
D | put_unsigned_long_long.pass.cpp | 49 char str[50]; in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 51 std::string ex(str, iter.base()); in main() 57 char str[50]; in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 59 std::string ex(str, iter.base()); in main() 65 char str[50]; in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 67 std::string ex(str, iter.base()); in main() 73 char str[50]; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.virtuals/ |
D | overflow.pass.cpp | 27 explicit testbuf(const std::basic_string<CharT>& str, in testbuf() 29 : base(str, which) {} in testbuf() 43 assert(sb.str() == "1bc"); in main() 45 assert(sb.str() == "12c"); in main() 47 assert(sb.str() == "123"); in main() 49 assert(sb.str() == "1234"); in main() 51 assert(sb.str() == "12345"); in main() 53 assert(sb.str() == "123456"); in main() 55 assert(sb.str() == "1234567"); in main() 57 assert(sb.str() == "12345678"); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.iter/re.tokiter/re.tokiter.incr/ |
D | post.pass.cpp | 30 assert(i->str() == "start "); in main() 31 assert(i2->str() == "start "); in main() 36 assert(i->str() == ", "); in main() 37 assert(i2->str() == "start "); in main() 38 assert(i3->str() == "start "); in main() 43 assert(i->str() == ", "); in main() 44 assert(i2->str() == "start "); in main() 45 assert(i3->str() == ", "); in main() 50 assert(i->str() == " end"); in main() 51 assert(i2->str() == "start "); in main() [all …]
|