/haiku/src/system/libroot/add-ons/icu/ |
H A D | ICUTimeConversion.cpp | 126 UErrorCode icuStatus = U_ZERO_ERROR; in TZSet() local 127 fTimeZone->getOffset(nowMillis, FALSE, rawOffset, dstOffset, icuStatus); in TZSet() 128 if (!U_SUCCESS(icuStatus)) in TZSet() 215 UErrorCode icuStatus = U_ZERO_ERROR; in _FillTmValues() local 216 GregorianCalendar calendar(*icuTimeZone, fTimeData.ICULocale(), icuStatus); in _FillTmValues() 217 if (!U_SUCCESS(icuStatus)) in _FillTmValues() 220 calendar.setTime(1000 * (UDate)*inTime, icuStatus); in _FillTmValues() 221 if (!U_SUCCESS(icuStatus)) in _FillTmValues() 224 tmOut->tm_sec = calendar.get(UCAL_SECOND, icuStatus); in _FillTmValues() 225 if (!U_SUCCESS(icuStatus)) in _FillTmValues() [all …]
|
H A D | ICUCtypeData.cpp | 68 UErrorCode icuStatus = U_ZERO_ERROR; in SetTo() local 84 icuStatus = U_ZERO_ERROR; in SetTo() 86 = ucnv_getNextUChar(converter, &source, source + 1, &icuStatus); in SetTo() 91 if (U_SUCCESS(icuStatus)) { in SetTo() 118 icuStatus = U_ZERO_ERROR; in SetTo() 119 ucnv_fromUChars(converter, buffer, 1, &lowerChar, 1, &icuStatus); in SetTo() 120 if (U_SUCCESS(icuStatus)) in SetTo() 124 icuStatus = U_ZERO_ERROR; in SetTo() 125 ucnv_fromUChars(converter, buffer, 1, &upperChar, 1, &icuStatus); in SetTo() 126 if (U_SUCCESS(icuStatus)) in SetTo() [all …]
|
H A D | ICUCategoryData.cpp | 88 UErrorCode icuStatus = U_ZERO_ERROR; in _ConvertUnicodeStringToLocaleconvEntry() local 90 string.length(), &icuStatus); in _ConvertUnicodeStringToLocaleconvEntry() 91 if (!U_SUCCESS(icuStatus)) { in _ConvertUnicodeStringToLocaleconvEntry() 92 switch (icuStatus) { in _ConvertUnicodeStringToLocaleconvEntry() 135 UErrorCode icuStatus = U_ZERO_ERROR; in _GetConverter() local 136 UConverter* icuConverter = ucnv_open(fGivenCharset, &icuStatus); in _GetConverter() 141 icuStatus = U_ZERO_ERROR; in _GetConverter() 143 &icuStatus); in _GetConverter() 144 if (!U_SUCCESS(icuStatus)) { in _GetConverter() 148 icuStatus = U_ZERO_ERROR; in _GetConverter() [all …]
|
H A D | ICUCollateData.cpp | 46 UErrorCode icuStatus = U_ZERO_ERROR; in SetTo() local 48 fCollator = Collator::createInstance(fLocale, icuStatus); in SetTo() 49 if (!U_SUCCESS(icuStatus)) in SetTo() 90 UErrorCode icuStatus = U_ZERO_ERROR; in Strcoll() local 97 result = fCollator->compare(aIter, bIter, icuStatus); in Strcoll() 107 result = fCollator->compare(unicodeA, unicodeB, icuStatus); in Strcoll() 110 if (!U_SUCCESS(icuStatus)) in Strcoll() 175 UErrorCode icuStatus = U_ZERO_ERROR; in Wcscoll() local 176 result = fCollator->compare(unicodeA, unicodeB, icuStatus); in Wcscoll() 178 if (!U_SUCCESS(icuStatus)) in Wcscoll() [all …]
|
H A D | ICUNumericData.cpp | 50 UErrorCode icuStatus = U_ZERO_ERROR; in SetTo() local 52 NumberFormat::createInstance(locale, UNUM_DECIMAL, icuStatus)); in SetTo() 53 if (!U_SUCCESS(icuStatus)) in SetTo()
|
H A D | ICUTimeData.cpp | 76 UErrorCode icuStatus = U_ZERO_ERROR; in SetTo() local 77 DateFormatSymbols formatSymbols(ICULocaleForStrings(), icuStatus); in SetTo() 78 if (!U_SUCCESS(icuStatus)) in SetTo() 271 UErrorCode icuStatus = U_ZERO_ERROR; in ICULocaleForStrings() local 274 icuStatus); in ICULocaleForStrings() 275 if (U_SUCCESS(icuStatus) && strcasecmp(stringsValue, "messages") == 0) in ICULocaleForStrings()
|
H A D | ICUMonetaryData.cpp | 51 UErrorCode icuStatus = U_ZERO_ERROR; in SetTo() local 54 NumberFormat::createCurrencyInstance(locale, icuStatus)); in SetTo() 55 if (!U_SUCCESS(icuStatus)) in SetTo()
|
/haiku/src/kits/locale/ |
H A D | RelativeDateTimeFormat.cpp | 57 UErrorCode icuStatus = U_ZERO_ERROR; in BRelativeDateTimeFormat() local 59 fFormatter = new RelativeDateTimeFormatter(icuLocale, icuStatus); in BRelativeDateTimeFormat() 65 fCalendar = new GregorianCalendar(icuStatus); in BRelativeDateTimeFormat() 71 if (!U_SUCCESS(icuStatus)) in BRelativeDateTimeFormat() 81 UErrorCode icuStatus = U_ZERO_ERROR; in BRelativeDateTimeFormat() local 83 fFormatter = new RelativeDateTimeFormatter(icuLocale, icuStatus); in BRelativeDateTimeFormat() 89 fCalendar = new GregorianCalendar(icuStatus); in BRelativeDateTimeFormat() 95 if (!U_SUCCESS(icuStatus)) in BRelativeDateTimeFormat() 129 UErrorCode icuStatus = U_ZERO_ERROR; in Format() local 130 fCalendar->setTime((UDate)currentTime * 1000, icuStatus); in Format() [all …]
|
H A D | TimeUnitFormat.cpp | 52 UErrorCode icuStatus = U_ZERO_ERROR; in BTimeUnitFormat() local 60 icuStatus); in BTimeUnitFormat() 66 if (!U_SUCCESS(icuStatus)) in BTimeUnitFormat() 77 UErrorCode icuStatus = U_ZERO_ERROR; in BTimeUnitFormat() local 85 icuStatus); in BTimeUnitFormat() 91 if (!U_SUCCESS(icuStatus)) in BTimeUnitFormat() 123 UErrorCode icuStatus = U_ZERO_ERROR; in Format() local 125 = new TimeUnitAmount((double)value, skUnitMap[unit], icuStatus); in Format() 128 if (!U_SUCCESS(icuStatus)) { in Format() 137 fFormatter->format(formattable, unicodeResult, pos, icuStatus); in Format() [all …]
|
H A D | DurationFormat.cpp | 48 UErrorCode icuStatus = U_ZERO_ERROR; in BDurationFormat() local 49 fCalendar = new GregorianCalendar(icuStatus); in BDurationFormat() 64 UErrorCode icuStatus = U_ZERO_ERROR; in BDurationFormat() local 65 fCalendar = new GregorianCalendar(icuStatus); in BDurationFormat() 128 UErrorCode icuStatus = U_ZERO_ERROR; in Format() local 129 fCalendar->setTime((UDate)startValue / 1000, icuStatus); in Format() 130 if (!U_SUCCESS(icuStatus)) in Format() 137 = fCalendar->fieldDifference(stop, skUnitMap[unit], icuStatus); in Format() 138 if (!U_SUCCESS(icuStatus)) in Format()
|
H A D | LocaleRoster.cpp | 258 UErrorCode icuStatus = U_ZERO_ERROR; in GetAvailableTimeZones() local 259 int32 count = zoneList->count(icuStatus); in GetAvailableTimeZones() 260 if (U_SUCCESS(icuStatus)) { in GetAvailableTimeZones() 262 const char* zoneID = zoneList->next(NULL, icuStatus); in GetAvailableTimeZones() 263 if (zoneID == NULL || !U_SUCCESS(icuStatus)) { in GetAvailableTimeZones() 286 UErrorCode icuStatus = U_ZERO_ERROR; in GetAvailableTimeZonesWithRegionInfo() local 289 UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, icuStatus); in GetAvailableTimeZonesWithRegionInfo() 291 int32 count = zoneList->count(icuStatus); in GetAvailableTimeZonesWithRegionInfo() 292 if (U_SUCCESS(icuStatus)) { in GetAvailableTimeZonesWithRegionInfo() 294 const char* zoneID = zoneList->next(NULL, icuStatus); in GetAvailableTimeZonesWithRegionInfo() [all …]
|