| 206 | |
| 207 | |
| 208 | static int encode(char c, bool *invalid) |
| 209 | { |
| 210 | //return c == '*' ? 10 : c == '#' ? 11 : c-'0'; |
| 211 | if (c == '*') return 10; |
| 212 | if (c == '#') return 11; |
| 213 | if (isdigit(c)) return c - '0'; |
| 214 | *invalid = true; |
| 215 | return 0; // Not sure what to do. |
| 216 | } |
| 217 | |
| 218 | |
| 219 | void L3BCDDigits::write(L3Frame& dest, size_t &wp) const |