This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Query on UTF-32 encodings for letters
Tom Tromey wrote:
Robert> Looks to me like I have to spin my own here :-(
For gcj we have a perl script (gcc/java/gen-table.pl) that reads the
unicode database and writes out C code that is used by the lexer. We
did it by hand because we wanted to ensure that our use matched what
is in the current java spec. I don't know what Ada needs, but this
approach has worked well for us. We use something similar for libgcj;
it is more complicated, though, since the library needs more
information than the compiler.
Yes, generating the tables is easy (they are in fact quoted in
the relevant Ada AI, as evidence that the tables are not too
large, though the case conversion one is pretty huge -- that's
not one that C and Java have to worry about). I just wondered
if there might be something on the shelf before I put something
there myself.
Thanks for the comment. I gather that for Java, iswalpha is
also not quite right. We will probably end up with our own
stuff for Ada as well.