cppcheck-suppress unusedFunction
| 177 | |
| 178 | // cppcheck-suppress unusedFunction |
| 179 | uint32_t Parser::enumValue(const EnumItem* e) const { |
| 180 | auto token = string_util::trim(_token._value); |
| 181 | for (; e->name; ++e) { |
| 182 | if (string_util::equal_ignore_case(token, e->name)) { |
| 183 | break; |
| 184 | } |
| 185 | } |
| 186 | return e->value; // Terminal value is default. |
| 187 | } |
| 188 | |
| 189 | void Parser::uartMode(UartData& wordLength, UartParity& parity, UartStop& stopBits) const { |
| 190 | const char* errstr = decodeUartMode(_token._value, wordLength, parity, stopBits); |
no test coverage detected