U_CAPI UResourceBundle* U_EXPORT2 ures_open (const char* path, const char* locale, UErrorCode* status)
Opens a UResourceBundle, from which users can extract strings by using
their corresponding keys
Documentation
Opens a UResourceBundle, from which users can extract strings by using
their corresponding keys.
Note that the caller is responsible of calling ures_close on each succesfully
opened resource bundle.
- Returns:
- : a newly allocated resource bundle.
- Parameters:
- path - : string containing the full path pointing to the directory
where the resources reside (should end with a directory
separator.
e.g. "/usr/resource/my_app/resources/" on a Unix system
if NULL will use the system's current data directory
locale - : specifies the locale for which we want to open the resource
if NULL will use the default locale
status - : fills in the outgoing error code.
The UErrorCode err parameter is used to return status information to the user. To
check whether the construction succeeded or not, you should check the value of
U_SUCCESS(err). If you wish more detailed information, you can check for
informational error results which still indicate success. U_USING_FALLBACK_ERROR
indicates that a fall back locale was used. For example, 'de_CH' was requested,
but nothing was found there, so 'de' was used. U_USING_DEFAULT_ERROR indicates that
the default locale data was used; neither the requested locale nor any of its
fall back locales could be found.
- See Also:
- ures_close
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de