Logo Search packages:      
Sourcecode: icu version File versions  Download package

UnicodeString ResourceBundle::getStringEx ( int32_t  index,
UErrorCode status 
) const

Returns the string in a given resource at the specified index.

Parameters:
index an index to the wanted string.
status fills in the outgoing error code
Returns:
an UnicodeString object. If there is an error, string is bogus ICU 2.0

Definition at line 326 of file resbund.cpp.

References TRUE.

Referenced by Transliterator::getDisplayName(), NewResourceBundleTest::TestConstruction(), ResourceBundleTest::TestConstruction(), NewResourceBundleTest::testTag(), and ResourceBundleTest::testTag().

                                                                                  {
    int32_t len = 0;
    const UChar* r = ures_getStringByIndex(fResource, indexS, &len, &status);
    return UnicodeString(TRUE, r, len);
}


Generated by  Doxygen 1.6.0   Back to index