Lines Matching refs:domain
224 /* Domain in which to search. */
234 struct loaded_l10nfile *domain;
288 /* Name of the default domain used for gettext(3) prior any call to
292 /* Value used as the default domain for gettext(3). */
309 static char *plural_lookup (struct loaded_l10nfile *domain,
434 struct loaded_l10nfile *domain;
465 /* If DOMAINNAME is NULL, we are interested in the default domain. If
494 retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation,
610 domain. Return the MSGID. */
617 domain = _nl_find_domain (dirname, single_locale, xdomainname, binding);
619 if (domain != NULL)
621 retval = _nl_find_msg (domain, binding, msgid1, &retlen);
627 for (cnt = 0; domain->successor[cnt] != NULL; ++cnt)
629 retval = _nl_find_msg (domain->successor[cnt], binding,
634 domain = domain->successor[cnt];
642 /* Found the translation of MSGID1 in domain DOMAIN:
661 newp->domain = domain;
678 (*foundp)->domain = domain;
687 retval = plural_lookup (domain, n, retval, retlen);
728 struct loaded_domain *domain;
740 domain = (struct loaded_domain *) domain_file->data;
742 nstrings = domain->nstrings;
745 if (domain->hash_tab != NULL)
750 nls_uint32 idx = hash_val % domain->hash_size;
751 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));
756 W (domain->must_swap_hash_tab, domain->hash_tab[idx]);
768 ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len
770 domain->data + W (domain->must_swap,
771 domain->orig_tab[nstr].offset))
773 : domain->orig_sysdep_tab[nstr - nstrings].length > len
775 domain->orig_sysdep_tab[nstr - nstrings].pointer)
782 if (idx >= domain->hash_size - incr)
783 idx -= domain->hash_size - incr;
802 cmp_val = strcmp (msgid, (domain->data
803 + W (domain->must_swap,
804 domain->orig_tab[act].offset)));
822 (domain->data + W (domain->must_swap, domain->trans_tab[act].offset));
823 resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1;
827 result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer;
828 resultlen = domain->trans_sysdep_tab[act - nstrings].length;
832 if (domain->codeset_cntr
835 /* The domain's codeset has changed through bind_textdomain_codeset()
838 _nl_free_domain_conv (domain);
839 _nl_init_domain_conv (domain_file, domain, domainbinding);
844 domain->conv != (__gconv_t) -1
847 domain->conv != (iconv_t) -1
861 if (domain->conv_tab == NULL
862 && ((domain->conv_tab =
863 (char **) calloc (nstrings + domain->n_sysdep_strings,
867 domain->conv_tab = (char **) -1;
869 if (__builtin_expect (domain->conv_tab == (char **) -1, 0))
873 if (domain->conv_tab[act] == NULL)
908 res = __gconv (domain->conv,
935 if (iconv (domain->conv,
1004 domain->conv_tab[act] = (char *) freemem;
1014 /* Now domain->conv_tab[act] contains the translation of all
1016 result = domain->conv_tab[act] + sizeof (size_t);
1017 resultlen = *(size_t *) domain->conv_tab[act];
1033 plural_lookup (struct loaded_l10nfile *domain, unsigned long int n,
1036 struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;