UObject*
ICUResourceBundleFactory::handleCreate(const Locale& loc, int32_t /* kind */, const ICUService* /* service */, UErrorCode& status) const
{ if (U_SUCCESS(status)) { // _bundleName is a package name // and should only contain invariant characters // ??? is it always true that the max length of the bundle name is 19? // who made this change? -- dlf char pkg[20];
int32_t length;
length = _bundleName.extract(0, INT32_MAX, pkg, static_cast<int32_t>(sizeof(pkg)), US_INV); if (length >= static_cast<int32_t>(sizeof(pkg))) { return nullptr;
} returnnew ResourceBundle(pkg, loc, status);
} return nullptr;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.