m17nLocale(3m17n)

m17nLocale3m17n

- locale objects and api for them.

Usage

Typedefs

typedef struct MLocale MLocale
struct MLocale.

Functions

MPlist * mlanguage_list (void)
List 3-letter language codes. MSymbol mlanguage_code (MSymbol language, int len)
Get a language code. MPlist * mlanguage_name_list (MSymbol language, MSymbol target, MSymbol script, MSymbol territory)
Return the language names written in the specified language. MText * mlanguage_text (MSymbol language)
Return the language name written in that language. MPlist * mscript_list (void)
List script names. MPlist * mscript_language_list (MSymbol script)
List languages that use a specified script. MLocale * mlocale_set (int category, const char *name)
Set the current locale. MSymbol mlocale_get_prop (MLocale *locale, MSymbol key)
Get the value of a locale property. int mtext_ftime (MText *mt, const char *format, const struct tm *tm, MLocale *locale)
Format date and time. MText * mtext_getenv (const char *name)
Get an environment variable. int mtext_putenv (MText *mt)
Change or add an environment variable. int mtext_coll (MText *mt1, MText *mt2)
Compare two M-texts using the current locale.

Variables

MSymbol Miso639_1
MSymbol Miso639_2
MSymbol Mterritory
MSymbol Mmodifier
MSymbol Mcodeset

Detailed Description

Locale objects and API for them.

The m17n library represents locale related information as objects of type MLocale.

Typedef Documentation

typedef struct MLocale MLocale

struct MLocale. The structure MLocale is used to hold information about name, language, territory, modifier, codeset, and the corresponding coding system of locales.

The contents of this structure are implementation dependent. Its internal structure is concealed from application programs.

SEE ALSO

mlocale_get_prop()

Variable Documentation

MSymbol Miso639_1

MSymbol Miso639_2

MSymbol Mterritory

The symbol whose name is 'territory'.

MSymbol Mmodifier

The symbol whose name is 'modifier'.

MSymbol Mcodeset

The symbol whose name is 'codeset'.

Releases

8 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 7–12
  3. 13

Author

Generated automatically by Doxygen for The m17n Library from the source code.

From m17n-docs 1.8.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.