Lines Matching defs:lang
97 const char *lang)
106 *langp = lang;
208 apr_array_header_t *content_languages; /* list of lang. for this variant */
252 float default_lang_quality; /* fiddle lang q for variants with no lang */
1451 static int find_lang_index(apr_array_header_t *accept_langs, char *lang)
1456 if (!lang || !accept_langs) {
1463 if (!strncmp(lang, *alang, strlen(*alang))) {
1577 char *lang, *p;
1588 /* lang is the variant's language-tag, which is the one
1591 lang = ((char **) (variant->content_languages->elts))[j];
1624 if ((strlen(lang) >= alen) &&
1625 !strncmp(lang, accs[i].name, alen) &&
1626 ((lang[alen] == 0) || (lang[alen] == '-')) ) {
1654 if (!strncmp(lang, accs[i].name, plen)) {
1706 /* lang is the variant's language-tag, which is the one
1709 char *lang = ((char **) (variant->content_languages->elts))[j];
1715 idx = find_lang_index(neg->conf->language_priority, lang);
2067 "Variant: file=%s type=%s lang=%s sourceq=%1.3f "
2138 "Variant: file=%s type=%s lang=%s sourceq=%1.3f "
2246 static int variant_has_language(var_rec *variant, const char *lang)
2251 if ( !lang
2258 if (!strcmp(lang,
2455 char *lang;
2487 lang = apr_array_pstrcat(r->pool, variant->content_languages, ',');
2490 lang = NULL;
2498 sample_language = lang;
2515 lang ? lang : "")) {
2561 if (lang) {
2563 *((const char **) apr_array_push(arr)) = lang;