m17nLocale(3m17n)
π m17nLocale β the m17n Library's locale page π
okay bestie, buckle up, we're reading the m17nLocale(3m17n) man page from The m17n Library and honestly? it's giving "i contain multitudes." this is the page about locale objects and the API for them β m17nLocale_-_Lo β and yes the title is a little cursed, we don't ask questions, we just vibe. πΈ
β¨ NAME β¨
m17nLocale_-_Lo β locale objects and API for them. that's it, that's the whole job. π
β¨ SYNOPSIS β¨
𧬠Typedefs
typedef struct MLocale MLocaleβ the struct, the legend,struct MLocale. π
π οΈ Functions
MPlist * mlanguage_list (void)β list those 3-letter language codes, bestie.MSymbol mlanguage_code (MSymbol language, int len)β grab a language code.MPlist * mlanguage_name_list (MSymbol language, MSymbol target, MSymbol script, MSymbol territory)β returns language names, but written in the language you asked for.MText * mlanguage_text (MSymbol language)β the language's name, written in that very language. self-referential queen. πMPlist * mscript_list (void)β list script names.MPlist * mscript_language_list (MSymbol script)β all the languages that use a given script.MLocale * mlocale_set (int category, const char *name)β sets 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, slay.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_1MSymbol Miso639_2MSymbol MterritoryMSymbol MmodifierMSymbol Mcodeset
π Detailed Description π
locale objects! and the API for them!! that's the tagline, no notes.
so here's the tea: the m17n library represents all that locale-related info as objects of type MLocale. it's objects all the way down, periodt. π¦
π Typedef Documentation π
π§ typedef struct MLocale MLocale
struct MLocale β bestie, this struct is where all the locale info lives: the name, the language, the territory, the modifier, the codeset, and the corresponding coding system of locales. she's holding everything. π
β οΈ heads up: the contents of this structure are implementation dependent, and its internal structure is concealed from application programs. so likeβ¦ don't go poking around in there, she's private. π
SEE ALSO
mlocale_get_prop()
π Variable Documentation π
β MSymbol Miso639_1
no description given in the source, she's mysterious like that. β¨
β MSymbol Miso639_2
also no description given. iconic, honestly. π
β MSymbol Mterritory
the symbol whose name is 'territory'.
β MSymbol Mmodifier
the symbol whose name is 'modifier'.
β MSymbol Mcodeset
the symbol whose name is 'codeset'.
π Author π
generated automatically by Doxygen for The m17n Library, straight from the source code. not a human, just vibes and a parser. π
π 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>.
okay that's the whole page, you ate it, no crumbs. π β¨
Version 1.8.4 β Mon Sep 25 2023 π«Ά that's the version and the date, mwah, love u, go set a locale bestie π
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms