FST building precaution

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

FST building precaution


following comment is mentioned in

 "Input values (keys). These must be provided to Builder in Unicode code
point (UTF8 or UTF32) sorted order. Note that sorting by Java's
String.compareTo, which is UTF16 sorted order, is not correct and can lead
to exceptions while building the FST"

Can someone please suggest how to achieve this?