| 95 | } |
| 96 | |
| 97 | static void fprint_group (FILE *f, int escape, const struct cpg_name *group) { |
| 98 | int i; |
| 99 | char c; |
| 100 | |
| 101 | for (i = 0; i < group->length; i++) { |
| 102 | c = group->value[i]; |
| 103 | |
| 104 | if (!escape || (c >= ' ' && c < 0x7f && c != '\\')) { |
| 105 | fputc (c, f); |
| 106 | } else { |
| 107 | if (c == '\\') |
| 108 | fprintf (f, "\\\\"); |
| 109 | else |
| 110 | fprintf (f, "\\x%02X", c); |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | static int display_groups (char delimiter, int escape) |
| 116 | { |
no outgoing calls
no test coverage detected