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>
15 #include "xsltexports.h"
17 #ifdef XSLT_LOCALE_XLOCALE
23 /*locale_t is defined only if _GNU_SOURCE is defined*/
24 typedef __locale_t xsltLocale
;
26 typedef locale_t xsltLocale
;
28 typedef xmlChar xsltLocaleChar
;
30 #elif defined(XSLT_LOCALE_WINAPI)
32 //#include <windows.h>
34 #define WIN32_NO_STATUS
39 typedef LCID xsltLocale
;
40 typedef wchar_t xsltLocaleChar
;
46 * Macro indicating that locale are not supported
48 #ifndef XSLT_LOCALE_NONE
49 #define XSLT_LOCALE_NONE
52 typedef void *xsltLocale
;
53 typedef xmlChar xsltLocaleChar
;
57 XSLTPUBFUN xsltLocale XSLTCALL
58 xsltNewLocale (const xmlChar
*langName
);
59 XSLTPUBFUN
void XSLTCALL
60 xsltFreeLocale (xsltLocale locale
);
61 XSLTPUBFUN xsltLocaleChar
* XSLTCALL
62 xsltStrxfrm (xsltLocale locale
,
63 const xmlChar
*string
);
64 XSLTPUBFUN
int XSLTCALL
65 xsltLocaleStrcmp (xsltLocale locale
,
66 const xsltLocaleChar
*str1
,
67 const xsltLocaleChar
*str2
);
68 XSLTPUBFUN
void XSLTCALL
69 xsltFreeLocales (void);
71 #endif /* __XML_XSLTLOCALE_H__ */