Lines Matching defs:substr
39 S substr(std::move(orig), pos);
42 LIBCPP_ASSERT(substr.__invariants());
43 assert(substr == expected);
45 LIBCPP_ASSERT(is_string_asan_correct(substr));
53 [[maybe_unused]] S substr = S(std::move(orig), pos);
67 S substr(std::move(orig), pos, alloc);
69 LIBCPP_ASSERT(substr.__invariants());
70 assert(substr == expected);
71 assert(substr.get_allocator() == alloc);
73 LIBCPP_ASSERT(is_string_asan_correct(substr));
82 [[maybe_unused]] S substr = S(std::move(orig), pos, alloc);
99 S substr(std::move(orig), pos, n);
102 LIBCPP_ASSERT(substr.__invariants());
103 assert(substr == expected);
105 LIBCPP_ASSERT(is_string_asan_correct(substr));
113 [[maybe_unused]] S substr = S(std::move(orig), pos, n);
128 S substr(std::move(orig), pos, n, alloc);
130 LIBCPP_ASSERT(substr.__invariants());
131 assert(substr == expected);
132 assert(substr.get_allocator() == alloc);
134 LIBCPP_ASSERT(is_string_asan_correct(substr));
147 [[maybe_unused]] S substr = S(std::move(orig), pos, n, alloc);