Home | History | Annotate | Download | only in cintltst

Lines Matching refs:ucnv_convert

412       /*Testing ucnv_convert()*/
422 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", NULL, targetLimit , (const char*)source, sourceLimit, &err);
427 targetCapacity=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
430 log_data_err("FAILURE! ucnv_convert(ibm-1363->ibm-1364) failed. %s\n", myErrorName(err));
435 log_err("FAIL: ucnv_convert(ibm-1363->ibm-1364) failed.at index \n i=%d, Expected: %lx Got: %lx\n", i, (UChar)expectedTarget[i], (uint8_t)target[i]);
439 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source+1, -1, &err);
441 log_err("FAILURE! ucnv_convert() with sourceLimit=-1 failed: %s, returned %d instead of 7\n",
447 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, 0, &err);
449 log_err("FAILURE! ucnv_convert() with sourceLimit=0 is expected to return 0\n");
454 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
456 log_err("FAILURE! ucnv_convert() with err=U_ILLEGAL_ARGUMENT_ERROR is expected to return 0\n");
462 i=ucnv_convert("ibm-1364", "ibm-1363", target, targetLimit , (const char*)source, sourceLimit, &err);
464 log_err("FAILURE! ucnv_convert() with targetLimit=0 is expected to throw U_BUFFER_OVERFLOW_ERROR\n");
1923 /* jitterbug 932: ucnv_convert() bugs --------------------------------------- */
1943 int32_t ucnv_convert(const char *toConverterName,
1983 ucnv_convert("us-ascii", /* out */
2026 size = ucnv_convert("iso-8859-1", /* out */
2042 size = ucnv_convert("UTF-32BE", /* out */
2057 size = ucnv_convert("UTF-8", /* out */
2091 size = ucnv_convert("lmbcs", /* out */
2104 * Markus 2001-05-18: 5 is the size of our target[] here, ucnv_convert() did not reset targetSize...
2117 size = ucnv_convert("lmbcs", /* out */