Home | History | Annotate | Download | only in gen

Lines Matching refs:CodeSet

79     CodeSet  GL_codeset;
80 CodeSet GR_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)
268 CodeSet *codeset_list = XLC_GENERIC(lcd, codeset_list);
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--)
290 static CodeSet
302 CodeSet codeset;
307 codeset = parse_info->codeset;
309 state->GL_codeset = codeset;
311 state->GR_codeset = codeset;
315 return codeset;
318 return (CodeSet) NULL;
321 static CodeSet
328 CodeSet codeset;
337 CodeSet *codeset_list = XLC_GENERIC(lcd, codeset_list);
340 codeset = codeset_list[i];
341 byteM = codeset->byteM;
342 if (codeset->side != XlcNONE || byteM == NULL)
344 if (codeset->length > remaining_bytes)
347 for (j = 0; j < codeset->length; j++) {
365 return(codeset);
378 CodeSet codeset)
381 XlcCharSet *charset_list = codeset->charset_list;
382 int num_charsets = codeset->num_charsets;
383 ExtdSegment ctextseg = codeset->ctextseg;
506 CodeSet codeset;
508 CodeSet *codeset_list = XLC_GENERIC(lcd, codeset_list);
515 codeset = codeset_list[i];
517 num_charsets = codeset->num_charsets;
518 charset_list = codeset->charset_list;
519 ctextseg = codeset->ctextseg;
586 static CodeSet
595 CodeSet codeset;
598 CodeSet *codeset_list = XLC_GENERIC(lcd, codeset_list);
601 codeset = codeset_list[i];
603 num_charsets = codeset->num_charsets;
604 charset_list = codeset->charset_list;
612 return(codeset);
623 CodeSet *codeset,
627 CodeSet *codeset_list = XLC_GENERIC(lcd, codeset_list);
637 *codeset
638 ctconv = (*codeset)->ctconv;
639 ctextseg = (*codeset)->ctextseg;
641 num_charsets = (*codeset)->num_charsets;
642 charset_list = (*codeset)->charset_list;
685 #define check_string_encoding(codeset) (codeset->string_encoding)
757 CodeSet codeset = NULL;
797 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
798 if (codeset != NULL) {
799 length = len_left = codeset->length;
806 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1), (*from_left) + 1)))
810 if ((codeset = GLGR_parse_codeset(ch)))
813 /* can't find codeset for the ch */
818 length = len_left = codeset->length;
827 gi_to_wc(lcd, mb_to_gi(mb, codeset), codeset, &wc);
916 CodeSet codeset;
940 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
954 mb = gi_to_mb(glyph_index, codeset);
955 if (codeset->parse_info) {
957 switch (codeset->parse_info->type) {
959 if (codeset != state->GL_codeset) {
961 state->GL_codeset = codeset;
965 if (codeset != state->GR_codeset) {
967 state->GR_codeset = codeset;
977 encoding = codeset->parse_info->encoding;
990 length = codeset->length;
1073 CodeSet codeset;
1096 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
1102 if ( !(charset = gi_parse_charset(glyph_index, codeset)) ) {
1172 if (codeset->ctconv)
1173 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
1256 CodeSet codeset = NULL;
1373 /* get codeset */
1375 &codeset, &glyph_index) ) {
1381 gi_to_wc(lcd, glyph_index, codeset, &wc);
1442 CodeSet codeset = NULL;
1494 /* get codeset */
1496 &codeset, &glyph_index) ) {
1502 gi_to_wc(lcd, glyph_index, codeset, &wc);
1648 CodeSet codeset = NULL;
1688 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
1689 if (codeset != NULL) {
1690 length = len_left = codeset->length;
1697 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1), (*from_left) + 1)))
1701 if ((codeset = GLGR_parse_codeset(ch)))
1704 /* can't find codeset for the ch */
1709 length = len_left = codeset->length;
1718 if (check_string_encoding(codeset)) {
1764 CodeSet codeset = NULL;
1799 codeset = mb_parse_codeset(state, num, &inbufptr, from_left);
1800 if (codeset != NULL) {
1801 length = len_left = codeset->length;
1808 if ((codeset = byteM_parse_codeset(lcd, (inbufptr - 1), (*from_left) + 1)))
1812 if ((codeset = GLGR_parse_codeset(ch)))
1815 /* can't find codeset for the ch */
1820 length = len_left = codeset->length;
1829 glyph_index = mb_to_gi(mb, codeset);
1830 if (!(charset = gi_parse_charset(glyph_index, codeset))) {
1838 if (codeset->ctconv)
1839 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
1943 CodeSet codeset;
1966 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
1980 mb = gi_to_mb(glyph_index, codeset);
1982 if (check_string_encoding(codeset)) {
1983 if (codeset->parse_info) {
1985 switch (codeset->parse_info->type) {
1987 if (codeset != state->GL_codeset) {
1989 state->GL_codeset = codeset;
1993 if (codeset != state->GR_codeset) {
1995 state->GR_codeset = codeset;
2005 encoding = codeset->parse_info->encoding;
2019 length = codeset->length;
2098 CodeSet codeset;
2117 if ( !wc_to_gi(lcd, wc, &glyph_index, &codeset) ) {
2122 if ( !(charset = gi_parse_charset(glyph_index, codeset)) ) {
2130 if (codeset->ctconv)
2131 glyph_index = conv_to_dest(codeset->ctconv, glyph_index);
2407 CodeSet codeset;
2429 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GL");
2432 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GR");
2435 if (!codeset) {
2440 mb = gi_to_mb(glyph_index, codeset);
2441 if (codeset->parse_info) {
2443 switch (codeset->parse_info->type) {
2445 if (codeset != state->GL_codeset) {
2447 state->GL_codeset = codeset;
2451 if (codeset != state->GR_codeset) {
2453 state->GR_codeset = codeset;
2463 encoding = codeset->parse_info->encoding;
2476 length = codeset->length;
2514 CodeSet codeset;
2536 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GL");
2539 codeset = _XlcGetCodeSetFromName(lcd, "ISO8859-1:GR");
2542 if (!codeset) {
2547 gi_to_wc(lcd, glyph_index, codeset, &wc);