version 1.28, 2000/09/22 10:57:40
|
version 1.29, 2000/10/01 20:29:37
|
Line 61 htmlGetMetaEncoding(htmlDocPtr doc) {
|
Line 61 htmlGetMetaEncoding(htmlDocPtr doc) {
|
*/ |
*/ |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"html")) |
if (xmlStrEqual(cur->name, BAD_CAST"html")) |
break; |
break; |
if (!xmlStrcmp(cur->name, BAD_CAST"head")) |
if (xmlStrEqual(cur->name, BAD_CAST"head")) |
goto found_head; |
goto found_head; |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) |
goto found_meta; |
goto found_meta; |
} |
} |
cur = cur->next; |
cur = cur->next; |
Line 79 htmlGetMetaEncoding(htmlDocPtr doc) {
|
Line 79 htmlGetMetaEncoding(htmlDocPtr doc) {
|
*/ |
*/ |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"head")) |
if (xmlStrEqual(cur->name, BAD_CAST"head")) |
break; |
break; |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) |
goto found_meta; |
goto found_meta; |
} |
} |
cur = cur->next; |
cur = cur->next; |
Line 97 found_head:
|
Line 97 found_head:
|
found_meta: |
found_meta: |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) { |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) { |
xmlAttrPtr attr = cur->properties; |
xmlAttrPtr attr = cur->properties; |
int http; |
int http; |
const xmlChar *value; |
const xmlChar *value; |
Line 191 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
Line 191 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
*/ |
*/ |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"html")) |
if (xmlStrEqual(cur->name, BAD_CAST"html")) |
break; |
break; |
if (!xmlStrcmp(cur->name, BAD_CAST"body")) { |
if (xmlStrEqual(cur->name, BAD_CAST"body")) { |
if (encoding == NULL) |
if (encoding == NULL) |
return(0); |
return(0); |
meta = xmlNewDocNode(doc, NULL, BAD_CAST"head", NULL); |
meta = xmlNewDocNode(doc, NULL, BAD_CAST"head", NULL); |
Line 205 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
Line 205 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
xmlNewProp(meta, BAD_CAST"content", BAD_CAST newcontent); |
xmlNewProp(meta, BAD_CAST"content", BAD_CAST newcontent); |
return(0); |
return(0); |
} |
} |
if (!xmlStrcmp(cur->name, BAD_CAST"head")) |
if (xmlStrEqual(cur->name, BAD_CAST"head")) |
goto found_head; |
goto found_head; |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) |
goto found_meta; |
goto found_meta; |
} |
} |
cur = cur->next; |
cur = cur->next; |
Line 221 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
Line 221 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
*/ |
*/ |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"head")) |
if (xmlStrEqual(cur->name, BAD_CAST"head")) |
break; |
break; |
if (!xmlStrcmp(cur->name, BAD_CAST"body")) { |
if (xmlStrEqual(cur->name, BAD_CAST"body")) { |
if (encoding == NULL) |
if (encoding == NULL) |
return(0); |
return(0); |
meta = xmlNewDocNode(doc, NULL, BAD_CAST"head", NULL); |
meta = xmlNewDocNode(doc, NULL, BAD_CAST"head", NULL); |
Line 235 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
Line 235 htmlSetMetaEncoding(htmlDocPtr doc, cons
|
xmlNewProp(meta, BAD_CAST"content", BAD_CAST newcontent); |
xmlNewProp(meta, BAD_CAST"content", BAD_CAST newcontent); |
return(0); |
return(0); |
} |
} |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) |
goto found_meta; |
goto found_meta; |
} |
} |
cur = cur->next; |
cur = cur->next; |
Line 272 found_meta:
|
Line 272 found_meta:
|
*/ |
*/ |
while (cur != NULL) { |
while (cur != NULL) { |
if (cur->name != NULL) { |
if (cur->name != NULL) { |
if (!xmlStrcmp(cur->name, BAD_CAST"meta")) { |
if (xmlStrEqual(cur->name, BAD_CAST"meta")) { |
xmlAttrPtr attr = cur->properties; |
xmlAttrPtr attr = cur->properties; |
int http; |
int http; |
const xmlChar *value; |
const xmlChar *value; |