kernelbase: Remove unnecessary handler from LocalLock.
[wine.git] / libs / xslt / libxslt / xsltlocale.h
blobf3b9d6e0f2fcd1159f8d4e7ad72caabf3382b3f4
1 /*
2 * Summary: Locale handling
3 * Description: Interfaces for locale handling. Needed for language dependent
4 * sorting.
6 * Copy: See Copyright for the status of this software.
8 * Author: Nick Wellnhofer
9 */
11 #ifndef __XML_XSLTLOCALE_H__
12 #define __XML_XSLTLOCALE_H__
14 #include <libxml/xmlstring.h>
15 #include "xsltexports.h"
17 #ifdef HAVE_STRXFRM_L
20 * XSLT_LOCALE_POSIX:
21 * Macro indicating to use POSIX locale extensions
23 #define XSLT_LOCALE_POSIX
25 #ifdef HAVE_LOCALE_H
26 #include <locale.h>
27 #endif
28 #ifdef HAVE_XLOCALE_H
29 #include <xlocale.h>
30 #endif
32 typedef locale_t xsltLocale;
33 typedef xmlChar xsltLocaleChar;
35 #elif defined(_WIN32) && !defined(__CYGWIN__)
38 * XSLT_LOCALE_WINAPI:
39 * Macro indicating to use WinAPI for extended locale support
41 #define XSLT_LOCALE_WINAPI
43 #include <windows.h>
44 #include <winnls.h>
46 typedef LCID xsltLocale;
47 typedef wchar_t xsltLocaleChar;
49 #else
52 * XSLT_LOCALE_NONE:
53 * Macro indicating that there's no extended locale support
55 #define XSLT_LOCALE_NONE
57 typedef void *xsltLocale;
58 typedef xmlChar xsltLocaleChar;
60 #endif
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__ */