| 1205 | // length |
| 1206 | template <typename Type> |
| 1207 | void StringBoolTransform(KernelContext* ctx, const ExecSpan& batch, |
| 1208 | StrToBoolTransformFunc transform, ExecResult* out) { |
| 1209 | using offset_type = typename Type::offset_type; |
| 1210 | const ArraySpan& input = batch[0].array; |
| 1211 | ArraySpan* out_arr = out->array_span_mutable(); |
| 1212 | if (input.length > 0) { |
| 1213 | transform(reinterpret_cast<const offset_type*>(input.buffers[1].data) + input.offset, |
| 1214 | input.buffers[2].data, input.length, out_arr->offset, |
| 1215 | out_arr->buffers[1].data); |
| 1216 | } |
| 1217 | } |
| 1218 | |
| 1219 | using MatchSubstringState = OptionsWrapper<MatchSubstringOptions>; |
| 1220 |
nothing calls this directly
no outgoing calls
no test coverage detected