/* open the resource bundle and get the display name string */
rb=ures_open(nullptr, displayLocale, pErrorCode); if(U_FAILURE(*pErrorCode)) { return 0;
}
/* use the internal name as the key */
name=ures_getStringByKey(rb, cnv->sharedData->staticData->name, &length, &localStatus);
ures_close(rb);
if(U_SUCCESS(localStatus)) { /* copy the string */ if (*pErrorCode == U_ZERO_ERROR) {
*pErrorCode = localStatus;
}
u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR);
} else { /* convert the internal name into a Unicode string */
length=(int32_t)uprv_strlen(cnv->sharedData->staticData->name);
u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapacity));
} return u_terminateUChars(displayName, displayNameCapacity, length, pErrorCode);
}
#endif
/* * Hey, Emacs, please set the following: * * Local Variables: * indent-tabs-mode: nil * End: *
*/
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
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.