Home | History | Annotate | Download | only in intl

Lines Matching full:domain

219   /* Domain in which to search.  */
229 struct loaded_l10nfile *domain;
286 /* Name of the default domain used for gettext(3) prior any call to
290 /* Value used as the default domain for gettext(3). */
307 static char *plural_lookup PARAMS ((struct loaded_l10nfile *domain,
438 struct loaded_l10nfile *domain;
469 /* If DOMAINNAME is NULL, we are interested in the default domain. If
498 retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation,
614 domain. Return the MSGID. */
621 domain = _nl_find_domain (dirname, single_locale, xdomainname, binding);
623 if (domain != NULL)
625 retval = _nl_find_msg (domain, binding, msgid1, &retlen);
631 for (cnt = 0; domain->successor[cnt] != NULL; ++cnt)
633 retval = _nl_find_msg (domain->successor[cnt], binding,
638 domain = domain->successor[cnt];
646 /* Found the translation of MSGID1 in domain DOMAIN:
665 newp->domain = domain;
682 (*foundp)->domain = domain;
691 retval = plural_lookup (domain, n, retval, retlen);
733 struct loaded_domain *domain;
745 domain = (struct loaded_domain *) domain_file->data;
747 nstrings = domain->nstrings;
750 if (domain->hash_tab != NULL)
755 nls_uint32 idx = hash_val % domain->hash_size;
756 nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));
761 W (domain->must_swap_hash_tab, domain->hash_tab[idx]);
773 ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len
775 domain->data + W (domain->must_swap,
776 domain->orig_tab[nstr].offset))
778 : domain->orig_sysdep_tab[nstr - nstrings].length > len
780 domain->orig_sysdep_tab[nstr - nstrings].pointer)
787 if (idx >= domain->hash_size - incr)
788 idx -= domain->hash_size - incr;
807 cmp_val = strcmp (msgid, (domain->data
808 + W (domain->must_swap,
809 domain->orig_tab[act].offset)));
827 (domain->data + W (domain->must_swap, domain->trans_tab[act].offset));
828 resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1;
832 result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer;
833 resultlen = domain->trans_sysdep_tab[act - nstrings].length;
837 if (domain->codeset_cntr
840 /* The domain's codeset has changed through bind_textdomain_codeset()
843 _nl_free_domain_conv (domain);
844 _nl_init_domain_conv (domain_file, domain, domainbinding);
849 domain->conv != (__gconv_t) -1
852 domain->conv != (iconv_t) -1
866 if (domain->conv_tab == NULL
867 && ((domain->conv_tab =
868 (char **) calloc (nstrings + domain->n_sysdep_strings,
872 domain->conv_tab = (char **) -1;
874 if (__builtin_expect (domain->conv_tab == (char **) -1, 0))
878 if (domain->conv_tab[act] == NULL)
913 res = __gconv (domain->conv,
940 if (iconv (domain->conv,
1009 domain->conv_tab[act] = (char *) freemem;
1019 /* Now domain->conv_tab[act] contains the translation of all
1021 result = domain->conv_tab[act] + sizeof (size_t);
1022 resultlen = *(size_t *) domain->conv_tab[act];
1038 plural_lookup (domain, n, translation, translation_len)
1039 struct loaded_l10nfile *domain;
1044 struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;