Eneboo - Documentación para desarrolladores
|
#include "libxslt.h"
#include <string.h>
#include <libxml/xmlmemory.h>
#include "xsltlocale.h"
#include "xsltutils.h"
'defines' | |
#define | IN_LIBXSLT |
#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) |
Funciones | |
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) |
#define IN_LIBXSLT |
#define XSLTMAX_ISO3166CNTRYLEN 8 |
#define XSLTMAX_ISO639LANGLEN 8 |
#define XSLTMAX_LANGTAGLEN (XSLTMAX_ISO639LANGLEN+1+XSLTMAX_ISO3166CNTRYLEN) |
void xsltFreeLocale | ( | xsltLocale | locale | ) |
xsltFreeLocale: : the locale to free
Frees a locale created with xsltNewLocale
void xsltFreeLocales | ( | void | ) |
xsltFreeLocales:
Cleanup function for the locale support on shutdown
int xsltLocaleStrcmp | ( | xsltLocale | locale, |
const xsltLocaleChar * | str1, | ||
const xsltLocaleChar * | str2 | ||
) |
xsltLocaleStrcmp: : a locale identifier : a string transformed with xsltStrxfrm : 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
xsltLocale xsltNewLocale | ( | const xmlChar * | languageTag | ) |
xsltNewLocale: : 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
xsltLocaleChar* xsltStrxfrm | ( | xsltLocale | locale, |
const xmlChar * | string | ||
) |
xsltStrxfrm: : locale created with xsltNewLocale : 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