Lines Matching refs:gb18030

352  *  The 2Bytes MB char is defined in gb18030.2000-0
353 * The 4Bytes MB char is defined in gb18030.2000-1
360 * http://oss.software.ibm.com/icu/docs/papers/gb18030.html
363 * http://www.ibm.com/developerWorks/cn/linux/i18n/gb18030/xfree86/part1
368 s->gb18030.cs0_mapping =
369 FontEncMapFind("gb18030.2000-0", FONT_ENCODING_UNICODE, -1, -1, NULL);
370 if (!s->gb18030.cs0_mapping)
373 s->gb18030.cs0_reverse = FontMapReverse(s->gb18030.cs0_mapping);
374 if (!s->gb18030.cs0_reverse)
377 s->gb18030.cs1_mapping =
378 FontEncMapFind("gb18030.2000-1", FONT_ENCODING_UNICODE, -1, -1, NULL);
379 if (!s->gb18030.cs1_mapping)
382 s->gb18030.cs1_reverse = FontMapReverse(s->gb18030.cs1_mapping);
383 if (!s->gb18030.cs1_reverse)
386 s->gb18030.linear = 0;
387 s->gb18030.buf_ptr = 0;
400 (s->gb18030.linear) ? s->gb18030.cs1_mapping : s->gb18030.cs0_mapping);
412 r = s->gb18030.cs0_reverse->reverse(n, s->gb18030.cs0_reverse->data);
416 r = s->gb18030.cs1_reverse->reverse(n, s->gb18030.cs1_reverse->data);
439 /* if set gb18030.linear => True. the return value is "linear'd" */
440 if (s->gb18030.buf_ptr == 0) {
445 s->gb18030.linear = 0;
446 s->gb18030.buf[s->gb18030.buf_ptr++] = (int) c;
448 } else if (s->gb18030.buf_ptr == 1) {
450 s->gb18030.buf_ptr = 0;
454 return (int) ((unsigned) (s->gb18030.buf[0] << 8) + c);
456 s->gb18030.buf[s->gb18030.buf_ptr++] = (int) c;
459 s->gb18030.buf_ptr = 0;
462 } else if (s->gb18030.buf_ptr == 2) {
464 s->gb18030.buf[s->gb18030.buf_ptr++] = (int) c;
467 s->gb18030.buf_ptr = 0;
472 s->gb18030.buf_ptr = 0;
474 s->gb18030.linear = 1;
475 r = (((s->gb18030.buf[0] - 0x81) * 10
476 + (s->gb18030.buf[1] - 0x30)) * 126
477 + (s->gb18030.buf[2] - 0x81)) * 10