Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/xsltlocale.h
811 views
/*1* Summary: Locale handling2* Description: Interfaces for locale handling. Needed for language dependent3* sorting.4*5* Copy: See Copyright for the status of this software.6*7* Author: Nick Wellnhofer8*/910#ifndef __XML_XSLTLOCALE_H__11#define __XML_XSLTLOCALE_H__1213#include <libxml/xmlstring.h>14#include "xsltexports.h"1516#ifdef XSLT_LOCALE_XLOCALE1718#include <locale.h>19#include <xlocale.h>2021#ifdef __GLIBC__22/*locale_t is defined only if _GNU_SOURCE is defined*/23typedef __locale_t xsltLocale;24#else25typedef locale_t xsltLocale;26#endif27typedef xmlChar xsltLocaleChar;2829#elif defined(XSLT_LOCALE_WINAPI)3031#include <windows.h>32#include <winnls.h>3334typedef LCID xsltLocale;35typedef wchar_t xsltLocaleChar;3637#else3839/*40* XSLT_LOCALE_NONE:41* Macro indicating that locale are not supported42*/43#ifndef XSLT_LOCALE_NONE44#define XSLT_LOCALE_NONE45#endif4647typedef void *xsltLocale;48typedef xmlChar xsltLocaleChar;4950#endif5152XSLTPUBFUN xsltLocale XSLTCALL53xsltNewLocale (const xmlChar *langName);54XSLTPUBFUN void XSLTCALL55xsltFreeLocale (xsltLocale locale);56XSLTPUBFUN xsltLocaleChar * XSLTCALL57xsltStrxfrm (xsltLocale locale,58const xmlChar *string);59XSLTPUBFUN int XSLTCALL60xsltLocaleStrcmp (xsltLocale locale,61const xsltLocaleChar *str1,62const xsltLocaleChar *str2);63XSLTPUBFUN void XSLTCALL64xsltFreeLocales (void);6566#endif /* __XML_XSLTLOCALE_H__ */676869