Returns a char, tracks case. */
| 50 | |
| 51 | /* Returns a char, tracks case. */ |
| 52 | static int fixup_char(int c, bool *upper, bool *lower) |
| 53 | { |
| 54 | if (c >= 'A' && c <= 'Z') { |
| 55 | *upper = true; |
| 56 | return c + ('a' - 'A'); |
| 57 | } else if (c >= 'a' && c <= 'z') { |
| 58 | *lower = true; |
| 59 | } |
| 60 | return c; |
| 61 | } |
| 62 | |
| 63 | bool from_bech32_charset(const tal_t *ctx, |
| 64 | const char *bech32, |
no outgoing calls
no test coverage detected