| 25 | |
| 26 | template <typename T, T Process(const unsigned char)> |
| 27 | struct char_process : public exprtk::igeneric_function<T> |
| 28 | { |
| 29 | typedef typename exprtk::igeneric_function<T> igfun_t; |
| 30 | typedef typename igfun_t::parameter_list_t parameter_list_t; |
| 31 | typedef typename igfun_t::generic_type generic_type; |
| 32 | typedef typename generic_type::string_view string_t; |
| 33 | |
| 34 | using exprtk::igeneric_function<T>::operator(); |
| 35 | |
| 36 | char_process() |
| 37 | : exprtk::igeneric_function<T>("S") |
| 38 | {} |
| 39 | |
| 40 | inline T operator()(parameter_list_t parameters) |
| 41 | { |
| 42 | const unsigned char c = string_t(parameters[0])[0]; |
| 43 | return Process(c); |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | template <typename T> |
| 48 | T is_digit_func(const unsigned char c) |
nothing calls this directly
no outgoing calls
no test coverage detected