Re: Question about ICU Converter Explorer

Joshua Hadley <[email protected]> Wed, 21 Jul 2004 11:55:15 -0700
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
Many thanks for the tips. 'ulocdata_getExemplarSet' was the key thing I  
was missing (this is a really handy addition to ICU, by the way).

On the way to implementing this function, I ran into a couple of issues  
(also with 'uset_applyPattern') -- but they seem to be specific to  
ICU4C so I will take it up on the icu4c list (once I get my facts  
straight).

Thanks again for your kindness and speedy assistance.


Josh


On Jul 20, 2004, at 2:59 PM, George Rhoten wrote:

> If you want an example of how to achieve this result, you can look at  
> the
> source code directly.
>
> http://oss.software.ibm.com/cvs/icu/~checkout~/icuapps/convexp/ 
> convexp.cpp
>
> The printLanguages function will be of interest to you from that file.
> Specifically, you will probably be interested in how it uses these two
> functions: ucnv_getUnicodeSet from ucnv.h and ulocdata_getExemplarSet  
> from
> ulocdata.h.  You will need to use the functions from uset.h to  
> establish
> the link between codepages and languages.
>
> You could also use the help link at the top of each page, which tells  
> you
> which functions where used to get that list of languages.  In this  
> case,
> it says it in the last item at the bottom of the Converter Explorer  
> help
> page.
>
> George Rhoten
> IBM Globalization Center of Competency/ICU  San José, CA, USA
> ICU main website: http://oss.software.ibm.com/icu/index.html