Home | History | Annotate | Download | only in intltest

Lines Matching defs:source

473     // test null-terminated source and return value of number of UChars required
482 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source. Expected : "
488 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
495 " null terminated source. Expected: " +UnicodeString(u_errorName(expectedStatus))
497 + " Source: " + prettify(UnicodeString(src))
512 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
514 " null terminated source "+ prettify(src) +
522 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
529 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
531 + " Source: " + prettify(UnicodeString(src))
538 // test source with lengthand return value of number of UChars required
547 errln("Did not get the expected result for %s with source length.\n",testName);
550 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
557 " with source length. Expected: " +UnicodeString(u_errorName(expectedStatus))
559 + " Source: " + prettify(UnicodeString(src))
574 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
577 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
584 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
586 + " Source: " + prettify(UnicodeString(src))
601 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
602 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen)));
606 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
613 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
615 + " Source: " + prettify(UnicodeString(src))
630 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
633 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
640 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
642 + " Source: " + prettify(UnicodeString(src))
661 errcheckln(status, "%s null terminated source failed. Error: %s", testName,u_errorName(status));
671 errcheckln(status, "%s null terminated source and options set failed. Error: %s",testName, u_errorName(status));
779 UnicodeString source(www), uni0(www),uni1(www), ascii0(www), ascii1(www);
804 source.truncate(4);
805 source.append(unicodeIn[i]);
806 source.append(com);
807 source.append((UChar)0x0000);
809 const UChar* src = source.getBuffer();
956 errln(UnicodeString("Conversion of UTF8 source in conformanceTestCases[") + i +UnicodeString( "].in ( ")+prettify(utf8Chars1) +UnicodeString(" ) failed. Error: ")+ UnicodeString(u_errorName(status)));
962 errln(UnicodeString("Conversion of UTF8 source in conformanceTestCases[") + i +UnicodeString( "].in ( ")+prettify(utf8Chars1) +UnicodeString(" ) failed. Error: ")+ UnicodeString(u_errorName(status)));
1007 // test null-terminated source
1010 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1018 errcheckln(status, "%s null terminated source failed - %s",testName, u_errorName(status));
1024 errln("%s null terminated source failed\n",testName);
1033 errln("Chaining for %s null terminated source failed\n",testName);
1039 errln("Chaining for %s null terminated source failed\n",testName);
1043 // test null-terminated source
1047 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1055 errcheckln(status, "%s null terminated source with options set failed - %s",testName, u_errorName(status));
1061 errln("%s null terminated source with options set failed\n",testName);
1070 errln("Chaining for %s null terminated source with options set failed\n",testName);
1076 errln("Chaining for %s null terminated source with options set failed\n",testName);
1081 // test source with length
1085 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1093 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1099 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1108 errln("Chaining for %s source with source length failed\n",testName);
1114 errln("Chaining for %s source with source length failed\n",testName);
1120 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1128 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1134 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1143 errln("Chaining for %s source with source length and options set failed\n",testName);
1149 errln("Chaining for %s source with source length and options set failed\n",testName);
1178 UnicodeString source(www), uni0(www),uni1(www), ascii0(www), ascii1(www);
1203 source.truncate(4);
1204 source.append(unicodeIn[i]);
1205 source.append(com);
1206 source.append((UChar)0x0000);
1208 const UChar* src = source.getBuffer();
1396 + " for Source: "+ prettify(srcUChars)
1409 + " for Source: "+ prettify(srcUChars)
1474 UnicodeString source;
1485 source.truncate(0);
1486 getTestSource(source);
1487 source.append((UChar)0x0000);
1488 const UChar* src = source.getBuffer();
1489 testCompareReferenceImpl(src,source.length()-1);
1490 testCompareReferenceImpl(src,source.length()-1);
1495 source.truncate(0);
1496 source.append( UnicodeString(failures[i], -1, US_INV) );
1497 source = source.unescape();
1498 source.append((UChar)0x0000);
1499 const UChar *src = source.getBuffer();
1500 testCompareReferenceImpl(src,source.length()-1);
1501 //debug(source.getBuffer(),source.length(),UIDNA_ALLOW_UNASSIGNED);
1505 source.truncate(0);
1506 source.append(UNICODE_STRING_SIMPLE("\\uCF18\\U00021161\\U000EEF11\\U0002BB82\\U0001D63C"));
1507 debug(source.getBuffer(),source.length(),UIDNA_ALLOW_UNASSIGNED);
1510 UnicodeString source("\\u043f\\u00AD\\u034f\\u043e\\u0447\\u0435\\u043c\\u0443\\u0436\\u0435\\u043e\\u043d\\u0438\\u043d\\u0435\\u0433\\u043e\\u0432\\u043e\\u0440\\u044f\\u0442\\u043f\\u043e\\u0440\\u0443\\u0441\\u0441\\u043a\\u0438\\u0000", -1, US_INV);
1511 source = source.unescape();
1516 testAPI(source.getBuffer(),ascii.getBuffer(), "uidna_toASCII", FALSE, U_ZERO_ERROR, TRUE, TRUE, uidna_toASCII);
1518 testAPI(source.getBuffer(),ascii.getBuffer(), "idnaref_toASCII", FALSE, U_ZERO_ERROR, TRUE, TRUE, idnaref_toASCII);
1520 testCompareReferenceImpl(source.getBuffer(), source.length()-1);