2 * Character Set Conversion Library 1.0 -- Character Set Names
4 * (c) 1998--2005 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU General Public License.
11 #include "charset/charconv.h"
15 /* Names according to RFC 1345 (see http://www.iana.org/assignments/character-sets) */
17 static const char *cs_names[] = {
46 find_charset_by_name(const char *c)
50 for(i=0; i<CONV_NUM_CHARSETS; i++)
51 if (!strcasecmp(cs_names[i], c))
59 if (i < 0 || i > CONV_NUM_CHARSETS)
62 return (char *)cs_names[i];