Mercurial > dovecot > core-2.2
view src/lib-charset/charset-ascii.c @ 568:f2aa58c2afd0 HEAD
SEARCH CHARSET support. Currently we do it through iconv() and only ASCII
characters are compared case-insensitively.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 03 Nov 2002 10:39:43 +0200 |
parents | |
children | c96607edbcb0 |
line wrap: on
line source
/* Copyright (C) 2002 Timo Sirainen */ #include "lib.h" #ifndef HAVE_ICONV_H const char *charset_to_ucase_utf8(const unsigned char *data, size_t *size, const char *charset, int *unknown_charset) { if (charset == NULL || strcasecmp(charset, "us-ascii") == 0) return str_ucase(t_strdup_noconst(data)); if (unknown_charset != NULL) *unknown_charset = TRUE; return NULL; } #endif