MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / char_process

Class char_process

exprtk_simple_example_24.cpp:27–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename T, T Process(const unsigned char)>
27struct 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
47template <typename T>
48T is_digit_func(const unsigned char c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected