X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fi18n.h;h=232c5dc166ec69d6e68e0c4ac1fe9d10fe6e7dae;hb=beb8fa86aba2a20e9fa9884a709c0383cc7a1f06;hp=5170c50f0d13df77abd8d01537ec4a32afa77e06;hpb=55c55aa33d0f90d1b3b58f8b33b3fc54062c553e;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index 5170c50f0d..232c5dc166 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -17,6 +17,7 @@ #ifndef I18N_H #define I18N_H +#include "libpspp/compiler.h" #include #include @@ -71,13 +72,14 @@ bool set_encoding_from_locale (const char *loc); const char *uc_name (ucs4_t uc, char buffer[16]); -unsigned int utf8_hash_case_bytes (const char *, size_t n, unsigned int basis); -unsigned int utf8_hash_case_string (const char *, unsigned int basis); +unsigned int utf8_hash_case_bytes (const char *, size_t n, unsigned int basis) WARN_UNUSED_RESULT; +unsigned int utf8_hash_case_string (const char *, unsigned int basis) WARN_UNUSED_RESULT; int utf8_strcasecmp (const char *, const char *); int utf8_strncasecmp (const char *, size_t, const char *, size_t); int utf8_strverscasecmp (const char *, const char *); char *utf8_to_upper (const char *); char *utf8_to_lower (const char *); +char *utf8_to_title (const char *); /* Information about character encodings. */ @@ -90,7 +92,7 @@ char *utf8_to_lower (const char *); a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 - ! " # % & ' ( ) * + , - . / : + ! " # % & ' () * + , - . / : ; < = > ? [ \ ] ^ _ { | } ~ space \a \b \r \n \t \v \f \0 @@ -167,4 +169,8 @@ struct encoding_category struct encoding_category *get_encoding_categories (void); size_t get_n_encoding_categories (void); +/* Return the ISO two letter code for the current LC_MESSAGES + locale category. */ +char *get_language (void); + #endif /* i18n.h */