| 17 | |
| 18 | template <typename ParamT> |
| 19 | bool constrainParamSize(const char *msg_template, |
| 20 | const char *name, |
| 21 | const ParamT ¶m, |
| 22 | const std::size_t target_size, |
| 23 | std::string &help) |
| 24 | { |
| 25 | if (param.size() > 0 && param.size() != target_size) |
| 26 | { |
| 27 | help = osrm::util::compat::format( |
| 28 | osrm::util::compat::runtime_format(msg_template), name, param.size(), target_size); |
| 29 | return true; |
| 30 | } |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | std::string getWrongOptionHelp(const engine::api::TableParameters ¶meters) |
| 35 | { |
no test coverage detected