Lines Matching full:unorm_normalize
176 log_verbose("Testing unorm_normalize(%s)\n", modeStrings[mode]);
181 neededLen= unorm_normalize(source, u_strlen(source), mode, 0, NULL, 0, &status);
182 length2= unorm_normalize(source, -1, mode, 0, NULL, 0, &status2);
184 log_err("ERROR in unorm_normalize(%s)[%d]: "
192 length2=unorm_normalize(source, u_strlen(source), mode, 0, result, LENGTHOF(result), &status);
194 log_data_err("ERROR in unorm_normalize(%s/NUL) at %s: %s - (Are you missing data?)\n",
199 length2=unorm_normalize(source, -1, mode, 0, result, LENGTHOF(result), &status);
201 log_data_err("ERROR in unorm_normalize(%s/srcLength) at %s: %s - (Are you missing data?)\n",
258 len = unorm_normalize(src, srcLen, mode, 0, result, 50, &status);
261 log_data_err("unorm_normalize(%s) with 0x0000 failed: %s - (Are you missing data?)\n", name, u_errorName(status));
263 log_err("unorm_normalize(%s) with 0x0000 failed: Expected len %d, got %d\n", name, expLen, len);
269 log_err("unorm_normalize(%s): @%d, expected \\u%04X got \\u%04X\n",
280 log_verbose("unorm_normalize(%s) with 0x0000: OK\n", name);
672 normsize += unorm_normalize(data + size, 1, UNORM_NFD, 0,
682 nfdsize = unorm_normalize(data, size, UNORM_NFD, 0,
713 length=unorm_normalize(in, 2, UNORM_NFD, 0, NULL, 0, &errorCode);
715 log_data_err("unorm_normalize(pure preflighting NFD)=%ld failed with %s - (Are you missing data?)\n", length, u_errorName(errorCode));
720 length=unorm_normalize(in, 2, UNORM_NFD, 0, out, 3, &errorCode);
722 log_err("unorm_normalize(NFD)=%ld failed with %s\n", length, u_errorName(errorCode));
726 log_err("unorm_normalize(NFD ma<umlaut>)=%ld failed with out[]=U+%04x U+%04x U+%04x U+%04x\n", length, out[0], out[1], out[2], out[3]);
729 length=unorm_normalize(NULL, 0, UNORM_NFC, 0, NULL, 0, &errorCode);
731 log_err("unorm_normalize(src NULL[0], NFC, dest NULL[0])=%ld failed with %s\n", (long)length, u_errorName(errorCode));
734 length=unorm_normalize(NULL, 0, UNORM_NFC, 0, out, 20, &errorCode);
736 log_err("unorm_normalize(src NULL[0], NFC, dest out[20])=%ld failed with %s\n", (long)length, u_errorName(errorCode));
892 preflightLength=unorm_normalize(input, inLength,
897 log_data_err("error unorm_normalize(long input, output too short, UNORM_NFKC) did not overflow but %s - (Are you missing data?)\n", u_errorName(errorCode));
902 length=unorm_normalize(input, inLength,
907 log_data_err("error unorm_normalize(long input, UNORM_NFKC) failed with %s - (Are you missing data?)\n", u_errorName(errorCode));
909 log_err("error unorm_normalize(long input, UNORM_NFKC) produced wrong result\n");
918 log_err("error unorm_normalize(long input, UNORM_NFKC)==%ld but preflightLength==%ld\n", length, preflightLength);
942 length=unorm_normalize(input, inLength,
947 log_data_err("error unorm_normalize(long input, UNORM_FCD) failed with %s - (Are you missing data?)\n", u_errorName(errorCode));
949 log_err("error unorm_normalize(long input, UNORM_FCD) produced wrong result\n");
1409 length=unorm_normalize(s, length, UNORM_NFD, 0, nfd, LENGTHOF(nfd), &errorCode);
1461 length=unorm_normalize(