• Home
  • Raw
  • Download

Lines Matching refs:domain

234   struct loaded_l10nfile *domain;  member
309 static char *plural_lookup (struct loaded_l10nfile *domain,
434 struct loaded_l10nfile *domain; in DCIGETTEXT() local
494 retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, in DCIGETTEXT()
617 domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); in DCIGETTEXT()
619 if (domain != NULL) in DCIGETTEXT()
621 retval = _nl_find_msg (domain, binding, msgid1, &retlen); in DCIGETTEXT()
627 for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) in DCIGETTEXT()
629 retval = _nl_find_msg (domain->successor[cnt], binding, in DCIGETTEXT()
634 domain = domain->successor[cnt]; in DCIGETTEXT()
661 newp->domain = domain; in DCIGETTEXT()
678 (*foundp)->domain = domain; in DCIGETTEXT()
687 retval = plural_lookup (domain, n, retval, retlen); in DCIGETTEXT()
728 struct loaded_domain *domain; in _nl_find_msg() local
740 domain = (struct loaded_domain *) domain_file->data; in _nl_find_msg()
742 nstrings = domain->nstrings; in _nl_find_msg()
745 if (domain->hash_tab != NULL) in _nl_find_msg()
750 nls_uint32 idx = hash_val % domain->hash_size; in _nl_find_msg()
751 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); in _nl_find_msg()
756 W (domain->must_swap_hash_tab, domain->hash_tab[idx]); in _nl_find_msg()
768 ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len in _nl_find_msg()
770 domain->data + W (domain->must_swap, in _nl_find_msg()
771 domain->orig_tab[nstr].offset)) in _nl_find_msg()
773 : domain->orig_sysdep_tab[nstr - nstrings].length > len in _nl_find_msg()
775 domain->orig_sysdep_tab[nstr - nstrings].pointer) in _nl_find_msg()
782 if (idx >= domain->hash_size - incr) in _nl_find_msg()
783 idx -= domain->hash_size - incr; in _nl_find_msg()
802 cmp_val = strcmp (msgid, (domain->data in _nl_find_msg()
803 + W (domain->must_swap, in _nl_find_msg()
804 domain->orig_tab[act].offset))); in _nl_find_msg()
822 (domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); in _nl_find_msg()
823 resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; in _nl_find_msg()
827 result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer; in _nl_find_msg()
828 resultlen = domain->trans_sysdep_tab[act - nstrings].length; in _nl_find_msg()
832 if (domain->codeset_cntr in _nl_find_msg()
838 _nl_free_domain_conv (domain); in _nl_find_msg()
839 _nl_init_domain_conv (domain_file, domain, domainbinding); in _nl_find_msg()
844 domain->conv != (__gconv_t) -1 in _nl_find_msg()
847 domain->conv != (iconv_t) -1 in _nl_find_msg()
861 if (domain->conv_tab == NULL in _nl_find_msg()
862 && ((domain->conv_tab = in _nl_find_msg()
863 (char **) calloc (nstrings + domain->n_sysdep_strings, in _nl_find_msg()
867 domain->conv_tab = (char **) -1; in _nl_find_msg()
869 if (__builtin_expect (domain->conv_tab == (char **) -1, 0)) in _nl_find_msg()
873 if (domain->conv_tab[act] == NULL) in _nl_find_msg()
908 res = __gconv (domain->conv, in _nl_find_msg()
935 if (iconv (domain->conv, in _nl_find_msg()
1004 domain->conv_tab[act] = (char *) freemem; in _nl_find_msg()
1016 result = domain->conv_tab[act] + sizeof (size_t); in _nl_find_msg()
1017 resultlen = *(size_t *) domain->conv_tab[act]; in _nl_find_msg()
1033 plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, in plural_lookup() argument
1036 struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; in plural_lookup()