Lines Matching refs:maps
447 for (i = 0; maps[i].name; i++)
448 if (!ascii_strcasecmp(code, maps[i].name)) {
449 if (!maps[i].charset) {
450 maps[i].charset = (struct charset *)malloc(sizeof(struct charset));
451 if (maps[i].charset) {
454 free(maps[i].charset);
455 maps[i].charset = 0;
458 maps[i].charset->max = 1;
459 maps[i].charset->mbtowc = &mbtowc_8bit;
460 maps[i].charset->wctomb = &wctomb_8bit;
461 maps[i].charset->map = map;
462 map->from = maps[i].map;
467 return maps[i].charset;