Home | History | Annotate | Download | only in cintltst

Lines Matching refs:standard

39 static int dotestname(const char *name, const char *standard, const char *expected) {
46 tag = ucnv_getStandardName(name, standard, &error);
48 log_err_status(error, "FAIL: could not find %s standard name for %s\n", standard, name);
51 log_err("FAIL: expected %s for %s standard name for %s, got %s\n", expected, standard, name, tag);
67 const char *standard;
70 standard = ucnv_getStandard(i, &err);
74 } else if (!standard || !*standard) {
75 log_err("FAIL: %s standard name at index %d\n", (standard ? "empty" :
95 log_verbose("PASS: iterating over standard names works\n");
111 log_verbose("PASS: getting IANA and MIME standard names works\n");
115 static int dotestconv(const char *name, const char *standard, const char *expected) {
122 tag = ucnv_getCanonicalName(name, standard, &error);
124 log_err("FAIL: Unexpectedly found %s canonical name for %s, got %s\n", standard, name, tag);
128 log_err_status(error, "FAIL: could not find %s canonical name for %s\n", (standard ? "\"\"" : standard), name);
132 log_err("FAIL: expected %s for %s canonical name for %s, got %s\n", expected, standard, name, tag);
136 log_verbose("PASS: (\"%s\", \"%s\") -> %s == %s \n", name, standard, tag, expected);
171 static UBool doTestNames(const char *name, const char *standard, const char **expected, int32_t size) {
173 UEnumeration *myEnum = ucnv_openStandardNames(name, standard, &err);
179 log_data_err("Unable to open standard names for %s of standard: %s\n", name, standard);
190 log_verbose("\n%s %s\n", name, standard);
208 log_err("FAIL: uenum_next(past the list) did not return NULL[0] with U_SUCCESS(). name=%s standard=%s len=%d err=%s\n", name, standard, len, u_errorName(err));
215 name, standard, u_errorName(err));
223 static UBool doTestUCharNames(const char *name, const char *standard, const char **expected, int32_t size) {
225 UEnumeration *myEnum = ucnv_openStandardNames(name, standard, &err);
230 log_data_err("Unable to open standard names for %s of standard: %s\n", name, standard);
242 log_verbose("\n%s %s\n", name, standard);
262 name, standard, u_errorName(err));