m17nLocale_-_Lo - - Locale objects and API for them.
Contents
Copyright
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License <http://www.gnu.org/licenses/fdl.html>.
Version 1.8.4 Mon Sep 25 2023 m17nLocale(3m17n)
Detailed Description
Locale objects and API for them.
The m17n library represents locale related information as objects of type MLocale.
Name
m17nLocale_-_Lo - - Locale objects and API for them.
Synopsis
Typedefs
typedef struct MLocaleMLocale
struct MLocale.
FunctionsMPlist * 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 McodesetTypedef Documentation
typedefstructMLocaleMLocale
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.
SEEALSOmlocale_get_prop()Variable Documentation
MSymbolMiso639_1MSymbolMiso639_2MSymbolMterritory
The symbol whose name is 'territory'.
MSymbolMmodifier
The symbol whose name is 'modifier'.
MSymbolMcodeset
The symbol whose name is 'codeset'.
