Re: StringPrep in ICU4JNI?

Mikhail Zabaluev <[email protected]> Sat, 12 Feb 2005 03:26:12 +0300
Newsgroups gmane.comp.lib.icu.general
Organization ALT Linux Team
Message-ID <[email protected]>
В Птн, 11/02/2005 в 11:07 -0800, Ram Viswanadha пишет:
> The reason there is no StringPrep in ICU4JNI is that ICU4J already has 
> pure JAVA implementation.

Isn't that considerably slower than the ICU4JNI equivalent, as stated on
the site? I'm particularly interested in normalization performance.

> We usually implement a JNI wrapper if a 
> service is not available in JAVA for a particular release.
> 
> That said, implementing a JNI wrapper should not be hard. You need to 
> write wrappers around usprep_open, usprep_close and usprep_prepare.

Thank you.
I noticed one discrepancy: the С++ version opens a profile given a
pathname while the Java version accepts an arbitrary InputStream. Should
the ICU4JNI API mirror that of ICU4J, or different constructors/methods
are acceptable?