X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Fi18n.h;h=4dbf61a29974469b9568779226f8bb30fb01c469;hb=fa1fffd5c789d9c7875fc3bdf556eaf017cf524e;hp=d973a81b1f164c62fde2a924b2b5440047e1a8f9;hpb=d6c75296e5573a997c79a7af1195b6a619c0190c;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index d973a81b1f..4dbf61a299 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -143,5 +143,17 @@ 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 */