X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Fi18n.h;h=54717bcaa983d955df4e30e19ad8f594bad2749d;hb=3ef1eb1a12de0f0ff783b43e8902fef275e08cbc;hp=4dbf61a29974469b9568779226f8bb30fb01c469;hpb=656fc48419248831d507817106363d41055f5d37;p=pspp diff --git a/src/libpspp/i18n.h b/src/libpspp/i18n.h index 4dbf61a299..54717bcaa9 100644 --- a/src/libpspp/i18n.h +++ b/src/libpspp/i18n.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 2006, 2010, 2011, 2012, 2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,6 +40,9 @@ char *recode_string_pool (const char *to, const char *from, const char *text, int length, struct pool *); struct substring recode_substring_pool (const char *to, const char *from, struct substring text, struct pool *); +int recode_pedantically (const char *to, const char *from, + struct substring text, struct pool *, + struct substring *out); size_t recode_string_len (const char *to, const char *from, const char *text, int len); @@ -67,6 +70,13 @@ void set_default_encoding (const char *enc); 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); +int utf8_strcasecmp (const char *, const char *); +int utf8_strncasecmp (const char *, size_t, const char *, size_t); +char *utf8_to_upper (const char *); +char *utf8_to_lower (const char *); /* Information about character encodings. */