Lines Matching refs:lang
220 elem->lang = apr_xml_quote_string(parser->p, attr->value, 1);
237 ** If an xml:lang attribute didn't exist (lang==NULL), then copy the
242 if (elem->lang == NULL && elem->parent != NULL)
243 elem->lang = elem->parent->lang;
659 ** and an xml:lang attribute, if applicable.
668 if (elem->lang != NULL) {
669 /* compute size of: ' xml:lang="%s"' */
670 size += 11 + strlen(elem->lang) + 1;
711 ** If the element has an xml:lang value that is *different* from
712 ** its parent, then add the thing in: ' xml:lang="%s"'.
715 ** the parsing for "inheriting" the xml:lang values from parents.
717 if (elem->lang != NULL &&
718 (elem->parent == NULL || elem->lang != elem->parent->lang)) {
719 size += 11 + strlen(elem->lang) + 1;
724 * This style prepends the xml:lang value plus a null terminator.
725 * If a lang value is not present, then we insert a null term.
727 size = elem->lang ? strlen(elem->lang) + 1 : 1;
783 /* add the xml:lang value if necessary */
784 if (elem->lang != NULL &&
787 elem->lang != elem->parent->lang)) {
788 len = sprintf(s, " xml:lang=\"%s\"", elem->lang);
814 /* prepend the xml:lang value */
815 if (elem->lang != NULL) {
816 len = strlen(elem->lang);
817 memcpy(s, elem->lang, len);