diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-12 16:31:08 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-04-13 14:47:07 +1000 |
commit | 9941dfe9f6532ecbc317685046d74e6f90c41695 (patch) | |
tree | ab591eead8e1d38e0167f005730a4ac76dd4fa74 /lib/util/charset/charset.h | |
parent | ce2f217bd2402ada76c13bf3c170c8f55752fb11 (diff) | |
download | samba-9941dfe9f6532ecbc317685046d74e6f90c41695.tar.gz samba-9941dfe9f6532ecbc317685046d74e6f90c41695.tar.bz2 samba-9941dfe9f6532ecbc317685046d74e6f90c41695.zip |
lib/util/charset Move source3/lib/util_unistr.c to the common code.
This file (largely) contains functions to deal with UTF16 strings.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'lib/util/charset/charset.h')
-rw-r--r-- | lib/util/charset/charset.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 16bb9c62fb..3a6e6a3216 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -240,6 +240,26 @@ void load_case_tables(void); void load_case_tables_library(void); bool smb_register_charset(const struct charset_functions *funcs_in); +/* The following definitions come from util_unistr_w.c */ + +size_t strlen_w(const smb_ucs2_t *src); +size_t strnlen_w(const smb_ucs2_t *src, size_t max); +smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c); +smb_ucs2_t *strchr_wa(const smb_ucs2_t *s, char c); +smb_ucs2_t *strrchr_w(const smb_ucs2_t *s, smb_ucs2_t c); +smb_ucs2_t *strnrchr_w(const smb_ucs2_t *s, smb_ucs2_t c, unsigned int n); +smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins); +bool strlower_w(smb_ucs2_t *s); +bool strupper_w(smb_ucs2_t *s); +int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b); +int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b); +int strncasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len); +int strcmp_wa(const smb_ucs2_t *a, const char *b); +int toupper_ascii(int c); +int tolower_ascii(int c); +int isupper_ascii(int c); +int islower_ascii(int c); + /* * Define stub for charset module which implements 8-bit encoding with gaps. * Encoding tables for such module should be produced from glibc's CHARMAPs |