Path to this page:
./
textproc/p5-Unicode-CaseFold,
Unicode case-folding for case-insensitive lookups
Branch: CURRENT,
Version: 1.01nb7,
Package name: p5-Unicode-CaseFold-1.01nb7,
Maintainer: pkgsrc-usersWhat is Case-Folding?
In non-Unicode contexts, a common idiom to compare two strings
case-insensitively is lc($this) eq lc($that). Before comparing two strings
we normalize them to an all-lowercase version. "Hello", "HELLO", and
"HeLlO" all have the same lowercase form ("hello"), so it doesn't matter
which one we start with; they are all equal to one another after lc.
In Unicode, things aren't so simple. A Unicode character might have
mappings for uppercase, lowercase, and titlecase, and the lowercase mapping
of the uppercase mapping of a given character might not be the character
that you started with! For example lc(uc("\N{LATIN SMALL LETTER SHARP S"))
is "ss", not the eszett we started off with! Case-folding is a part of the
Unicode standard that allows any two strings that differ from one another
only by case to map to the same "case-folded" form, even when those strings
include characters with complex case-mappings.
Required to run:[
lang/perl5]
Required to build:[
devel/p5-Module-Build]
Master sites: (Expand)
Filesize: 66.708 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-Unicode-CaseFold-1.01nb7
- (2023-07-06) Updated to version: p5-Unicode-CaseFold-1.01nb6
- (2022-06-28) Updated to version: p5-Unicode-CaseFold-1.01nb5
- (2021-05-25) Updated to version: p5-Unicode-CaseFold-1.01nb4
- (2020-09-01) Updated to version: p5-Unicode-CaseFold-1.01nb3
- (2019-08-11) Updated to version: p5-Unicode-CaseFold-1.01nb2
CVS history: (Expand)