proposal: ures_openAvailableLocales

"Steven R. Loomis" <[email protected]> Mon, 20 Sep 2004 22:48:10 -0700
Newsgroups gmane.comp.lib.icu.c++.support,gmane.comp.lib.icu.general
Message-ID <[email protected]>
Date: 9/20/2004
Expires: 9/27/2004

Pursuant to jitterbug 3591 and other needs, I'm adding an API for 
getting a list of resources out of an arbitrary bundle or tree.

It will load a resource bundle list of the same format as the 
'res_index'  used for ICU's main locales, or collation tree.

Note: as with ICU's own data, the res_index should not necessarily 
contain all locales which physically exist within the bundle, but 
should exclude special locales such as 'root', 'res_index' itself, and 
alias locales like 'iw'.

/**
  * Create a string enumerator, owned by the caller, of all locales 
located within
  * the specified resource tree as determined by the special locale 
'res_index'.
  * See ICU's base locale data for an example res_index file
  * @param path path to the tree, such as (NULL) or U_ICUDATA_ALIAS or  
or "ICUDATA-coll"
  * This call is similar to uloc_getAvailable().
  * @param status error code
  * @draft ICU 3.2
  */
U_DRAFT UEnumeration* U_EXPORT2
ures_openAvailableLocales(const char *path, UErrorCode *status);

_______________________________________________
[email protected] - icu4c-support mailing list
To Un/Subscribe:
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu4c-support