Home | History | Annotate | Download | only in intltest

Lines Matching defs:source

470     // test null-terminated source and return value of number of UChars required
479 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source. Expected : "
485 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
492 " null terminated source. Expected: " +UnicodeString(u_errorName(expectedStatus))
494 + " Source: " + prettify(UnicodeString(src))
509 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
511 " null terminated source "+ prettify(src) +
519 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
526 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
528 + " Source: " + prettify(UnicodeString(src))
535 // test source with lengthand return value of number of UChars required
544 errln("Did not get the expected result for %s with source length.\n",testName);
547 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
554 " with source length. Expected: " +UnicodeString(u_errorName(expectedStatus))
556 + " Source: " + prettify(UnicodeString(src))
571 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
574 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
581 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
583 + " Source: " + prettify(UnicodeString(src))
598 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
599 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen)));
603 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
610 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
612 + " Source: " + prettify(UnicodeString(src))
627 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
630 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
637 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
639 + " Source: " + prettify(UnicodeString(src))
658 errcheckln(status, "%s null terminated source failed. Error: %s", testName,u_errorName(status));
668 errcheckln(status, "%s null terminated source and options set failed. Error: %s",testName, u_errorName(status));
776 UnicodeString source(www), uni0(www),uni1(www), ascii0(www), ascii1(www);
801 source.truncate(4);
802 source.append(unicodeIn[i]);
803 source.append(com);
804 source.append((UChar)0x0000);
806 const UChar* src = source.getBuffer();
953 errln(UnicodeString("Conversion of UTF8 source in conformanceTestCases[") + i +UnicodeString( "].in ( ")+prettify(utf8Chars1) +UnicodeString(" ) failed. Error: ")+ UnicodeString(u_errorName(status)));
959 errln(UnicodeString("Conversion of UTF8 source in conformanceTestCases[") + i +UnicodeString( "].in ( ")+prettify(utf8Chars1) +UnicodeString(" ) failed. Error: ")+ UnicodeString(u_errorName(status)));
1004 // test null-terminated source
1007 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1015 errcheckln(status, "%s null terminated source failed - %s",testName, u_errorName(status));
1021 errln("%s null terminated source failed\n",testName);
1030 errln("Chaining for %s null terminated source failed\n",testName);
1036 errln("Chaining for %s null terminated source failed\n",testName);
1040 // test null-terminated source
1044 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1052 errcheckln(status, "%s null terminated source with options set failed - %s",testName, u_errorName(status));
1058 errln("%s null terminated source with options set failed\n",testName);
1067 errln("Chaining for %s null terminated source with options set failed\n",testName);
1073 errln("Chaining for %s null terminated source with options set failed\n",testName);
1078 // test source with length
1082 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1090 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1096 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1105 errln("Chaining for %s source with source length failed\n",testName);
1111 errln("Chaining for %s source with source length failed\n",testName);
1117 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1125 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1131 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1140 errln("Chaining for %s source with source length and options set failed\n",testName);
1146 errln("Chaining for %s source with source length and options set failed\n",testName);
1175 UnicodeString source(www), uni0(www),uni1(www), ascii0(www), ascii1(www);
1200 source.truncate(4);
1201 source.append(unicodeIn[i]);
1202 source.append(com);
1203 source.append((UChar)0x0000);
1205 const UChar* src = source.getBuffer();
1393 + " for Source: "+ prettify(srcUChars)
1406 + " for Source: "+ prettify(srcUChars)
1471 UnicodeString source;
1482 source.truncate(0);
1483 getTestSource(source);
1484 source.append((UChar)0x0000);
1485 const UChar* src = source.getBuffer();
1486 testCompareReferenceImpl(src,source.length()-1);
1487 testCompareReferenceImpl(src,source.length()-1);
1492 source.truncate(0);
1493 source.append( UnicodeString(failures[i], -1, US_INV) );
1494 source = source.unescape();
1495 source.append((UChar)0x0000);
1496 const UChar *src = source.getBuffer();
1497 testCompareReferenceImpl(src,source.length()-1);
1498 //debug(source.getBuffer(),source.length(),UIDNA_ALLOW_UNASSIGNED);
1502 source.truncate(0);
1503 source.append(UNICODE_STRING_SIMPLE("\\uCF18\\U00021161\\U000EEF11\\U0002BB82\\U0001D63C"));
1504 debug(source.getBuffer(),source.length(),UIDNA_ALLOW_UNASSIGNED);
1507 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);
1508 source = source.unescape();
1513 testAPI(source.getBuffer(),ascii.getBuffer(), "uidna_toASCII", FALSE, U_ZERO_ERROR, TRUE, TRUE, uidna_toASCII);
1515 testAPI(source.getBuffer(),ascii.getBuffer(), "idnaref_toASCII", FALSE, U_ZERO_ERROR, TRUE, TRUE, idnaref_toASCII);
1517 testCompareReferenceImpl(source.getBuffer(), source.length()-1);