Home
last modified time | relevance | path

Searched refs:small_string (Results 1 – 12 of 12) sorted by relevance

/aosp_15_r20/external/cronet/third_party/libc++/src/test/libcxx/strings/basic.string/
H A Dsizeof.compile.pass.cpp49 using small_string = std::basic_string<CharT, std::char_traits<CharT>, small_iter_allocator<CharT> … typedef
56 static_assert(sizeof(small_string<char>) == 6, "");
63 static_assert(sizeof(small_string<wchar_t>) == 12, "");
68 static_assert(sizeof(small_string<wchar_t>) == 6, "");
78 static_assert(sizeof(small_string<char8_t>) == 6, "");
88 static_assert(sizeof(small_string<char16_t>) == 6, "");
89 static_assert(sizeof(small_string<char32_t>) == 12, "");
97 static_assert(sizeof(small_string<char>) == 6, "");
104 static_assert(sizeof(small_string<wchar_t>) == 12, "");
109 static_assert(sizeof(small_string<wchar_t>) == 6, "");
[all …]
H A Dalignof.compile.pass.cpp51 using small_string = std::basic_string<CharT, std::char_traits<CharT>, small_iter_allocator<CharT>>; typedef
58 static_assert(alignof(small_string<char>) == 2, "");
65 static_assert(alignof(small_string<wchar_t>) == 4, "");
70 static_assert(alignof(small_string<wchar_t>) == 2, "");
80 static_assert(alignof(small_string<char8_t>) == 2, "");
90 static_assert(alignof(small_string<char16_t>) == 2, "");
91 static_assert(alignof(small_string<char32_t>) == 4, "");
99 static_assert(alignof(small_string<char>) == 2, "");
106 static_assert(alignof(small_string<wchar_t>) == 4, "");
111 static_assert(alignof(small_string<wchar_t>) == 2, "");
[all …]
/aosp_15_r20/external/autotest/client/site_tests/platform_ToolchainTests/src/
H A Dclang-fortify-tests.cpp171 const char small_string[] = "Hi!!"; in TestString() local
172 _Static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in TestString()
177 EXPECT_DEATH_STRUCT(strcpy(split.tiny_buffer, small_string)); in TestString()
182 EXPECT_DEATH_STRUCT(stpcpy(split.tiny_buffer, small_string)); in TestString()
188 strncpy(split.tiny_buffer, small_string, sizeof(small_string))); in TestString()
194 stpncpy(split.tiny_buffer, small_string, sizeof(small_string))); in TestString()
199 EXPECT_DEATH_STRUCT(strcat(split.tiny_buffer, small_string)); in TestString()
205 strncat(split.tiny_buffer, small_string, sizeof(small_string))); in TestString()
612 const wchar_t small_string[] = L"Hello!!"; in TestWchar() local
613 _Static_assert(sizeof(small_buffer) == sizeof(small_string), ""); in TestWchar()
[all …]
/aosp_15_r20/external/llvm-libc/test/src/stdlib/
H A DStrtolTest.h207 char small_string[4] = {'\0', '\0', '\0', '\0'}; in DecodeInOtherBases() local
210 small_string[0] = int_to_b36_char(first_digit); in DecodeInOtherBases()
213 ASSERT_EQ(func(small_string, nullptr, base), in DecodeInOtherBases()
218 ASSERT_EQ(func(small_string, nullptr, base), ReturnT(0)); in DecodeInOtherBases()
226 small_string[0] = int_to_b36_char(first_digit); in DecodeInOtherBases()
228 small_string[1] = int_to_b36_char(second_digit); in DecodeInOtherBases()
232 func(small_string, nullptr, base), in DecodeInOtherBases()
237 ASSERT_EQ(func(small_string, nullptr, base), in DecodeInOtherBases()
242 ASSERT_EQ(func(small_string, nullptr, base), ReturnT(0)); in DecodeInOtherBases()
251 small_string[0] = int_to_b36_char(first_digit); in DecodeInOtherBases()
[all …]
/aosp_15_r20/bionic/tests/
H A Dclang_fortify_tests.cpp219 const char small_string[] = "Hi!!"; in FORTIFY_TEST() local
220 static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in FORTIFY_TEST()
226 EXPECT_FORTIFY_DEATH_STRUCT(strcpy(split.tiny_buffer, small_string)); in FORTIFY_TEST()
231 EXPECT_FORTIFY_DEATH_STRUCT(stpcpy(split.tiny_buffer, small_string)); in FORTIFY_TEST()
236 EXPECT_FORTIFY_DEATH_STRUCT(strncpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
241 EXPECT_FORTIFY_DEATH_STRUCT(stpncpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
246 EXPECT_FORTIFY_DEATH_STRUCT(strcat(split.tiny_buffer, small_string)); in FORTIFY_TEST()
251 EXPECT_FORTIFY_DEATH_STRUCT(strncat(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
256 EXPECT_FORTIFY_DEATH_STRUCT(strlcat(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
261 EXPECT_FORTIFY_DEATH_STRUCT(strlcpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
/aosp_15_r20/external/openscreen/third_party/abseil/src/absl/strings/
H A Dcord_test.cc1246 const std::string small_string(kMaxInline, 'x'); in TEST() local
1247 absl::Cord c1(small_string); in TEST()
1250 c2.Append(small_string); in TEST()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dcord_test.cc1895 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
1896 absl::Cord c1(small_string); in TEST_P()
1899 c2.Append(small_string); in TEST_P()
/aosp_15_r20/external/webrtc/third_party/abseil-cpp/absl/strings/
H A Dcord_test.cc1895 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
1896 absl::Cord c1(small_string); in TEST_P()
1899 c2.Append(small_string); in TEST_P()
/aosp_15_r20/external/private-join-and-compute/third_party/abseil-cpp-20230125.2/absl/strings/
H A Dcord_test.cc1895 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
1896 absl::Cord c1(small_string); in TEST_P()
1899 c2.Append(small_string); in TEST_P()
/aosp_15_r20/external/cronet/third_party/abseil-cpp/absl/strings/
H A Dcord_test.cc2040 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
2041 absl::Cord c1(small_string); in TEST_P()
2044 c2.Append(small_string); in TEST_P()
/aosp_15_r20/external/angle/third_party/abseil-cpp/absl/strings/
H A Dcord_test.cc2075 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
2076 absl::Cord c1(small_string); in TEST_P()
2079 c2.Append(small_string); in TEST_P()
/aosp_15_r20/external/abseil-cpp/absl/strings/
H A Dcord_test.cc2072 const std::string small_string(kMaxInline, 'x'); in TEST_P() local
2073 absl::Cord c1(small_string); in TEST_P()
2076 c2.Append(small_string); in TEST_P()