Lines Matching refs:ec
1838 UErrorCode ec = U_ZERO_ERROR;
1845 Calendar* cal = Calendar::createInstance(Locale::createFromName(req), ec);
1846 if (U_FAILURE(ec)) {
1847 dataerrln("FAIL: Calendar::createInstance failed - %s", u_errorName(ec));
1849 valid = cal->getLocale(ULOC_VALID_LOCALE, ec);
1850 actual = cal->getLocale(ULOC_ACTUAL_LOCALE, ec);
1851 if (U_FAILURE(ec)) {
1857 ec = U_FILE_ACCESS_ERROR;
1858 if (cal->getLocale(ULOC_VALID_LOCALE, ec).getName()[0] != 0) {
1861 ec = U_ZERO_ERROR;
1869 NumberFormat* nf = NumberFormat::createInstance(Locale::createFromName(req), ec);
1870 if (U_FAILURE(ec)) {
1871 dataerrln("FAIL: NumberFormat::createInstance failed - %s", u_errorName(ec));
1878 valid = dec->getLocale(ULOC_VALID_LOCALE, ec);
1879 actual = dec->getLocale(ULOC_ACTUAL_LOCALE, ec);
1880 if (U_FAILURE(ec)) {
1891 valid = sym->getLocale(ULOC_VALID_LOCALE, ec);
1892 actual = sym->getLocale(ULOC_ACTUAL_LOCALE, ec);
1893 if (U_FAILURE(ec)) {
1916 valid = dat->getLocale(ULOC_VALID_LOCALE, ec);
1917 actual = dat->getLocale(ULOC_ACTUAL_LOCALE, ec);
1918 if (U_FAILURE(ec)) {
1929 valid = sym->getLocale(ULOC_VALID_LOCALE, ec);
1930 actual = sym->getLocale(ULOC_ACTUAL_LOCALE, ec);
1931 if (U_FAILURE(ec)) {
1944 BreakIterator* brk = BreakIterator::createWordInstance(reqLoc, ec);
1945 if (U_FAILURE(ec)) {
1946 dataerrln("FAIL: BreakIterator::createWordInstance failed - %s", u_errorName(ec));
1948 valid = brk->getLocale(ULOC_VALID_LOCALE, ec);
1949 actual = brk->getLocale(ULOC_ACTUAL_LOCALE, ec);
1950 if (U_FAILURE(ec)) {
1957 URegistryKey key = BreakIterator::registerInstance(brk, reqLoc, UBRK_WORD, ec);
1959 if (U_FAILURE(ec)) {
1962 brk = BreakIterator::createWordInstance(reqLoc, ec);
1963 if (U_FAILURE(ec)) {
1966 valid = brk->getLocale(ULOC_VALID_LOCALE, ec);
1967 actual = brk->getLocale(ULOC_ACTUAL_LOCALE, ec);
1968 if (U_FAILURE(ec)) {
1977 BreakIterator::unregister(key, ec);
1978 if (U_FAILURE(ec)) {
1986 brk = BreakIterator::createWordInstance(reqLoc, ec);
1987 if (U_FAILURE(ec)) {
1990 valid = brk->getLocale(ULOC_VALID_LOCALE, ec);
1991 actual = brk->getLocale(ULOC_ACTUAL_LOCALE, ec);
1992 if (U_FAILURE(ec)) {
2006 Collator* coll = Collator::createInstance(reqLoc, ec);
2007 if (U_FAILURE(ec)) {
2008 dataerrln("FAIL: Collator::createInstance failed - %s", u_errorName(ec));
2010 valid = coll->getLocale(ULOC_VALID_LOCALE, ec);
2011 actual = coll->getLocale(ULOC_ACTUAL_LOCALE, ec);
2012 if (U_FAILURE(ec)) {
2019 URegistryKey key = Collator::registerInstance(coll, reqLoc, ec);
2021 if (U_FAILURE(ec)) {
2024 coll = Collator::createInstance(reqLoc, ec);
2025 if (U_FAILURE(ec)) {
2028 valid = coll->getLocale(ULOC_VALID_LOCALE, ec);
2029 actual = coll->getLocale(ULOC_ACTUAL_LOCALE, ec);
2030 if (U_FAILURE(ec)) {
2039 Collator::unregister(key, ec);
2040 if (U_FAILURE(ec)) {
2048 coll = Collator::createInstance(reqLoc, ec);
2049 if (U_FAILURE(ec)) {
2052 valid = coll->getLocale(ULOC_VALID_LOCALE, ec);
2053 actual = coll->getLocale(ULOC_ACTUAL_LOCALE, ec);
2054 if (U_FAILURE(ec)) {