m17nLocale(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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_1
  • MSymbol Miso639_2
  • MSymbol Mterritory
  • MSymbol Mmodifier
  • MSymbol 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 (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