~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to iconvdata/johab.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Mapping tables for JOHAB handling.
2
 
   Copyright (C) 1998, 1999, 2000-2002, 2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 1998-2002, 2007, 2011 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
   Contributed by Jungshik Shin <jshin@pantheon.yale.edu>
5
5
   and Ulrich Drepper <drepper@cygnus.com>, 1998.
93
93
 
94
94
static const int mid_to_bit[21] =
95
95
{
96
 
          0x0060, 0x0080, 0x00a0, 0x00c0, 0x00e0,
 
96
          0x0060, 0x0080, 0x00a0, 0x00c0, 0x00e0,
97
97
  0x0140, 0x0160, 0x0180, 0x01a0, 0x01c0, 0x1e0,
98
98
  0x0240, 0x0260, 0x0280, 0x02a0, 0x02c0, 0x02e0,
99
99
  0x0340, 0x0360, 0x0380, 0x03a0
132
132
};
133
133
 
134
134
 
135
 
static inline uint32_t
 
135
static uint32_t
136
136
johab_sym_hanja_to_ucs (uint_fast32_t idx, uint_fast32_t c1, uint_fast32_t c2)
137
137
{
138
138
  if (idx <= 0xdefe)
255
255
                                                   + ch2 - (ch2 > 0x90        \
256
256
                                                            ? 0x43 : 0x31)];  \
257
257
                       else                                                   \
258
 
                         ch = __ksc5601_hanja_to_ucs[(ch - 0xe0) *192         \
 
258
                         ch = __ksc5601_hanja_to_ucs[(ch - 0xe0) *192         \
259
259
                                                     + ch2 -  (ch2 > 0x90     \
260
260
                                                               ?0x43 : 0x31)];\
261
261
                    */                                                        \