mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-12614 DateFormatSymbols resource bundle data loading updated to use the ResourceSink: fixed broken build.
X-SVN-Rev: 38962
This commit is contained in:
parent
3928bf64d7
commit
f6b7511c46
1 changed files with 4 additions and 4 deletions
|
@ -2107,10 +2107,10 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
|
|||
// Iterate over the resource bundle data following the fallbacks through different calendar types
|
||||
UnicodeString calendarType((type != NULL && *type != '\0')? type : gGregorianTag, -1, US_INV);
|
||||
while (!calendarType.isBogus()) {
|
||||
int32_t calendarTypeSize = calendarType.length();
|
||||
char calendarTypeCArray[calendarTypeSize + 1];
|
||||
calendarType.extract(0, calendarTypeSize, calendarTypeCArray, calendarTypeSize, US_INV);
|
||||
calendarTypeCArray[calendarTypeSize] = '\0';
|
||||
CharString calendarTypeBuffer;
|
||||
calendarTypeBuffer.appendInvariantChars(calendarType, status);
|
||||
if (U_FAILURE(status)) { return; }
|
||||
const char *calendarTypeCArray = calendarTypeBuffer.data();
|
||||
|
||||
// Enumerate this calendar type. If the calendar is not found fallback to gregorian
|
||||
UErrorCode oldStatus = status;
|
||||
|
|
Loading…
Add table
Reference in a new issue