Home
last modified time | relevance | path

Searched refs:_isoCode (Results 1 – 2 of 2) sorted by relevance

/external/cronet/third_party/icu/source/i18n/
Dcurrunit.cpp28 CurrencyUnit::CurrencyUnit(ConstChar16Ptr _isoCode, UErrorCode& ec) { in CurrencyUnit() argument
35 if (U_FAILURE(ec) || _isoCode == nullptr || _isoCode[0] == 0) { in CurrencyUnit()
37 } else if (_isoCode[1] == 0 || _isoCode[2] == 0) { in CurrencyUnit()
40 } else if (!uprv_isInvariantUString(_isoCode, 3)) { in CurrencyUnit()
46 isoCode[i] = u_asciiToUpper(_isoCode[i]); in CurrencyUnit()
58 CurrencyUnit::CurrencyUnit(StringPiece _isoCode, UErrorCode& ec) { in CurrencyUnit() argument
63 if (_isoCode.length() != 3 || uprv_memchr(_isoCode.data(), 0, 3) != nullptr) { in CurrencyUnit()
66 } else if (!uprv_isInvariantString(_isoCode.data(), 3)) { in CurrencyUnit()
73 isoCodeBuffer[i] = uprv_toupper(_isoCode.data()[i]); in CurrencyUnit()
/external/icu/icu4c/source/i18n/
Dcurrunit.cpp28 CurrencyUnit::CurrencyUnit(ConstChar16Ptr _isoCode, UErrorCode& ec) { in CurrencyUnit() argument
35 if (U_FAILURE(ec) || _isoCode == nullptr || _isoCode[0] == 0) { in CurrencyUnit()
37 } else if (_isoCode[1] == 0 || _isoCode[2] == 0) { in CurrencyUnit()
40 } else if (!uprv_isInvariantUString(_isoCode, 3)) { in CurrencyUnit()
46 isoCode[i] = u_asciiToUpper(_isoCode[i]); in CurrencyUnit()
58 CurrencyUnit::CurrencyUnit(StringPiece _isoCode, UErrorCode& ec) { in CurrencyUnit() argument
63 if (_isoCode.length() != 3 || uprv_memchr(_isoCode.data(), 0, 3) != nullptr) { in CurrencyUnit()
66 } else if (!uprv_isInvariantString(_isoCode.data(), 3)) { in CurrencyUnit()
73 isoCodeBuffer[i] = uprv_toupper(_isoCode.data()[i]); in CurrencyUnit()