2015-11-04 02:59:17 +01:00
|
|
|
$NetBSD: distinfo,v 1.2 2015/11/04 01:59:54 agc Exp $
|
Import p5-Unicode-CaseFold-1.00 as textproc/p5-Unicode-CaseFold.
What 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.
2015-05-10 04:24:03 +02:00
|
|
|
|
|
|
|
SHA1 (Unicode-CaseFold-1.00.tar.gz) = 887dc77575f34ad8a03504dac216f0932d8ad6c9
|
|
|
|
RMD160 (Unicode-CaseFold-1.00.tar.gz) = 146647abc6d6de71f001348e43929d15d600092f
|
2015-11-04 02:59:17 +01:00
|
|
|
SHA512 (Unicode-CaseFold-1.00.tar.gz) = e947129b05759f1f0d3efa7b8793f47dd0ed4e3c8f105523badecc58d8e9a7c4d79984c172bd4114fe6462adb45500fbebffb1e4ecbf0427a54d535cfb55874d
|
Import p5-Unicode-CaseFold-1.00 as textproc/p5-Unicode-CaseFold.
What 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.
2015-05-10 04:24:03 +02:00
|
|
|
Size (Unicode-CaseFold-1.00.tar.gz) = 65145 bytes
|