2 * Character Set Conversion Library 1.0 -- Character Set Names
4 * (c) 1998--2005 Martin Mares <mj@ucw.cz>
5 * (c) 2007 Pavel Charvat <pchar@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU General Public License.
12 #include "charset/charconv.h"
16 /* Names according to RFC 1345 (see http://www.iana.org/assignments/character-sets) */
18 static const char *cs_names[] = {
49 find_charset_by_name(const char *c)
53 for(i=0; i<CONV_NUM_CHARSETS; i++)
54 if (!strcasecmp(cs_names[i], c))
62 if (i < 0 || i > CONV_NUM_CHARSETS)
65 return (char *)cs_names[i];