Lines Matching refs:tld

166 idn_mapselector_add(idn_mapselector_t ctx, const char *tld, const char *name) {
171 assert(ctx != NULL && tld != NULL);
173 TRACE(("idn_mapselector_add(tld=%s, name=%s)\n", tld, name));
175 if (!(tld[0] == '.' && tld[1] == '\0')) {
176 if (tld[0] == '.')
177 tld++;
178 if (strchr(tld, '.') != NULL) {
180 "invalid TLD \"%-.100s\"\n", tld));
185 if (strlen(tld) > MAPSELECTOR_MAX_TLD_LENGTH) {
187 "too long TLD \"%-.100s\"\n", tld));
191 strcpy(hash_key, tld);
212 idn_mapselector_addall(idn_mapselector_t ctx, const char *tld,
217 assert(ctx != NULL && tld != NULL && scheme_names != NULL);
219 TRACE(("idn_mapselector_addall(tld=%s, nschemes=%d)\n",
220 tld, nschemes));
223 r = idn_mapselector_add(ctx, tld, (const char *)*scheme_names);
236 idn_mapselector_mapper(idn_mapselector_t ctx, const char *tld) {
241 assert(ctx != NULL && tld != NULL);
243 TRACE(("idn_mapselector_mapper(tld=%s)\n", tld));
245 if (!(tld[0] == '.' && tld[1] == '\0')) {
246 if (tld[0] == '.')
247 tld++;
248 if (strchr(tld, '.') != NULL)
251 if (strlen(tld) > MAPSELECTOR_MAX_TLD_LENGTH)
253 strcpy(hash_key, tld);
268 const char *tld, unsigned long *to, size_t tolen) {
276 TRACE(("idn_mapselector_map(from=\"%s\", tld=\"%s\", tolen=%d)\n",
277 idn__debug_ucs4xstring(from, 50), idn__debug_xstring(tld, 50),
280 if (!(tld[0] == '.' && tld[1] == '\0')) {
281 if (tld[0] == '.')
282 tld++;
283 if (strchr(tld, '.') != NULL) {
288 if (strlen(tld) > MAPSELECTOR_MAX_TLD_LENGTH) {
292 strcpy(hash_key, tld);
318 TRACE(("idn_mapselector_map(): tld=%s\n", tld));
337 const unsigned long *tld, unsigned long *to,
344 TRACE(("idn_mapselector_map2(from=\"%s\", tld=\"%s\")\n",
346 idn__debug_ucs4xstring(tld, 50)));
348 r = idn_ucs4_ucs4toutf8(tld, tld_utf8, sizeof(tld_utf8));