/usr/share/doc/libxslt-devel/html
NameSizeModeActions
book1.html68210644editdlrm
home.png6540644editdlrm
index.html68210644editdlrm
left.png4590644editdlrm
libxslt-attributes.html93560644editdlrm
libxslt-documents.html164470644editdlrm
libxslt-extensions.html496180644editdlrm
libxslt-extra.html101790644editdlrm
libxslt-functions.html140300644editdlrm
libxslt-imports.html128460644editdlrm
libxslt-keys.html112610644editdlrm
libxslt-lib.html68210644editdlrm
libxslt-namespaces.html156210644editdlrm
libxslt-numbersInternals.html77120644editdlrm
libxslt-pattern.html167060644editdlrm
libxslt-preproc.html87310644editdlrm
libxslt-security.html201510644editdlrm
libxslt-templates.html208950644editdlrm
libxslt-transform.html513230644editdlrm
libxslt-variables.html231580644editdlrm
libxslt-xslt.html77900644editdlrm
libxslt-xsltexports.html67350644editdlrm
libxslt-xsltInternals.html1097310644editdlrm
libxslt-xsltlocale.html114310644editdlrm
libxslt-xsltutils.html507800644editdlrm
right.png4720644editdlrm
up.png4060644editdlrm
Edit: /usr/share/doc/libxslt-devel/html/libxslt-xsltlocale.html (11431B)
Module xsltlocale from libxslt
Action against software patentsGNOME2 LogoW3C logoRed Hat Logo
Made with Libxslt Logo

The XSLT C library for GNOME

Module xsltlocale from libxslt

API Menu
Related links
API Indexes

Interfaces for locale handling. Needed for language dependent sorting.

Table of Contents

#define XSLT_LOCALE_NONE
#define XSLT_LOCALE_POSIX
#define XSLT_LOCALE_WINAPI
Typedef void * xsltLocale
Typedef xmlChar xsltLocaleChar
void	xsltFreeLocale			(xsltLocale locale)
void	xsltFreeLocales			(void)
int	xsltLocaleStrcmp		(xsltLocale locale, 
const xsltLocaleChar * str1,
const xsltLocaleChar * str2)
xsltLocale	xsltNewLocale		(const xmlChar * languageTag)
xsltLocaleChar *	xsltStrxfrm	(xsltLocale locale, 
const xmlChar * string)

Description

Macro: XSLT_LOCALE_NONE

#define XSLT_LOCALE_NONE

Macro indicating that there's no extended locale support

Macro: XSLT_LOCALE_POSIX

#define XSLT_LOCALE_POSIX

Macro indicating to use POSIX locale extensions

Macro: XSLT_LOCALE_WINAPI

#define XSLT_LOCALE_WINAPI

Macro indicating to use WinAPI for extended locale support

Function: xsltFreeLocale

void	xsltFreeLocale			(xsltLocale locale)

Frees a locale created with xsltNewLocale

locale:the locale to free

Function: xsltFreeLocales

void	xsltFreeLocales			(void)

Cleanup function for the locale support on shutdown

Function: xsltLocaleStrcmp

int	xsltLocaleStrcmp		(xsltLocale locale, 
const xsltLocaleChar * str1,
const xsltLocaleChar * str2)

Compares two strings transformed with xsltStrxfrm

locale:a locale identifier
str1:a string transformed with xsltStrxfrm
str2:a string 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

Function: xsltNewLocale

xsltLocale	xsltNewLocale		(const xmlChar * languageTag)

Creates a new locale of an opaque system dependent type based on the language tag.

languageTag:RFC 3066 language tag
Returns:the locale or NULL on error or if no matching locale was found

Function: xsltStrxfrm

xsltLocaleChar *	xsltStrxfrm	(xsltLocale locale, 
const xmlChar * string)

Transforms a string according to locale. The transformed string must then be compared with xsltLocaleStrcmp and freed with xmlFree.

locale:locale created with xsltNewLocale
string:UTF-8 string to transform
Returns:the transformed string or NULL on error

Daniel Veillard