Lines Matching full:converter
346 /* flush the converter cache to get a consistent state before the flushing is tested */
356 UConverter *converter=NULL;
358 converter=ucnv_openU(converterName, &err);
362 ucnv_close(converter);
364 converter=ucnv_openU(NULL, &err);
368 ucnv_close(converter);
371 converter=ucnv_openU(converterName, &err);
372 if(!(converter == NULL)){
375 ucnv_close(converter);
398 log_verbose("Testing ucnv_open() with converter name greater than 7 characters\n");
543 /*Creates a converter and testing ucnv_openCCSID(u_int code_page, platform, errstatus*/
550 log_data_err("Error creating the ibm-949 converter - %s \n", u_errorName(err));
673 log_err("Unable to open a iso-2022 converter: %s\n", u_errorName(err));
930 log_verbose("\n---Testing ucnv_fromUChars() with converter=NULL\n");
933 log_err("\nFAILURE: ucnv_fromUChars with converter=NULL is expected to fail\n");
1068 /* flush the converter cache to get a consistent state before the flushing is tested */
1137 * Test the converter alias API, specifically the fuzzy matching of
1139 * converter has at least one alias (itself), and that its listed
1182 log_err("FAIL: Converter \"%s\" (i=%d)"
1189 log_data_err("FAIL: Converter \"%s\" (i=%d)"
1196 log_err("FAIL: Converter \"%s\" returned \"%s\" for getName. "
1215 log_err("FAIL: Converter \"%s\"is ambiguous\n", name);
1219 log_err("FAIL: Converter \"%s\" -> "
1228 log_err("FAIL: Converter \"%s\" -> "
1240 an ambiguous alias, and the other converter has this alias too. */
1251 log_err("FAIL: Converter \"%s\" -> "
1290 * back to predermined converter names.
1370 log_verbose("TSCC_fromU: Context %p:%d called, reason %d on cnv %p\n", ctx, ctx->serial, reason, fromUArgs->converter);
1392 ucnv_getFromUCallBack(fromUArgs->converter, &junkFrom, (const void**)pjunkCtx);
1393 ucnv_setFromUCallBack(fromUArgs->converter, junkFrom, newCtx, NULL, NULL, &subErr);
1416 log_verbose("TSCC_toU: Context %p:%d called, reason %d on cnv %p\n", ctx, ctx->serial, reason, toUArgs->converter);
1438 ucnv_getToUCallBack(toUArgs->converter, &junkFrom, (const void**)pjunkCtx);
1439 ucnv_setToUCallBack(toUArgs->converter, junkFrom, newCtx, NULL, NULL, &subErr);
1678 /* store the actual sizes of each converter */
1717 log_err("FAIL: Cloned converter failed to deal correctly with null status\n");
1723 log_err("FAIL: Cloned converter failed to deal correctly with incoming error status\n");
1730 log_err("FAIL: Cloned converter failed to deal correctly with null bufferSize pointer\n");
1739 log_err("FAIL: Cloned converter failed a sizing request ('preflighting')\n");
1749 log_err("FAIL: Converter can't be cloned with run-time size\n");
1759 log_err("FAIL: Cloned converter failed to deal correctly with too-small buffer size\n");
1768 /* Null buffer pointer - return converter & set error to U_SAFECLONE_ALLOCATED_ERROR */
1771 log_err("FAIL: Cloned converter failed to deal correctly with null buffer pointer\n");
1779 /* Null converter - return NULL & set U_ILLEGAL_ARGUMENT_ERROR */
1782 log_err("FAIL: Cloned converter failed to deal correctly with null converter pointer\n");
1856 log_err("FAIL: cloned converter failed to do fromU conversion. Error: %s\n",u_errorName(err));
1869 log_err("FAIL: cloned converter failed to do toU conversion. Error: %s\n",u_errorName(err));
1875 log_err("FAIL: Cloned converter failed to do conversion. Error: %s\n",u_errorName(err));
1949 * 2001-April with the subject "converter 'flush' question".
2099 * in the converter?), should be CHUNK_SIZE*4
2275 log_err("unable to open a UTF-8 converter - %s\n", u_errorName(errorCode));
2281 log_data_err("unable to open a Shift-JIS converter - %s\n", u_errorName(errorCode));
2633 log_data_err("unable to open UTF-8 converter - %s\n", u_errorName(errorCode));
2641 log_data_err("unable to open %s converter - %s\n", converterNames[i], u_errorName(errorCode));
2692 log_data_err("unable to open UTF-8 converter - %s\n", u_errorName(errorCode));
2702 log_data_err("unable to open %s converter - %s\n",
2776 log_data_err("unable to open a Shift-JIS converter - %s\n", u_errorName(errorCode));
2874 } converter[] = {
2921 for (idx = 0; idx < UPRV_LENGTHOF(converter); idx++) {
2923 UConverter *cnv = cnv_open(converter[idx].name, &status);
2927 if (converter[idx].maxSize != ucnv_getMaxCharSize(cnv)) {
2929 converter[idx].name, converter[idx].maxSize, ucnv_getMaxCharSize(cnv));
2946 " really really really really really really really really long converter name";
3003 /* The comma isn't really a part of the converter name. */
3067 /* the name must contain the swap option if and only if we expect the converter to swap */
3205 log_data_err("Could not create converter for test3. Error: %s\n", u_errorName(status));
3230 * The converter has to read the tail before it knows that
3310 log_data_err("Could not create converter for test3. Error: %s\n", u_errorName(status));
3338 * The converter has to read the tail before it knows that
3360 log_err("Could not create converter for test3. Error: %s\n", u_errorName(status));
3414 log_err("opening the default converter of %s failed\n", name);
3558 /* Stateless converter, we expect the string converted to charset bytes. */
3578 /* Stateful converter, we expect that the Unicode string was set and that we get an empty char * string now. */
3706 log_err_status(errorCode, "Unable to open converter: %s got error code: %s\n", names[i], u_errorName(errorCode));