Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hhhrrrttt222111
GitHub Repository: hhhrrrttt222111/Dorkify
Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/xsltlocale.h
811 views
1
/*
2
* Summary: Locale handling
3
* Description: Interfaces for locale handling. Needed for language dependent
4
* sorting.
5
*
6
* Copy: See Copyright for the status of this software.
7
*
8
* Author: Nick Wellnhofer
9
*/
10
11
#ifndef __XML_XSLTLOCALE_H__
12
#define __XML_XSLTLOCALE_H__
13
14
#include <libxml/xmlstring.h>
15
#include "xsltexports.h"
16
17
#ifdef XSLT_LOCALE_XLOCALE
18
19
#include <locale.h>
20
#include <xlocale.h>
21
22
#ifdef __GLIBC__
23
/*locale_t is defined only if _GNU_SOURCE is defined*/
24
typedef __locale_t xsltLocale;
25
#else
26
typedef locale_t xsltLocale;
27
#endif
28
typedef xmlChar xsltLocaleChar;
29
30
#elif defined(XSLT_LOCALE_WINAPI)
31
32
#include <windows.h>
33
#include <winnls.h>
34
35
typedef LCID xsltLocale;
36
typedef wchar_t xsltLocaleChar;
37
38
#else
39
40
/*
41
* XSLT_LOCALE_NONE:
42
* Macro indicating that locale are not supported
43
*/
44
#ifndef XSLT_LOCALE_NONE
45
#define XSLT_LOCALE_NONE
46
#endif
47
48
typedef void *xsltLocale;
49
typedef xmlChar xsltLocaleChar;
50
51
#endif
52
53
XSLTPUBFUN xsltLocale XSLTCALL
54
xsltNewLocale (const xmlChar *langName);
55
XSLTPUBFUN void XSLTCALL
56
xsltFreeLocale (xsltLocale locale);
57
XSLTPUBFUN xsltLocaleChar * XSLTCALL
58
xsltStrxfrm (xsltLocale locale,
59
const xmlChar *string);
60
XSLTPUBFUN int XSLTCALL
61
xsltLocaleStrcmp (xsltLocale locale,
62
const xsltLocaleChar *str1,
63
const xsltLocaleChar *str2);
64
XSLTPUBFUN void XSLTCALL
65
xsltFreeLocales (void);
66
67
#endif /* __XML_XSLTLOCALE_H__ */
68
69