|
ReactOS 0.4.16-dev-2208-g6350669
|
#include "libxslt.h"#include <string.h>#include <libxml/xmlmemory.h>#include <libxml/threads.h>#include "xsltlocale.h"#include "xsltutils.h"
Go to the source code of this file.
Macros | |
| #define | IN_LIBXSLT |
| #define | XSLT_LOCALE_NONE |
| #define | TOUPPER(c) (c & ~0x20) |
| #define | TOLOWER(c) (c | 0x20) |
| #define | ISALPHA(c) ((unsigned)(TOUPPER(c) - 'A') < 26) |
| #define | XSLTMAX_ISO639LANGLEN 8 |
| #define | XSLTMAX_ISO3166CNTRYLEN 8 |
| #define | XSLTMAX_LANGTAGLEN (XSLTMAX_ISO639LANGLEN+1+XSLTMAX_ISO3166CNTRYLEN) |
Functions | |
| static const xmlChar * | xsltDefaultRegion (const xmlChar *localeName) |
| void | xsltFreeLocales (void) |
| void * | xsltNewLocale (const xmlChar *languageTag, int lowerFirst ATTRIBUTE_UNUSED) |
| void | xsltFreeLocale (void *locale) |
| xmlChar * | xsltStrxfrm (void *vlocale, const xmlChar *string) |
| int | xsltLocaleStrcmp (void *locale, const xmlChar *str1, const xmlChar *str2) |
| #define IN_LIBXSLT |
Definition at line 13 of file xsltlocale.c.
Definition at line 49 of file xsltlocale.c.
Definition at line 48 of file xsltlocale.c.
Definition at line 47 of file xsltlocale.c.
| #define XSLT_LOCALE_NONE |
Definition at line 43 of file xsltlocale.c.
| #define XSLTMAX_ISO3166CNTRYLEN 8 |
Definition at line 53 of file xsltlocale.c.
| #define XSLTMAX_ISO639LANGLEN 8 |
Definition at line 52 of file xsltlocale.c.
| #define XSLTMAX_LANGTAGLEN (XSLTMAX_ISO639LANGLEN+1+XSLTMAX_ISO3166CNTRYLEN) |
Definition at line 55 of file xsltlocale.c.
Definition at line 228 of file xsltlocale.c.
Referenced by xsltNewLocale().
xsltFreeLocale: @locale: the locale to free
Frees a locale created with xsltNewLocale
Definition at line 372 of file xsltlocale.c.
Referenced by xsltNewTransformContext().
xsltFreeLocales:
Cleanup function for the locale support on shutdown
Definition at line 93 of file xsltlocale.c.
Referenced by xsltCleanupGlobals().
xsltLocaleStrcmp: @locale: unused @str1: a string transformed with xsltStrxfrm @str2: a string transformed with xsltStrxfrm
DEPRECATED: Same as xmlStrcmp.
Compares two strings transformed with xsltStrxfrm.
Returns a value < 0 if str1 sorts before str2, a value > 0 if str1 sorts after str2, 0 if str1 and str2 are equal wrt sorting
Definition at line 482 of file xsltlocale.c.
xsltNewLocale: @languageTag: RFC 3066 language tag
Creates a new locale of an opaque system dependent type based on the language tag.
Returns the locale or NULL on error or if no matching locale was found
Definition at line 112 of file xsltlocale.c.
Referenced by xsltNewTransformContext().
xsltStrxfrm: @locale: locale created with xsltNewLocale @string: UTF-8 string to transform
Transforms a string according to locale. The transformed string must be freed with xmlFree.
Returns the transformed string or NULL on error
Definition at line 392 of file xsltlocale.c.
Referenced by xsltNewTransformContext().