Lines Matching refs:codeset

191     CodeSet codeset)
196 if (codeset->mbconv) {
197 mb_tmp = conv_to_dest(codeset->mbconv, mb);
202 if (codeset->side == XlcC0 || codeset->side == XlcGL ||
203 codeset->side == XlcC1 || codeset->side == XlcGR) {
205 for (i = 0; i < codeset->length; i++)
216 CodeSet codeset)
221 if (codeset->side == XlcC1 || codeset->side == XlcGR) {
222 for (i = 0; i < codeset->length; i++)
227 if (codeset->mbconv)
228 return( conv_to_source(codeset->mbconv, glyph_index) );
237 CodeSet codeset,
241 unsigned long wc_encoding = codeset->wc_encoding;
242 int length = codeset->length;
260 CodeSet *codeset)
271 for (*codeset = NULL, i = 0; i < codeset_num; i++) {
273 *codeset = codeset_list[i];
277 if (*codeset == NULL)
283 for (*glyph_index = 0, i = (*codeset)->length - 1; i >= 0; i--)
302 CodeSet codeset;
307 codeset = parse_info->codeset;
309 state->GL_codeset = codeset;
311 state->GR_codeset = codeset;
315 return codeset;
327 CodeSet codeset;
339 codeset = codeset_list[i];
340 byteM = codeset->byteM;
341 if (codeset->side != XlcNONE || byteM == NULL)
344 for (j = 0; j < codeset->length; j++) {
362 return(codeset);
375 CodeSet codeset)
378 XlcCharSet *charset_list = codeset->charset_list;
379 int num_charsets = codeset->num_charsets;
380 ExtdSegment ctextseg = codeset->ctextseg;
503 CodeSet codeset;
512 codeset = codeset_list[i];
514 num_charsets = codeset->num_charsets;
515 charset_list = codeset->charset_list;
516 ctextseg = codeset->ctextseg;
592 CodeSet codeset;
598 codeset = codeset_list[i];
600 num_charsets = codeset->num_charsets;
601 charset_list = codeset->charset_list;
609 return(codeset);
620 CodeSet *codeset,
634 *codeset = codeset_list[num];
635 ctconv = (*codeset)->ctconv;
636 ctextseg = (*codeset)->ctextseg;
638 num_charsets = (*codeset)->num_charsets;
639 charset_list = (*codeset)->charset_list;
682 #define check_string_encoding(codeset) (codeset->string_encoding)
754 CodeSet codeset = NULL;
794 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
795 if (codeset != NULL) {
796 length = len_left = codeset->length;
803 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1))))
807 if ((codeset = GLGR_parse_codeset(ch)))
810 /* can't find codeset for the ch */
815 length = len_left = codeset->length;
824 gi_to_wc(lcd, mb_to_gi(mb, codeset), codeset, &wc);
913 CodeSet codeset;
937 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
951 mb = gi_to_mb(glyph_index, codeset);
952 if (codeset->parse_info) {
954 switch (codeset->parse_info->type) {
956 if (codeset != state->GL_codeset) {
958 state->GL_codeset = codeset;
962 if (codeset != state->GR_codeset) {
964 state->GR_codeset = codeset;
974 encoding = codeset->parse_info->encoding;
987 length = codeset->length;
1070 CodeSet codeset;
1093 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
1099 if ( !(charset = gi_parse_charset(glyph_index, codeset)) ) {
1169 if (codeset->ctconv)
1170 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
1253 CodeSet codeset = NULL;
1370 /* get codeset */
1372 &codeset, &glyph_index) ) {
1378 gi_to_wc(lcd, glyph_index, codeset, &wc);
1439 CodeSet codeset = NULL;
1491 /* get codeset */
1493 &codeset, &glyph_index) ) {
1499 gi_to_wc(lcd, glyph_index, codeset, &wc);
1645 CodeSet codeset = NULL;
1685 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
1686 if (codeset != NULL) {
1687 length = len_left = codeset->length;
1694 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1))))
1698 if ((codeset = GLGR_parse_codeset(ch)))
1701 /* can't find codeset for the ch */
1706 length = len_left = codeset->length;
1715 if (check_string_encoding(codeset)) {
1761 CodeSet codeset = NULL;
1796 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
1797 if (codeset != NULL) {
1798 length = len_left = codeset->length;
1805 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1))))
1809 if ((codeset = GLGR_parse_codeset(ch)))
1812 /* can't find codeset for the ch */
1817 length = len_left = codeset->length;
1826 glyph_index = mb_to_gi(mb, codeset);
1827 if (!(charset = gi_parse_charset(glyph_index, codeset))) {
1835 if (codeset->ctconv)
1836 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
1940 CodeSet codeset;
1963 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
1977 mb = gi_to_mb(glyph_index, codeset);
1979 if (check_string_encoding(codeset)) {
1980 if (codeset->parse_info) {
1982 switch (codeset->parse_info->type) {
1984 if (codeset != state->GL_codeset) {
1986 state->GL_codeset = codeset;
1990 if (codeset != state->GR_codeset) {
1992 state->GR_codeset = codeset;
2002 encoding = codeset->parse_info->encoding;
2016 length = codeset->length;
2095 CodeSet codeset;
2114 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
2119 if ( !(charset = gi_parse_charset(glyph_index, codeset)) ) {
2127 if (codeset->ctconv)
2128 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
2404 CodeSet codeset;
2426 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GL");
2429 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GR");
2432 if (!codeset) {
2437 mb = gi_to_mb(glyph_index, codeset);
2438 if (codeset->parse_info) {
2440 switch (codeset->parse_info->type) {
2442 if (codeset != state->GL_codeset) {
2444 state->GL_codeset = codeset;
2448 if (codeset != state->GR_codeset) {
2450 state->GR_codeset = codeset;
2460 encoding = codeset->parse_info->encoding;
2473 length = codeset->length;
2511 CodeSet codeset;
2533 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GL");
2536 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GR");
2539 if (!codeset) {
2544 gi_to_wc(lcd, glyph_index, codeset, &wc);