Lines Matching refs:psl
53 static void testx(const psl_ctx_t *psl, const char *domain, const char *encoding, const char *lang,… in testx() argument
74 result = psl_registrable_domain(psl, domain); in testx()
87 static void test(const psl_ctx_t *psl, const char *domain, const char *expected_result) in test() argument
89 testx(psl, domain, "utf-8", "en", expected_result); in test()
92 static void test_iso(const psl_ctx_t *psl, const char *domain, const char *expected_result) in test_iso() argument
96 testx(psl, domain, "iso-8859-15", "de", expected_result); in test_iso()
103 const psl_ctx_t *psl; in test_psl() local
110 psl = psl_builtin(); in test_psl()
112 …tf("have %d suffixes and %d exceptions\n", psl_suffix_count(psl), psl_suffix_exception_count(psl)); in test_psl()
125 test(psl, "www.\303\230yer.no", "www.\303\270yer.no"); in test_psl()
129 test(psl, "www.\303\270yer.no", "www.\303\270yer.no"); in test_psl()
132 test_iso(psl, "www.\370yer.no", "www.\303\270yer.no"); in test_psl()
140 test_iso(psl, lbuf, NULL); in test_psl()
144 test(psl, lbuf, NULL); in test_psl()
148 test(psl, "whoever.forgot.his.name", "whoever.forgot.his.name"); in test_psl()
151 test(psl, "forgot.his.name", NULL); in test_psl()
154 test(psl, "his.name", "his.name"); in test_psl()
188 test(psl, d_is_null ? NULL : domain, er_is_null ? NULL : expected_regdom); in test_psl()