ReactOS 0.4.16-dev-88-ga65b6ae
|
Go to the source code of this file.
Macros | |
#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) |
xsltLocale | xsltNewLocale (const xmlChar *languageTag) |
void | xsltFreeLocale (xsltLocale locale) |
xsltLocaleChar * | xsltStrxfrm (xsltLocale locale, const xmlChar *string) |
int | xsltLocaleStrcmp (xsltLocale locale, const xsltLocaleChar *str1, const xsltLocaleChar *str2) |
Definition at line 19 of file xsltlocale.c.
Definition at line 18 of file xsltlocale.c.
Definition at line 17 of file xsltlocale.c.
#define XSLTMAX_ISO3166CNTRYLEN 8 |
Definition at line 23 of file xsltlocale.c.
#define XSLTMAX_ISO639LANGLEN 8 |
Definition at line 22 of file xsltlocale.c.
#define XSLTMAX_LANGTAGLEN (XSLTMAX_ISO639LANGLEN+1+XSLTMAX_ISO3166CNTRYLEN) |
Definition at line 25 of file xsltlocale.c.
Definition at line 198 of file xsltlocale.c.
Referenced by xsltNewLocale().
void xsltFreeLocale | ( | xsltLocale | locale | ) |
xsltFreeLocale: @locale: the locale to free
Frees a locale created with xsltNewLocale
Definition at line 342 of file xsltlocale.c.
Referenced by xsltDefaultSortFunction(), and xsltFreeStylePreComp().
xsltFreeLocales:
Cleanup function for the locale support on shutdown
Definition at line 63 of file xsltlocale.c.
Referenced by xsltCleanupGlobals().
int xsltLocaleStrcmp | ( | xsltLocale | locale, |
const xsltLocaleChar * | str1, | ||
const xsltLocaleChar * | str2 | ||
) |
xsltLocaleStrcmp: @locale: a locale identifier @str1: a string transformed with xsltStrxfrm @str2: a string transformed with xsltStrxfrm
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 423 of file xsltlocale.c.
Referenced by xsltDefaultSortFunction().
xsltLocale xsltNewLocale | ( | const xmlChar * | languageTag | ) |
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 82 of file xsltlocale.c.
Referenced by xsltDefaultSortFunction(), and xsltSortComp().
xsltLocaleChar * xsltStrxfrm | ( | xsltLocale | locale, |
const xmlChar * | string | ||
) |
xsltStrxfrm: @locale: locale created with xsltNewLocale @string: UTF-8 string to transform
Transforms a string according to locale. The transformed string must then be compared with xsltLocaleStrcmp and freed with xmlFree.
Returns the transformed string or NULL on error
Definition at line 360 of file xsltlocale.c.
Referenced by xsltComputeSortResultInternal().