| 1698 | // Substring find - lfind/index/etc. |
| 1699 | |
| 1700 | struct FindSubstring { |
| 1701 | const PlainSubstringMatcher matcher_; |
| 1702 | |
| 1703 | explicit FindSubstring(PlainSubstringMatcher matcher) : matcher_(std::move(matcher)) {} |
| 1704 | |
| 1705 | template <typename OutValue, typename... Ignored> |
| 1706 | OutValue Call(KernelContext*, std::string_view val, Status*) const { |
| 1707 | return static_cast<OutValue>(matcher_.Find(val)); |
| 1708 | } |
| 1709 | }; |
| 1710 | |
| 1711 | #ifdef ARROW_WITH_RE2 |
| 1712 | struct FindSubstringRegex { |