| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9abee07 commit 0db7ebe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -209,7 +209,8 @@ int dumpAllButInstalledLocales(int lev, | |||
| 209 | 209 | } else { | |
| 210 | 210 | printIndent(bf, lev); | |
| 211 | 211 | fprintf(bf, "%s", key); | |
| 212 | - switch (ures_getType(t.getAlias())) { | ||
| 212 | + const UResType type = ures_getType(t.getAlias()); | ||
| 213 | + switch (type) { | ||
| 213 | 214 | case URES_STRING: { | |
| 214 | 215 | int32_t len = 0; | |
| 215 | 216 | const UChar* s = ures_getString(t.getAlias(), &len, status); | |
@@ -218,8 +219,16 @@ int dumpAllButInstalledLocales(int lev, | |||
| 218 | 219 | fwrite(s, len, 1, bf); | |
| 219 | 220 | fprintf(bf, "\"}"); | |
| 220 | 221 | } break; | |
| 222 | + case URES_TABLE: { | ||
| 223 | + fprintf(bf, ":table {\n"); | ||
| 224 | + dumpAllButInstalledLocales(lev+1, &t, bf, status); | ||
| 225 | + printIndent(bf, lev); | ||
| 226 | + fprintf(bf, "}\n"); | ||
| 227 | + } break; | ||
| 221 | 228 | default: { | |
| 222 | - printf("ERROR: unhandled type in dumpAllButInstalledLocales().\n"); | ||
| 229 | + printf("ERROR: unhandled type %d for key %s " | ||
| 230 | + "in dumpAllButInstalledLocales().\n", | ||
| 231 | + static_cast<int>(type), key); | ||
| 223 | 232 | return 1; | |
| 224 | 233 | } break; | |
| 225 | 234 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments