0033729607cf872e82ab591d0e2bdecc5e3af5b8
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)
31 //#include <windows.h>
33 #define WIN32_NO_STATUS
38 typedef LCID xsltLocale
;
39 typedef wchar_t xsltLocaleChar
;
45 * Macro indicating that locale are not supported
47 #ifndef XSLT_LOCALE_NONE
48 #define XSLT_LOCALE_NONE
51 typedef void *xsltLocale
;
52 typedef xmlChar xsltLocaleChar
;
56 xsltLocale
xsltNewLocale(const xmlChar
*langName
);
57 void xsltFreeLocale(xsltLocale locale
);
58 xsltLocaleChar
*xsltStrxfrm(xsltLocale locale
, const xmlChar
*string
);
59 int xsltLocaleStrcmp(xsltLocale locale
, const xsltLocaleChar
*str1
, const xsltLocaleChar
*str2
);
61 #endif /* __XML_XSLTLOCALE_H__ */