MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / operator()

Method operator()

scripts/bench_find.cpp:499–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497 inline matcher_std_string_first_of_t(std::string_view needles) noexcept : needles_(needles) {}
498 inline size_type needle_length() const noexcept { return 1; }
499 inline size_type operator()(std::string_view haystack) const noexcept { return haystack.find_first_of(needles_); }
500 constexpr size_type skip_length() const noexcept { return 1; }
501};
502

Callers

nothing calls this directly

Calls 1

find_first_ofMethod · 0.45

Tested by

no test coverage detected