Unicode::CharName(3)

πŸ’– NAME πŸ’–

ok so bestie, this is Unicode::CharName β€” a whole module whose entire personality is looking up Unicode character names. that's it, that's the vibe ✨ it's a User Contributed Perl Documentation page, and it's lowkey iconic.


🌸 SYNOPSIS 🌸

like, here's the whole thing in action:

use Unicode::CharName qw(uname ublock);
print uname(ord('%')), "\n";
print ublock(0x0300), "\n";

that's literally it. two functions, zero drama πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this module provides two functions named uname() and ublock(). two besties, both doing very important work 🫢

✨ uname() ✨

uname() returns the Unicode character name for the code you pass in β€” and that code has to be a number between 0 and 0x10FFFF. no cap, that's the range.

Unicode character names are written in upper-case ASCII letters, and they're strings that look exactly like these:

LATIN CAPITAL LETTER A
LATIN SMALL LETTER A WITH RING ABOVE
CJK UNIFIED IDEOGRAPH 7C80
HANGUL SYLLABLE PWILH

look at HANGUL SYLLABLE PWILH β€” main character energy honestly πŸ˜­πŸ‘‘

πŸŽ€ ublock() πŸŽ€

ublock() returns the name of the Unicode character block that the given character belongs to. like, which neighborhood your little character lives in 🏑


⭐ SEE ALSO ⭐

  • Unicode::String β€” go check it out bestie, iykyk

Copyright 1997,2005 Gisle Aas.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Name table extracted from the Unicode 4.1 Character Database. Copyright (c) 1991-2005 Unicode, Inc. All Rights reserved.


fr fr that's the whole page β€” go name some characters, you got this πŸ’œ

ok and finally the cute sign-off: this was perl v5.42.0, dated 2016-09-09, and the page is Unicode::CharName(3) β€” slay, periodt πŸŒˆπŸŽ€

πŸ“¦ where this page comes from