• Home
  • Raw
  • Download

Lines Matching refs:errorCode

549     UErrorCode errorCode;  in TestIsNormalized()  local
554 errorCode=U_ZERO_ERROR; in TestIsNormalized()
555 if(!unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized()
556 …rr("error: !isNormalized(<U+0300>, NFC) (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized()
560 errorCode=U_TRUNCATED_CHAR_FOUND; in TestIsNormalized()
561 (void)unorm_isNormalized(notNFC[0]+2, 1, UNORM_NFC, &errorCode); in TestIsNormalized()
562 if(errorCode!=U_TRUNCATED_CHAR_FOUND) { in TestIsNormalized()
563 …ror: isNormalized(U_TRUNCATED_CHAR_FOUND) changed the error code to %s\n", u_errorName(errorCode)); in TestIsNormalized()
567 errorCode=U_ZERO_ERROR; in TestIsNormalized()
568 (void)unorm_isNormalized(NULL, 1, UNORM_NFC, &errorCode); in TestIsNormalized()
569 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestIsNormalized()
570 … did not set U_ILLEGAL_ARGUMENT_ERROR but %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized()
574 errorCode=U_ZERO_ERROR; in TestIsNormalized()
575 (void)unorm_isNormalized(notNFC[0]+2, -2, UNORM_NFC, &errorCode); in TestIsNormalized()
576 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestIsNormalized()
577 … did not set U_ILLEGAL_ARGUMENT_ERROR but %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestIsNormalized()
582 errorCode=U_ZERO_ERROR; in TestIsNormalized()
583 if(unorm_isNormalized(notNFC[i], -1, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized()
584 …Normalized(notNFC[%d], NFC) is wrong (%s) - (Are you missing data?)\n", i, u_errorName(errorCode)); in TestIsNormalized()
586 errorCode=U_ZERO_ERROR; in TestIsNormalized()
587 if(unorm_isNormalized(notNFC[i], -1, UNORM_NFKC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized()
588 …ormalized(notNFC[%d], NFKC) is wrong (%s) - (Are you missing data?)\n", i, u_errorName(errorCode)); in TestIsNormalized()
592 errorCode=U_ZERO_ERROR; in TestIsNormalized()
593 if(unorm_isNormalized(notNFKC[i], -1, UNORM_NFKC, &errorCode) || U_FAILURE(errorCode)) { in TestIsNormalized()
594 …rmalized(notNFKC[%d], NFKC) is wrong (%s) - (Are you missing data?)\n", i, u_errorName(errorCode)); in TestIsNormalized()
708 UErrorCode errorCode; in TestAPI() local
712 errorCode=U_ZERO_ERROR; in TestAPI()
713 length=unorm_normalize(in, 2, UNORM_NFD, 0, NULL, 0, &errorCode); in TestAPI()
714 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=3) { in TestAPI()
715 …preflighting NFD)=%ld failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestAPI()
719 errorCode=U_ZERO_ERROR; in TestAPI()
720 length=unorm_normalize(in, 2, UNORM_NFD, 0, out, 3, &errorCode); in TestAPI()
721 if(U_FAILURE(errorCode)) { in TestAPI()
722 log_err("unorm_normalize(NFD)=%ld failed with %s\n", length, u_errorName(errorCode)); in TestAPI()
729 length=unorm_normalize(NULL, 0, UNORM_NFC, 0, NULL, 0, &errorCode); in TestAPI()
730 if(U_FAILURE(errorCode)) { in TestAPI()
731 …alize(src NULL[0], NFC, dest NULL[0])=%ld failed with %s\n", (long)length, u_errorName(errorCode)); in TestAPI()
734 length=unorm_normalize(NULL, 0, UNORM_NFC, 0, out, 20, &errorCode); in TestAPI()
735 if(U_FAILURE(errorCode)) { in TestAPI()
736 …alize(src NULL[0], NFC, dest out[20])=%ld failed with %s\n", (long)length, u_errorName(errorCode)); in TestAPI()
763 UErrorCode errorCode; in TestNormCoverage() local
829 errorCode=U_ZERO_ERROR; in TestNormCoverage()
830 if(UNORM_NO!=unorm_quickCheck(input, inLength, UNORM_NFD, &errorCode) || U_FAILURE(errorCode)) { in TestNormCoverage()
831 …m_quickCheck(long input, UNORM_NFD)!=NO (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
833 errorCode=U_ZERO_ERROR; in TestNormCoverage()
834 … if(UNORM_NO!=unorm_quickCheck(input, inLength, UNORM_NFKD, &errorCode) || U_FAILURE(errorCode)) { in TestNormCoverage()
835 …_quickCheck(long input, UNORM_NFKD)!=NO (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
837 errorCode=U_ZERO_ERROR; in TestNormCoverage()
838 if(UNORM_NO!=unorm_quickCheck(input, inLength, UNORM_NFC, &errorCode) || U_FAILURE(errorCode)) { in TestNormCoverage()
839 …m_quickCheck(long input, UNORM_NFC)!=NO (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
841 errorCode=U_ZERO_ERROR; in TestNormCoverage()
842 … if(UNORM_NO!=unorm_quickCheck(input, inLength, UNORM_NFKC, &errorCode) || U_FAILURE(errorCode)) { in TestNormCoverage()
843 …_quickCheck(long input, UNORM_NFKC)!=NO (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
845 errorCode=U_ZERO_ERROR; in TestNormCoverage()
846 if(UNORM_NO!=unorm_quickCheck(input, inLength, UNORM_FCD, &errorCode) || U_FAILURE(errorCode)) { in TestNormCoverage()
847 …m_quickCheck(long input, UNORM_FCD)!=NO (%s) - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
891 errorCode=U_ZERO_ERROR; in TestNormCoverage()
895 &errorCode); in TestNormCoverage()
896 if(errorCode!=U_BUFFER_OVERFLOW_ERROR) { in TestNormCoverage()
897 …o short, UNORM_NFKC) did not overflow but %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
901 errorCode=U_ZERO_ERROR; in TestNormCoverage()
905 &errorCode); in TestNormCoverage()
906 if(U_FAILURE(errorCode)) { in TestNormCoverage()
907 …alize(long input, UNORM_NFKC) failed with %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
941 errorCode=U_ZERO_ERROR; in TestNormCoverage()
945 &errorCode); in TestNormCoverage()
946 if(U_FAILURE(errorCode)) { in TestNormCoverage()
947 …malize(long input, UNORM_FCD) failed with %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestNormCoverage()
975 UErrorCode errorCode; in TestConcatenate() local
979 errorCode=U_ZERO_ERROR; in TestConcatenate()
980 length=unorm_concatenate(left, 2, right, -1, buffer, 100, UNORM_NFC, 0, &errorCode); in TestConcatenate()
981 if(U_FAILURE(errorCode) || length!=6 || 0!=u_memcmp(buffer, expect, length)) { in TestConcatenate()
982 …nate()=%ld (expect 6) failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestConcatenate()
986 errorCode=U_ZERO_ERROR; in TestConcatenate()
987 length=unorm_concatenate(left, 2, right, -1, NULL, 0, UNORM_NFC, 0, &errorCode); in TestConcatenate()
988 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=6) { in TestConcatenate()
989 …hting)=%ld (expect 6) failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestConcatenate()
993 errorCode=U_ZERO_ERROR; in TestConcatenate()
994 length=unorm_concatenate(left, 2, right, -1, buffer, 1, UNORM_NFC, 0, &errorCode); in TestConcatenate()
995 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=6 || buffer[2]!=0x5555) { in TestConcatenate()
996 …ing 2)=%ld (expect 6) failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestConcatenate()
1001 errorCode=U_UNEXPECTED_TOKEN; in TestConcatenate()
1002 length=unorm_concatenate(left, 2, right, -1, buffer, 100, UNORM_NFC, 0, &errorCode); in TestConcatenate()
1003 if(errorCode!=U_UNEXPECTED_TOKEN || buffer[2]!=0xaaaa) { in TestConcatenate()
1004 … log_err("error: unorm_concatenate(failure)=%ld failed with %s\n", length, u_errorName(errorCode)); in TestConcatenate()
1009 errorCode=U_ZERO_ERROR; in TestConcatenate()
1010 length=unorm_concatenate(NULL, 2, right, -1, buffer, 100, UNORM_NFC, 0, &errorCode); in TestConcatenate()
1011 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR || buffer[2]!=0xaaaa) { in TestConcatenate()
1012 …tenate(left=NULL)=%ld failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestConcatenate()
1015 errorCode=U_ZERO_ERROR; in TestConcatenate()
1016 length=unorm_concatenate(left, 2, right, -1, NULL, 100, UNORM_NFC, 0, &errorCode); in TestConcatenate()
1017 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestConcatenate()
1018 …nate(buffer=NULL)=%ld failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode)); in TestConcatenate()
1038 UErrorCode errorCode; in _testIter() local
1041 errorCode=U_ZERO_ERROR; in _testIter()
1062 &errorCode); in _testIter()
1087 &errorCode); in _testIter()
1108 if(U_FAILURE(errorCode)) { in _testIter()
1110 forward, _modeString[mode], i, u_errorName(errorCode)); in _testIter()
1187 UErrorCode errorCode; in TestNextPrevious() local
1238 errorCode=U_ZERO_ERROR; in TestNextPrevious()
1243 &errorCode); in TestNextPrevious()
1244 if(U_FAILURE(errorCode) || length!=2 || buffer[0]!=nfd[2] || buffer[1]!=nfd[3]) { in TestNextPrevious()
1245 …ata_err("error unorm_next(without needed) %s - (Are you missing data?)\n", u_errorName(errorCode)); in TestNextPrevious()
1254 &errorCode); in TestNextPrevious()
1255 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || neededToNormalize!=FALSE || length!=2) { in TestNextPrevious()
1256 log_err("error unorm_next(pure preflighting) %s\n", u_errorName(errorCode)); in TestNextPrevious()
1260 errorCode=U_ZERO_ERROR; in TestNextPrevious()
1266 &errorCode); in TestNextPrevious()
1267 … if(errorCode!=U_BUFFER_OVERFLOW_ERROR || neededToNormalize!=FALSE || length!=2 || buffer[1]!=5) { in TestNextPrevious()
1268 log_err("error unorm_next(preflighting) %s\n", u_errorName(errorCode)); in TestNextPrevious()
1273 errorCode=U_ZERO_ERROR; in TestNextPrevious()
1279 &errorCode); in TestNextPrevious()
1280 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestNextPrevious()
1281 log_err("error unorm_next(no iterator) %s\n", u_errorName(errorCode)); in TestNextPrevious()
1291 &errorCode); in TestNextPrevious()
1292 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestNextPrevious()
1293 log_err("error unorm_next(illegal mode) %s\n", u_errorName(errorCode)); in TestNextPrevious()
1298 errorCode=U_MISPLACED_QUANTIFIER; in TestNextPrevious()
1303 &errorCode); in TestNextPrevious()
1304 if(errorCode!=U_MISPLACED_QUANTIFIER) { in TestNextPrevious()
1305 log_err("error unorm_next(U_MISPLACED_QUANTIFIER) %s\n", u_errorName(errorCode)); in TestNextPrevious()
1332 UErrorCode errorCode; in TestFCNFKCClosure() local
1336 errorCode=U_ZERO_ERROR; in TestFCNFKCClosure()
1337 length=u_getFC_NFKC_Closure(tests[i].c, buffer, LENGTHOF(buffer), &errorCode); in TestFCNFKCClosure()
1338 if(U_FAILURE(errorCode) || length!=u_strlen(buffer) || 0!=u_strcmp(tests[i].s, buffer)) { in TestFCNFKCClosure()
1339 …C_Closure(U+%04lx) is wrong (%s) - (Are you missing data?)\n", tests[i].c, u_errorName(errorCode)); in TestFCNFKCClosure()
1344 errorCode=U_ZERO_ERROR; in TestFCNFKCClosure()
1345 length=u_getFC_NFKC_Closure(0x5c, NULL, LENGTHOF(buffer), &errorCode); in TestFCNFKCClosure()
1346 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestFCNFKCClosure()
1347 log_err("u_getFC_NFKC_Closure(dest=NULL) is wrong (%s)\n", u_errorName(errorCode)); in TestFCNFKCClosure()
1350 length=u_getFC_NFKC_Closure(0x5c, buffer, LENGTHOF(buffer), &errorCode); in TestFCNFKCClosure()
1351 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestFCNFKCClosure()
1352 log_err("u_getFC_NFKC_Closure(U_FAILURE) is wrong (%s)\n", u_errorName(errorCode)); in TestFCNFKCClosure()
1358 UErrorCode errorCode; in TestQuickCheckPerCP() local
1379 errorCode=U_ZERO_ERROR; in TestQuickCheckPerCP()
1386 qc2=unorm_quickCheck(s, length, UNORM_NFC, &errorCode); in TestQuickCheckPerCP()
1392 qc2=unorm_quickCheck(s, length, UNORM_NFD, &errorCode); in TestQuickCheckPerCP()
1398 qc2=unorm_quickCheck(s, length, UNORM_NFKC, &errorCode); in TestQuickCheckPerCP()
1404 qc2=unorm_quickCheck(s, length, UNORM_NFKD, &errorCode); in TestQuickCheckPerCP()
1409 length=unorm_normalize(s, length, UNORM_NFD, 0, nfd, LENGTHOF(nfd), &errorCode); in TestQuickCheckPerCP()
1456 UErrorCode errorCode; in TestComposition() local
1460 errorCode=U_ZERO_ERROR; in TestComposition()
1465 &errorCode); in TestComposition()
1466 if( U_FAILURE(errorCode) || in TestComposition()
1480 UErrorCode errorCode=U_ZERO_ERROR; in TestGetDecomposition() local
1481 const UNormalizer2 *n2=unorm2_getInstance(NULL, "nfc", UNORM2_COMPOSE_CONTIGUOUS, &errorCode); in TestGetDecomposition()
1482 if(U_FAILURE(errorCode)) { in TestGetDecomposition()
1483 … log_err_status(errorCode, "unorm2_getInstance(nfc/FCC) failed: %s\n", u_errorName(errorCode)); in TestGetDecomposition()
1487 length=unorm2_getDecomposition(n2, 0x20, decomp, LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1488 if(U_FAILURE(errorCode) || length>=0) { in TestGetDecomposition()
1491 errorCode=U_ZERO_ERROR; in TestGetDecomposition()
1492 length=unorm2_getDecomposition(n2, 0xe4, decomp, LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1493 if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0x61 || decomp[1]!=0x308 || decomp[2]!=0) { in TestGetDecomposition()
1496 errorCode=U_ZERO_ERROR; in TestGetDecomposition()
1497 length=unorm2_getDecomposition(n2, 0xac01, decomp, LENGTHOF(decomp), &errorCode); in TestGetDecomposition()
1498 …if(U_FAILURE(errorCode) || length!=3 || decomp[0]!=0x1100 || decomp[1]!=0x1161 || decomp[2]!=0x11a… in TestGetDecomposition()
1501 errorCode=U_ZERO_ERROR; in TestGetDecomposition()
1502 length=unorm2_getDecomposition(n2, 0xac01, NULL, 0, &errorCode); in TestGetDecomposition()
1503 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=3) { in TestGetDecomposition()
1506 errorCode=U_ZERO_ERROR; in TestGetDecomposition()
1507 length=unorm2_getDecomposition(n2, 0xac01, decomp, -1, &errorCode); in TestGetDecomposition()
1508 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestGetDecomposition()
1511 errorCode=U_ZERO_ERROR; in TestGetDecomposition()
1512 length=unorm2_getDecomposition(n2, 0xac01, NULL, 4, &errorCode); in TestGetDecomposition()
1513 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestGetDecomposition()
1523 UErrorCode errorCode=U_ZERO_ERROR; in TestGetRawDecomposition() local
1524 const UNormalizer2 *n2=unorm2_getNFKCInstance(&errorCode); in TestGetRawDecomposition()
1525 if(U_FAILURE(errorCode)) { in TestGetRawDecomposition()
1526 log_err_status(errorCode, "unorm2_getNFKCInstance() failed: %s\n", u_errorName(errorCode)); in TestGetRawDecomposition()
1534 length=unorm2_getRawDecomposition(n2, 0x20, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1535 if(U_FAILURE(errorCode) || length>=0) { in TestGetRawDecomposition()
1538 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1539 length=unorm2_getRawDecomposition(n2, 0xe4, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1540 if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0x61 || decomp[1]!=0x308 || decomp[2]!=0) { in TestGetRawDecomposition()
1544 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1545 length=unorm2_getRawDecomposition(n2, 0x1e08, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1546 if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0xc7 || decomp[1]!=0x301 || decomp[2]!=0) { in TestGetRawDecomposition()
1550 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1551 length=unorm2_getRawDecomposition(n2, 0x212b, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1552 if(U_FAILURE(errorCode) || length!=1 || decomp[0]!=0xc5 || decomp[1]!=0) { in TestGetRawDecomposition()
1555 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1556 length=unorm2_getRawDecomposition(n2, 0xac00, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1557 … if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0x1100 || decomp[1]!=0x1161 || decomp[2]!=0) { in TestGetRawDecomposition()
1561 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1562 length=unorm2_getRawDecomposition(n2, 0xac01, decomp, LENGTHOF(decomp), &errorCode); in TestGetRawDecomposition()
1563 … if(U_FAILURE(errorCode) || length!=2 || decomp[0]!=0xac00 || decomp[1]!=0x11a8 || decomp[2]!=0) { in TestGetRawDecomposition()
1566 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1567 length=unorm2_getRawDecomposition(n2, 0xac01, NULL, 0, &errorCode); in TestGetRawDecomposition()
1568 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=2) { in TestGetRawDecomposition()
1571 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1572 length=unorm2_getRawDecomposition(n2, 0xac01, decomp, -1, &errorCode); in TestGetRawDecomposition()
1573 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestGetRawDecomposition()
1576 errorCode=U_ZERO_ERROR; in TestGetRawDecomposition()
1577 length=unorm2_getRawDecomposition(n2, 0xac01, NULL, 4, &errorCode); in TestGetRawDecomposition()
1578 if(errorCode!=U_ILLEGAL_ARGUMENT_ERROR) { in TestGetRawDecomposition()
1590 UErrorCode errorCode=U_ZERO_ERROR; in TestAppendRestoreMiddle() local
1591 const UNormalizer2 *n2=unorm2_getNFCInstance(&errorCode); in TestAppendRestoreMiddle()
1592 if(U_FAILURE(errorCode)) { in TestAppendRestoreMiddle()
1593 log_err_status(errorCode, "unorm2_getNFCInstance() failed: %s\n", u_errorName(errorCode)); in TestAppendRestoreMiddle()
1602 length=unorm2_append(n2, a, -1, 6, b, -1, &errorCode); in TestAppendRestoreMiddle()
1603 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=LENGTHOF(expected)) { in TestAppendRestoreMiddle()
1612 errorCode=U_ZERO_ERROR; in TestAppendRestoreMiddle()
1613 length=unorm2_append(n2, a, -1, LENGTHOF(a), b, -1, &errorCode); in TestAppendRestoreMiddle()
1614 if(U_FAILURE(errorCode) || length!=LENGTHOF(expected) || 0!=u_memcmp(a, expected, length)) { in TestAppendRestoreMiddle()
1615 … log_err("unorm2_append(real) failed - %s, length %d\n", u_errorName(errorCode), (int)length); in TestAppendRestoreMiddle()
1629 UErrorCode errorCode=U_ZERO_ERROR; in TestGetEasyToUseInstance() local
1630 const UNormalizer2 *n2=unorm2_getNFCInstance(&errorCode); in TestGetEasyToUseInstance()
1631 if(U_FAILURE(errorCode)) { in TestGetEasyToUseInstance()
1632 log_err_status(errorCode, "unorm2_getNFCInstance() failed: %s\n", u_errorName(errorCode)); in TestGetEasyToUseInstance()
1635 length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode); in TestGetEasyToUseInstance()
1636 if(U_FAILURE(errorCode) || length!=2 || out[0]!=0xa0 || out[1]!=0x1e08) { in TestGetEasyToUseInstance()
1638 (int)length, u_errorName(errorCode)); in TestGetEasyToUseInstance()
1641 errorCode=U_ZERO_ERROR; in TestGetEasyToUseInstance()
1642 n2=unorm2_getNFDInstance(&errorCode); in TestGetEasyToUseInstance()
1643 if(U_FAILURE(errorCode)) { in TestGetEasyToUseInstance()
1644 log_err_status(errorCode, "unorm2_getNFDInstance() failed: %s\n", u_errorName(errorCode)); in TestGetEasyToUseInstance()
1647 length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode); in TestGetEasyToUseInstance()
1648 …if(U_FAILURE(errorCode) || length!=4 || out[0]!=0xa0 || out[1]!=0x43 || out[2]!=0x327 || out[3]!=0… in TestGetEasyToUseInstance()
1650 (int)length, u_errorName(errorCode)); in TestGetEasyToUseInstance()
1653 errorCode=U_ZERO_ERROR; in TestGetEasyToUseInstance()
1654 n2=unorm2_getNFKCInstance(&errorCode); in TestGetEasyToUseInstance()
1655 if(U_FAILURE(errorCode)) { in TestGetEasyToUseInstance()
1656 log_err_status(errorCode, "unorm2_getNFKCInstance() failed: %s\n", u_errorName(errorCode)); in TestGetEasyToUseInstance()
1659 length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode); in TestGetEasyToUseInstance()
1660 if(U_FAILURE(errorCode) || length!=2 || out[0]!=0x20 || out[1]!=0x1e08) { in TestGetEasyToUseInstance()
1662 (int)length, u_errorName(errorCode)); in TestGetEasyToUseInstance()
1665 errorCode=U_ZERO_ERROR; in TestGetEasyToUseInstance()
1666 n2=unorm2_getNFKDInstance(&errorCode); in TestGetEasyToUseInstance()
1667 if(U_FAILURE(errorCode)) { in TestGetEasyToUseInstance()
1668 log_err_status(errorCode, "unorm2_getNFKDInstance() failed: %s\n", u_errorName(errorCode)); in TestGetEasyToUseInstance()
1671 length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode); in TestGetEasyToUseInstance()
1672 …if(U_FAILURE(errorCode) || length!=4 || out[0]!=0x20 || out[1]!=0x43 || out[2]!=0x327 || out[3]!=0… in TestGetEasyToUseInstance()
1674 (int)length, u_errorName(errorCode)); in TestGetEasyToUseInstance()
1677 errorCode=U_ZERO_ERROR; in TestGetEasyToUseInstance()
1678 n2=unorm2_getNFKCCasefoldInstance(&errorCode); in TestGetEasyToUseInstance()
1679 if(U_FAILURE(errorCode)) { in TestGetEasyToUseInstance()
1680 …log_err_status(errorCode, "unorm2_getNFKCCasefoldInstance() failed: %s\n", u_errorName(errorCode)); in TestGetEasyToUseInstance()
1683 length=unorm2_normalize(n2, in, LENGTHOF(in), out, LENGTHOF(out), &errorCode); in TestGetEasyToUseInstance()
1684 if(U_FAILURE(errorCode) || length!=2 || out[0]!=0x20 || out[1]!=0x1e09) { in TestGetEasyToUseInstance()
1686 (int)length, u_errorName(errorCode)); in TestGetEasyToUseInstance()