MARC::...t::Code(3pm)
β¨ NAME β¨
MARC::Charset::Code β bestie, this lil object is a MARC-8/UTF-8 mapping. That's the whole vibe. π
π¦ SYNOPSIS π¦
Not a single line, bestie. The synopsis said nothing. She's mysterious like that. Periodt. β¨
π DESCRIPTION π
Okay so picture this: every single mapping from a MARC-8 value to a UTF-8 value gets its own MARC::Charset::Code object, and all those objects chill together inside a MARC::Charset::Table. That's it. That's the whole concept. Each code point is a lil main character living in the table. π
πΈ METHODS πΈ
new()
The constructor. She builds the object. That's her job, and she ate. π₯
name()
A descriptive name for the code point. Like a lil name tag at a party. π«Ά
marc()
A string representing the MARC-8 bytes codes.
ucs()
A string representing the UCS code point in hex. Hex girlie representation, slay. β¨
charset_code()
The MARC-8 character set code.
is_combining()
Returns true/false to tell you if the character is a combining character. Vibe check: combining or not combining. π
marc_left_half()
If the character is the right half of a "double diacritic", this returns a hex string representing the MARC-8 value of the left half. So she goes and fetches her other half. Not me crying over diacritics. π
marc_right_half()
If the character is the left half of a "double diacritic", this returns a hex string representing the MARC-8 value of the right half. Matching set, no cap. π
to_string()
A stringified version of the object suitable for pretty printing. She's giving presentation-ready. π
char_value()
Returns the unicode character. Essentially just a helper around ucs() β like, it's ucs()'s lil sidekick, but make it fashion. π§
g0_marc_value()
The string representing the MARC-8 encoding for lookup.
marc_value()
The string representing the MARC-8 encoding for output.
charset_name()
Returns the name of the character set, instead of the code. Name over numbers, always. π
to_string()
Returns a stringified version of the object. (Yes, bestie, she showed up on the list twice. Iconic behaviour, honestly. π)
marc8_hash_code()
Returns a hash code for this Code object so you can look the object up using MARC8. First portion is the character set code and the second is the MARC-8 value. Two-part banger. π€
utf8_hash_code()
Returns a hash code for uniquely identifying a Code by it's UCS value. Unique queen behaviour. π
default_charset_group
Returns 'G0' or 'G1', indicating where the character is typically used in the MARC-8 environment. Pick a lane, bestie β G0 or G1. β¨
get_marc8_escape
Returns an escape sequence to move to the Code from another marc-8 character set. Exit sequence acquired, we're leaving. πββοΈπ¨
charset_value
Returns the charset value, not the hex sequence. Value, not hex. Read it again if you have to, bestie. π
Reminder for the girlies: this page is theMARC::Charset::Codemanual,3pmsection, from the User Contributed Perl Documentation. Don't @ me. π
Okay that's the whole page, love u, mwah! π This was perl v5.34.0, dated 2022-08-02, and she's still serving. Byeeee! πβ¨π¦
π¦ where this page comes from
- debian bookworm: libmarc-charset-perl 1.35-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmarc-charset-perl 1.35-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmarc-charset-perl 1.35-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmarc-charset-perl 1.35-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmarc-charset-perl 1.35-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms