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"
21 * Macro indicating to use POSIX locale extensions
23 #define XSLT_LOCALE_POSIX
32 typedef locale_t xsltLocale
;
33 typedef xmlChar xsltLocaleChar
;
35 #elif defined(_WIN32) && !defined(__CYGWIN__)
39 * Macro indicating to use WinAPI for extended locale support
41 #define XSLT_LOCALE_WINAPI
46 typedef LCID xsltLocale
;
47 typedef wchar_t xsltLocaleChar
;
53 * Macro indicating that there's no extended locale support
55 #define XSLT_LOCALE_NONE
57 typedef void *xsltLocale
;
58 typedef xmlChar xsltLocaleChar
;
62 XSLTPUBFUN xsltLocale XSLTCALL
63 xsltNewLocale (const xmlChar
*langName
);
64 XSLTPUBFUN
void XSLTCALL
65 xsltFreeLocale (xsltLocale locale
);
66 XSLTPUBFUN xsltLocaleChar
* XSLTCALL
67 xsltStrxfrm (xsltLocale locale
,
68 const xmlChar
*string
);
69 XSLTPUBFUN
int XSLTCALL
70 xsltLocaleStrcmp (xsltLocale locale
,
71 const xsltLocaleChar
*str1
,
72 const xsltLocaleChar
*str2
);
73 XSLTPUBFUN
void XSLTCALL
74 xsltFreeLocales (void);
76 #endif /* __XML_XSLTLOCALE_H__ */