/external/libtextclassifier/abseil-cpp/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|
/external/angle/third_party/abseil-cpp/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|
/external/openscreen/third_party/abseil/src/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|
/external/abseil-cpp/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/ |
D | memutil_test.cc | 129 const char kHaystack[] = "0123456789"; in TEST() local 130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST() 131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST() 132 kHaystack); in TEST() 133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST() 134 kHaystack); in TEST() 135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST() 136 kHaystack + 7); in TEST() 137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST() 138 kHaystack + 9); in TEST() [all …]
|
D | memutil_benchmark.cc | 95 const char* const kHaystack = MakeHaystack(); variable 100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem() 109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium() 118 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemmemPathological() 128 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasemem() 137 absl::strings_internal::memcasemem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasememMedium() 146 kHaystack, kHaystackSize, kHaystack + kHaystackSize / 2, in BM_MemcasememPathological() 159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search() 160 kHaystack + kHaystackSize - 1, in BM_Search() 161 kHaystack + kHaystackSize)); in BM_Search() [all …]
|