From d291df1e3f703e3724c6d1f0e4bf796ba44b546e Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 9 Jul 2004 02:08:07 +0000 Subject: Add support for multibyte characters. The challenge here was to use data structures that scale better with large character sets, instead of arrays indexed by character value: - Sets of characters to delete/squeeze are stored in a new "cset" structure, which is implemented as a splay tree of extents. This structure has the ability to store character classes (ala wctype(3)), but this is not currently fully utilized. - Mappings between characters are stored in a new "cmap" structure, which is also a splay tree. - The parser no longer builds arrays containing all the characters in a particular class; instead, next() determines them on-the-fly using nextwctype(3). --- usr.bin/tr/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/tr/Makefile') diff --git a/usr.bin/tr/Makefile b/usr.bin/tr/Makefile index 7124942..00bdd8d 100644 --- a/usr.bin/tr/Makefile +++ b/usr.bin/tr/Makefile @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= tr -SRCS= str.c tr.c +SRCS= cmap.c cset.c str.c tr.c .include -- cgit v1.1