| 463 | // ensures, that d is either two lowercase chars or "" |
| 464 | |
| 465 | void filterlang(char *d, const char *s) |
| 466 | { |
| 467 | if(strlen(s) == 2) |
| 468 | { |
| 469 | filtertext(d, s, FTXT_TOLOWER, 2); |
| 470 | if(islower(d[0]) && islower(d[1])) return; |
| 471 | } |
| 472 | *d = '\0'; |
| 473 | } |
| 474 | |
| 475 | void filtercountrycode(char *d, const char *s) // returns exactly two uppercase chars or "--" |
| 476 | { |
no test coverage detected