Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * Summary: Locale handling 00003 * Description: Interfaces for locale handling. Needed for language dependent 00004 * sorting. 00005 * 00006 * Copy: See Copyright for the status of this software. 00007 * 00008 * Author: Nick Wellnhofer 00009 */ 00010 00011 #ifndef __XML_XSLTLOCALE_H__ 00012 #define __XML_XSLTLOCALE_H__ 00013 00014 #include <libxml/xmlstring.h> 00015 00016 #ifdef XSLT_LOCALE_XLOCALE 00017 00018 #include <locale.h> 00019 #include <xlocale.h> 00020 00021 #ifdef __GLIBC__ 00022 /*locale_t is defined only if _GNU_SOURCE is defined*/ 00023 typedef __locale_t xsltLocale; 00024 #else 00025 typedef locale_t xsltLocale; 00026 #endif 00027 typedef xmlChar xsltLocaleChar; 00028 00029 #elif defined(XSLT_LOCALE_WINAPI) 00030 00031 #include <windows.h> 00032 #include <winnls.h> 00033 00034 typedef LCID xsltLocale; 00035 typedef wchar_t xsltLocaleChar; 00036 00037 #else 00038 00039 /* 00040 * XSLT_LOCALE_NONE: 00041 * Macro indicating that locale are not supported 00042 */ 00043 #ifndef XSLT_LOCALE_NONE 00044 #define XSLT_LOCALE_NONE 00045 #endif 00046 00047 typedef void *xsltLocale; 00048 typedef xmlChar xsltLocaleChar; 00049 00050 #endif 00051 00052 xsltLocale xsltNewLocale(const xmlChar *langName); 00053 void xsltFreeLocale(xsltLocale locale); 00054 xsltLocaleChar *xsltStrxfrm(xsltLocale locale, const xmlChar *string); 00055 int xsltLocaleStrcmp(xsltLocale locale, const xsltLocaleChar *str1, const xsltLocaleChar *str2); 00056 void xsltFreeLocales(void); 00057 00058 #endif /* __XML_XSLTLOCALE_H__ */