From 3ccfb61399e6148be5a8b3141f35af272d10622d Mon Sep 17 00:00:00 2001 From: Jacob Leach Date: Wed, 3 May 2000 14:43:10 +0000 Subject: s/strcasecmp/g_strcasecamp/ everywhere except intl/, per michael's request. svn path=/trunk/; revision=2776 --- camel/camel-mime-utils.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'camel/camel-mime-utils.c') diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3f4c4d99d3..f53531feb7 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -808,7 +808,7 @@ char *rfc2047_encode_word(const char *in, int len, char *type) out = buffer; /* if we can't convert from utf-8, just encode as utf-8 */ - if (!strcasecmp(type, "UTF-8") + if (!g_strcasecmp(type, "UTF-8") || (ic = unicode_iconv_open(type, "UTF-8")) == (unicode_iconv_t)-1) { memcpy(buffer, in, len); out = buffer+len; @@ -1065,7 +1065,7 @@ header_decode_param(const char **in, char **paramp, char **valuep) char * header_param(struct _header_param *p, const char *name) { - while (p && strcasecmp(p->name, name) != 0) + while (p && g_strcasecmp(p->name, name) != 0) p = p->next; if (p) return p->value; @@ -1079,7 +1079,7 @@ header_set_param(struct _header_param **l, const char *name, const char *value) while (p->next) { pn = p->next; - if (!strcasecmp(pn->name, name)) { + if (!g_strcasecmp(pn->name, name)) { g_free(pn->value); if (value) { pn->value = g_strdup(value); @@ -1135,16 +1135,16 @@ header_content_type_is(struct _header_content_type *ct, const char *type, const { /* no type == text/plain or text/"*" */ if (ct==NULL) { - return (!strcasecmp(type, "text") - && (!strcasecmp(subtype, "plain") - || !strcasecmp(subtype, "*"))); + return (!g_strcasecmp(type, "text") + && (!g_strcasecmp(subtype, "plain") + || !g_strcasecmp(subtype, "*"))); } return (ct->type != NULL - && (!strcasecmp(ct->type, type) + && (!g_strcasecmp(ct->type, type) && ((ct->subtype != NULL - && !strcasecmp(ct->subtype, subtype)) - || !strcasecmp("*", subtype)))); + && !g_strcasecmp(ct->subtype, subtype)) + || !g_strcasecmp("*", subtype)))); } void @@ -1660,7 +1660,7 @@ header_content_type_decode(const char *in) inptr++; subtype = decode_token(&inptr); } - if (subtype == NULL && (!strcasecmp(type, "text"))) { + if (subtype == NULL && (!g_strcasecmp(type, "text"))) { g_warning("text type with no subtype, resorting to text/plain: %s", in); subtype = g_strdup("plain"); } @@ -1713,7 +1713,7 @@ header_content_type_format(struct _header_content_type *ct) g_warning("Content-Type with no main type"); } else if (ct->subtype == NULL) { g_warning("Content-Type with no sub type: %s", ct->type); - if (!strcasecmp(ct->type, "multipart")) + if (!g_strcasecmp(ct->type, "multipart")) g_string_sprintfa(out, "%s/mixed", ct->type); else g_string_sprintfa(out, "%s", ct->type); @@ -1879,7 +1879,7 @@ header_decode_date(const char *in, int *saveoffset) monthname = decode_token(&inptr); if (monthname) { for (i=0;iname, name)) + if (!g_strcasecmp(l->name, name)) break; l = l->next; } @@ -2103,7 +2103,7 @@ header_raw_remove(struct _header_raw **list, const char *name) p = (struct _header_raw *)list; l = *list; while (l) { - if (!strcasecmp(l->name, name)) { + if (!g_strcasecmp(l->name, name)) { p->next = l->next; header_raw_free(l); l = p->next; -- cgit v1.2.3