Return the base enumeration for the specified character. */
| 94 | |
| 95 | /** Return the base enumeration for the specified character. */ |
| 96 | uint8_t baseToCode(char base) |
| 97 | { |
| 98 | uint8_t r = b2C[unsigned(base)]; |
| 99 | if (r != 0xFF) return r; |
| 100 | |
| 101 | cerr << "error: unexpected character: '" |
| 102 | << base << "'\n"; |
| 103 | assert(false); |
| 104 | abort(); |
| 105 | } |
| 106 | |
| 107 | char codeToBase(uint8_t code) |
| 108 | { |
no outgoing calls
no test coverage detected