X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fi18n.h;h=4dbf61a29974469b9568779226f8bb30fb01c469;hb=23c5ab34eec1b2c2fef34155620c7cab670175f0;hp=27ccce361e5ccfa8a6bf03c85967e96eaf4174ae;hpb=dff37440177a355bfc0cf9ff56428114e29f5106;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index 27ccce361e..4dbf61a299 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -134,6 +134,7 @@ struct encoding_info int unit; /* Unit width, in bytes. */ char cr[MAX_UNIT]; /* \r in encoding, 'unit' bytes long. */ char lf[MAX_UNIT]; /* \n in encoding, 'unit' bytes long. */ + char space[MAX_UNIT]; /* ' ' in encoding, 'unit' bytes long. */ }; bool get_encoding_info (struct encoding_info *, const char *name); @@ -141,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 */