Home
last modified time | relevance | path

Searched refs:memmem (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/rust/crates/memchr/bench/src/memmem/
Dimp.rs27 use memchr::memmem;
30 memmem::find(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot()
36 let finder = memmem::Finder::new(needle).into_owned(); in prebuilt()
44 memmem::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
48 PrebuiltIter(memmem::Finder::new(needle).into_owned()) in prebuiltiter()
52 pub(crate) struct PrebuiltIter(memmem::Finder<'static>);
65 use memchr::memmem;
68 memmem::rfind(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot()
74 let finder = memmem::FinderRev::new(needle).into_owned(); in prebuilt()
82 memmem::rfind_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
[all …]
Dsliceslice.rs27 use memchr::memmem;
50 .map(|needle| memmem::Finder::new(needle.as_bytes())) in search_short_haystack()
73 memmem::FinderBuilder::new() in search_short_haystack()
74 .prefilter(memmem::Prefilter::None) in search_short_haystack()
148 .map(|needle| memmem::Finder::new(needle.as_bytes())) in search_long_haystack()
167 memmem::FinderBuilder::new() in search_long_haystack()
168 .prefilter(memmem::Prefilter::None) in search_long_haystack()
234 .map(|needle| memmem::Finder::new(needle.as_bytes())) in search_i386_haystack()
253 memmem::FinderBuilder::new() in search_i386_haystack()
254 .prefilter(memmem::Prefilter::None) in search_i386_haystack()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 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()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
/third_party/rust/crates/memchr/bench/
DREADME.md2 memmem APIs in this crate. A selection of "competitor" implementations are
14 $ cargo bench -- 'memmem/krate/.*never.*'
17 runs all benchmarks for the memmem implementation in this crate with searches
22 want to see where `memmem/krate/prebuiltiter/huge-en/common-one-space` is
27 $ cargo bench -- memmem/krate/prebuiltiter/huge-en/common-one-space
33 $ perfr --callgraph cargo bench -- memmem/krate/prebuiltiter/huge-en/common-one-space --profile-tim…
/third_party/musl/libc-test/src/functionalext/supplement/string/
Dmemmem.c32 ptr = memmem(buffer, sizeof(buffer), cmp, i); in memmem_0100()
53 ptr = memmem(buffer, sizeof(buffer), "musl", errlen); in memmem_0200()
56 ptr = memmem(buffer, sizeof(buffer), "muls", 3); in memmem_0200()
/third_party/rust/crates/memchr/src/memmem/x86/
Davx.rs10 use crate::memmem::{genericsimd, NeedleInfo};
76 use crate::memmem::NeedleInfo;
105 use crate::memmem::{prefilter::PrefilterState, NeedleInfo};
118 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
Dsse.rs3 use crate::memmem::{genericsimd, NeedleInfo};
58 use crate::memmem::{prefilter::PrefilterState, NeedleInfo};
71 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
/third_party/rust/crates/memchr/src/memmem/
Dwasm.rs3 use crate::memmem::{genericsimd, NeedleInfo};
46 use crate::memmem::{prefilter::PrefilterState, NeedleInfo};
59 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
Drabinkarp.rs213 crate::memmem::util::is_prefix(haystack, needle) in is_prefix()
222 crate::memmem::util::is_suffix(haystack, needle) in is_suffix()
/third_party/rust/crates/memchr/bench/runs/
DREADME.md11 memmem implementations. The tables are generated via the `make-pretty-tables`
18 memmem implementation and std's substring search routine, but only benchmarks
22 critcmp runs/2021-04-30_initial/raw.json -g 'memmem/[^/]+/(.*)' -f '/(krate|stud)/' -t5
33 groups in `memmem/[^/]+/(.*)` are equivalent in the benchmark names.
/third_party/rust/crates/memchr/fuzz/fuzz_targets/
Dmemmem.rs4 use memchr::memmem;
12 memmem::find_iter(haystack, needle).count();
Dmemrmem.rs4 use memchr::memmem;
12 memmem::rfind_iter(haystack, needle).count();
/third_party/json/tests/thirdparty/Fuzzer/test/
DStrstrTest.cpp14 #define memmem(a, b, c, d) true macro
22 memmem(s.data(), s.size(), "kuku", 4) in LLVMFuzzerTestOneInput()
/third_party/rust/crates/memchr/src/memmem/prefilter/x86/
Davx.rs3 use crate::memmem::{
38 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
Dsse.rs3 use crate::memmem::{
38 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
/third_party/rust/crates/memchr/src/memmem/prefilter/
Dwasm.rs3 use crate::memmem::{
35 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
Dfallback.rs31 use crate::memmem::{
116 use crate::memmem::prefilter::tests::PrefilterTest; in prefilter_permutations()
/third_party/rust/crates/memchr/bench/src/
Dbench.rs7 mod memmem; module
11 memmem::all(c); in all()
/third_party/musl/libc-test/src/functional/
Dstring_memmem.c9 char *q = memmem(p, strlen(s), sub, strlen(sub)); \
17 char *q = memmem(p, strlen(p), sub, strlen(sub)); \
/third_party/rust/crates/memchr/fuzz/
DCargo.toml60 name = "memmem"
61 path = "fuzz_targets/memmem.rs"
/third_party/musl/libc-test/src/regression/
Dtest_src_regression.gni33 "memmem-oob-read",
34 "memmem-oob",
Dmemmem-oob.c11 char *p = memmem("abcde", 4, "cde", 3); in main()
Dmemmem-oob-read.c13 unsigned char *p = memmem(haystack, 8, needle, 8); in main()
/third_party/rust/crates/libc/libc-test/semver/
Dmacos.txt6 memmem

1234