2 * Summary: Locale handling
3 * Description: Interfaces for locale handling. Needed for language dependent
6 * Copy: See Copyright for the status of this software.
8 * Author: Nick Wellnhofer
11 #ifndef __XML_XSLTLOCALE_H__
12 #define __XML_XSLTLOCALE_H__
14 #include <libxml/xmlstring.h>
16 #ifdef XSLT_LOCALE_XLOCALE
22 /*locale_t is defined only if _GNU_SOURCE is defined*/
23 typedef __locale_t xsltLocale
;
25 typedef locale_t xsltLocale
;
27 typedef xmlChar xsltLocaleChar
;
29 #elif defined(XSLT_LOCALE_WINAPI)
34 typedef LCID xsltLocale
;
35 typedef wchar_t xsltLocaleChar
;
41 * Macro indicating that locale are not supported
43 #ifndef XSLT_LOCALE_NONE
44 #define XSLT_LOCALE_NONE
47 typedef void *xsltLocale
;
48 typedef xmlChar xsltLocaleChar
;
52 xsltLocale
xsltNewLocale(const xmlChar
*langName
);
53 void xsltFreeLocale(xsltLocale locale
);
54 xsltLocaleChar
*xsltStrxfrm(xsltLocale locale
, const xmlChar
*string
);
55 int xsltLocaleStrcmp(xsltLocale locale
, const xsltLocaleChar
*str1
, const xsltLocaleChar
*str2
);
57 #endif /* __XML_XSLTLOCALE_H__ */