BSD Ports

textproc/p5-Unicode-CaseFold 1.01nb9 NetBSD

Unicode case-folding for case-insensitive lookups

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
textproc
Package size
10.8 KiB, 23.7 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDtextproc/p5-Unicode-CaseFold1.01nb9
FreeBSDtextproc/p5-Unicode-CaseFold1.01
DragonFlytextproc/p5-Unicode-CaseFold1.01
HardenedBSDtextproc/p5-Unicode-CaseFold1.01
GhostBSDtextproc/p5-Unicode-CaseFold1.01

Install

Binary package:

pkgin install p5-Unicode-CaseFold

From pkgsrc:

cd /usr/pkgsrc/textproc/p5-Unicode-CaseFold && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.01nb9
NetBSD 10.1 aarch641.01nb8
SmartOS / illumos x86_641.01nb9
macOS 15 arm641.01nb9

Dependencies

Run dependencies 1

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0