/* ***************************************************************************** * * $RCSfile: utfutil.h,v $ * $Date: 1999/05/18 18:35:55 $ * $Source: /home/richard/Xml/RCS/utfutil.h,v $ * $Revision: 1.36 $ * $Author: richard $ * ***************************************************************************** * * Copyright 1998, Brown University and Richard Goerwitz * ***************************************************************************** */ #ifndef UTFUTIL_H_INCLUDED #define UTFUTIL_H_INCLUDED #include "general.h" #ifndef WEOF # define WEOF (-1) #endif extern my_wchar_t *uni_add_string (my_wchar_t *); extern void uni_free_strings (void); extern my_wchar_t *uni_truncate_to (my_wchar_t *, size_t); extern my_wchar_t *append_string_to_comma_delimited_string (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_utf_strip (my_wchar_t *, char *); extern my_wchar_t *uni_downcase (my_wchar_t *); extern my_wchar_t *uni_upcase (my_wchar_t *); extern int uni_tolower (my_wchar_t); extern int uni_toupper (my_wchar_t); extern my_wchar_t *uni_utf_any (my_wchar_t *, char *); extern int uni_isascii (my_wchar_t); extern int uni_isspace (my_wchar_t); extern int uni_isblank (my_wchar_t); extern int uni_isdigit (my_wchar_t); extern int uni_digit_value (my_wchar_t); extern my_wchar_t *uni_tokenize (my_wchar_t *); extern long uni_strtol (my_wchar_t *, my_wchar_t **, int); extern int uni_strcmp (my_wchar_t *, my_wchar_t *); extern int uni_strcasecmp (my_wchar_t *, my_wchar_t *); extern int uni_utf_strcmp (my_wchar_t *, const char *); extern int uni_utf_strncmp (my_wchar_t *, char *, size_t); extern int uni_utf_strcasecmp (my_wchar_t *, char *); extern int uni_utf_strncasecmp (my_wchar_t *, char *, size_t); extern int uni_strncmp (my_wchar_t *, my_wchar_t *, size_t); extern int uni_strncasecmp (my_wchar_t *, my_wchar_t *, size_t); extern my_wchar_t *uni_strpbrk (my_wchar_t *, my_wchar_t *); extern size_t uni_strspn (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_utf_strpbrk (my_wchar_t *, char *); extern my_wchar_t *uni_strcat (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_utf_strcat (my_wchar_t *, char *); extern my_wchar_t *uni_strcpy (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_utf_strcpy (my_wchar_t *, char *); extern my_wchar_t *uni_strchr (my_wchar_t *, int); extern my_wchar_t *uni_strstr (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_utf_strstr (my_wchar_t *, char *); extern my_wchar_t *uni_strdup (my_wchar_t *); extern size_t uni_strlen (my_wchar_t *); extern my_wchar_t *uni_concatenate (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_concatenate_no_free (my_wchar_t *, my_wchar_t *); extern my_wchar_t *uni_map_whitespace_to_space (my_wchar_t *); extern my_wchar_t *uni_map_spaces_to_space (my_wchar_t *); extern int uni_ptr_ptr_cmp (const void *, const void *); extern int uni_ptr_ptr_casecmp (const void *, const void *); extern int uni_utf_ptr_ptr_casecmp (const void *, const void *); extern u_int32_t *utf_16_to_ucs_4 (my_wchar_t *); extern int utf_16_to_int (my_wchar_t *); extern char *utf_16_to_utf_8 (my_wchar_t *); extern char *ucs_2_to_utf_8 (my_wchar_t *); extern my_wchar_t *int_2_utf_16_string (unsigned int); extern char *int_2_utf_8_string (unsigned int); extern my_wchar_t *utf_8_to_utf_16 (const char *); #endif /* UTFUTIL_H_INCLUDED */