| 1189 | } |
| 1190 | |
| 1191 | static void showFilterKeys(FILE* const out, int filter_id) |
| 1192 | { |
| 1193 | char ** keys = hb_filter_get_keys(filter_id); |
| 1194 | char * colon = "", * newline; |
| 1195 | int ii, linelen = 0; |
| 1196 | |
| 1197 | fprintf(out, " Custom Format:\n" |
| 1198 | " "); |
| 1199 | for (ii = 0; keys[ii] != NULL; ii++) |
| 1200 | { |
| 1201 | int c = tolower(keys[ii][0]); |
| 1202 | int len = strlen(keys[ii]) + 3; |
| 1203 | if (linelen + len > 48) |
| 1204 | { |
| 1205 | newline = "\n "; |
| 1206 | linelen = 0; |
| 1207 | } |
| 1208 | else |
| 1209 | { |
| 1210 | newline = ""; |
| 1211 | } |
| 1212 | fprintf(out, "%s%s%s=%c", colon, newline, keys[ii], c); |
| 1213 | linelen += len; |
| 1214 | colon = ":"; |
| 1215 | } |
| 1216 | fprintf(out, "\n"); |
| 1217 | hb_str_vfree(keys); |
| 1218 | } |
| 1219 | |
| 1220 | static void showFilterDefault(FILE* const out, int filter_id) |
| 1221 | { |
no test coverage detected