Returns a char, tracks case. */
| 61 | |
| 62 | /* Returns a char, tracks case. */ |
| 63 | static int fixup_char(int c, bool *upper, bool *lower) |
| 64 | { |
| 65 | if (c >= 'A' && c <= 'Z') { |
| 66 | *upper = true; |
| 67 | return c + ('a' - 'A'); |
| 68 | } else if (c >= 'a' && c <= 'z') { |
| 69 | *lower = true; |
| 70 | } |
| 71 | return c; |
| 72 | } |
| 73 | |
| 74 | bool from_bech32_charset(const tal_t *ctx, |
| 75 | const char *bech32, |
no outgoing calls
no test coverage detected