X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fi18n.h;h=4dbf61a29974469b9568779226f8bb30fb01c469;hb=e294d6183a5e4001a5c3ff3133a3e74ca8c62c3e;hp=383ff12da53ab6437ede88f815292f4ad2aa86ab;hpb=21559edd9991628d96df331e5b391ca6bade3497;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index 383ff12da5..4dbf61a299 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -142,4 +142,18 @@ bool is_encoding_ascii_compatible (const char *encoding); bool is_encoding_ebcdic_compatible (const char *encoding); bool is_encoding_supported (const char *encoding); +bool is_encoding_utf8 (const char *encoding); + +/* Database of encodings, by language or region. */ + +struct encoding_category + { + const char *category; /* e.g. "Arabic" or "Western European". */ + const char **encodings; /* Encodings within the category. */ + size_t n_encodings; /* Number of encodings in category. */ + }; + +struct encoding_category *get_encoding_categories (void); +size_t get_n_encoding_categories (void); + #endif /* i18n.h */