Home | History | Annotate | Download | only in cintltst

Lines Matching refs:ucnv_toUChars

866         /*testing ucnv_fromUChars() and ucnv_toUChars() */
891 log_verbose("\n---Testing ucnv_toUChars()\n");
894 targetsize = ucnv_toUChars(myConverter,
906 targetsize = ucnv_toUChars(myConverter,
914 log_err("ucnv_toUChars() FAILED %s\n", myErrorName(err));
916 log_verbose(" ucnv_toUChars() o.k.\n");
925 /*Testing ucnv_fromUChars and ucnv_toUChars with error conditions*/
950 targetsize = ucnv_toUChars(myConverter, uchar2, targetsize, output_cp_buffer, strlen(output_cp_buffer), &err);
952 log_err("\nFAILURE: ucnv_toUChars with err != U_ZERO_ERROR is expected to fail and return 0\n");
955 targetsize = ucnv_toUChars(myConverter, uchar2, -1, output_cp_buffer, strlen(output_cp_buffer), &err);
957 log_err("\nFAILURE: ucnv_toUChars with targetsize < 0 is expected to throw U_ILLEGAL_ARGUMENT_ERROR and return 0\n");
960 targetsize = ucnv_toUChars(myConverter, uchar2, 0, output_cp_buffer, 0, &err);
962 log_err("\nFAILURE: ucnv_toUChars with sourceLength 0 is expected to return 0\n");
965 targetsize = ucnv_toUChars(myConverter, NULL, targetcapacity2, output_cp_buffer, strlen(output_cp_buffer), &err);
967 log_err("\nFAILURE: ucnv_toUChars(targetLength)->%s instead of U_STRING_NOT_TERMINATED_WARNING\n",