Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 1999 20:37:37 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        adam@whizkidtech.net (G. Adam Stanislav)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: wc* routines
Message-ID:  <199905060337.UAA07378@bubba.whistle.com>
In-Reply-To: <19990505214934.B217@whizkidtech.net> from "G. Adam Stanislav" at "May 5, 99 09:49:34 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
G. Adam Stanislav writes:
> I will also need to get some input on some "philosophical" questions. Namely,
> I will need to build several tables for the wctype.h functionality. The thing

Not sure if this is completely relevant or not, but in kaffe we
face the same problem storing the tables for Unicode to implement
Character.isDigit(), etc. One developer came up with a nice
compression scheme for this information and a perl script to generate
the tables. This is nice because the tables don't end up taking up
tons of space.

If you're interested, see

  http://www.kaffe.org/cgi-bin/cvsweb.cgi/kaffe/developers/
  http://www.kaffe.org/cgi-bin/cvsweb.cgi/kaffe/FAQ/FAQ.unicode

for the perl scripts and description, and the source for
java/lang/Character.java (which for some reason is missing from
the web site cvs thing).

In C you could use 'file2c' to store the tables in libc or wherever.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905060337.UAA07378>