/* Tables for conversion from and to IBM922.
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 2000-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Masahide Washizawa <washi@jp.ibm.com>, 2000.
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <stdint.h>
static const uint32_t to_ucs4[256] =
{
static const struct gap from_idx[] =
{
- { start: 0x0000, end: 0x00ff, idx: 0 },
- { start: 0x0160, end: 0x0161, idx: -96 },
- { start: 0x017d, end: 0x017e, idx: -123 },
- { start: 0x2017, end: 0x2017, idx: -7955 },
- { start: 0x2022, end: 0x2022, idx: -7965 },
- { start: 0x203c, end: 0x203e, idx: -7990 },
- { start: 0x2190, end: 0x2195, idx: -8327 },
- { start: 0x21a8, end: 0x21a8, idx: -8345 },
- { start: 0x221f, end: 0x221f, idx: -8463 },
- { start: 0x2264, end: 0x2265, idx: -8531 },
- { start: 0x2500, end: 0x2502, idx: -9197 },
- { start: 0x250c, end: 0x251c, idx: -9206 },
- { start: 0x2524, end: 0x2524, idx: -9213 },
- { start: 0x252c, end: 0x252c, idx: -9220 },
- { start: 0x2534, end: 0x2534, idx: -9227 },
- { start: 0x253c, end: 0x253c, idx: -9234 },
- { start: 0x2550, end: 0x256c, idx: -9253 },
- { start: 0x2580, end: 0x2588, idx: -9272 },
- { start: 0x2591, end: 0x2593, idx: -9280 },
- { start: 0x25a0, end: 0x25a0, idx: -9292 },
- { start: 0x25ac, end: 0x25b2, idx: -9303 },
- { start: 0x25ba, end: 0x25bc, idx: -9310 },
- { start: 0x25c4, end: 0x25c4, idx: -9317 },
- { start: 0x25cb, end: 0x25cb, idx: -9323 },
- { start: 0x25d8, end: 0x25d9, idx: -9335 },
- { start: 0x263a, end: 0x2642, idx: -9431 },
- { start: 0x2660, end: 0x266c, idx: -9460 },
- { start: 0xffe8, end: 0xffee, idx: -65135 },
- { start: 0xffff, end: 0xffff, idx: 0 }
+ { .start = 0x0000, .end = 0x00ff, .idx = 0 },
+ { .start = 0x0160, .end = 0x0161, .idx = -96 },
+ { .start = 0x017d, .end = 0x017e, .idx = -123 },
+ { .start = 0x2017, .end = 0x2017, .idx = -7955 },
+ { .start = 0x2022, .end = 0x2022, .idx = -7965 },
+ { .start = 0x203c, .end = 0x203e, .idx = -7990 },
+ { .start = 0x2190, .end = 0x2195, .idx = -8327 },
+ { .start = 0x21a8, .end = 0x21a8, .idx = -8345 },
+ { .start = 0x221f, .end = 0x221f, .idx = -8463 },
+ { .start = 0x2264, .end = 0x2265, .idx = -8531 },
+ { .start = 0x2500, .end = 0x2502, .idx = -9197 },
+ { .start = 0x250c, .end = 0x251c, .idx = -9206 },
+ { .start = 0x2524, .end = 0x2524, .idx = -9213 },
+ { .start = 0x252c, .end = 0x252c, .idx = -9220 },
+ { .start = 0x2534, .end = 0x2534, .idx = -9227 },
+ { .start = 0x253c, .end = 0x253c, .idx = -9234 },
+ { .start = 0x2550, .end = 0x256c, .idx = -9253 },
+ { .start = 0x2580, .end = 0x2588, .idx = -9272 },
+ { .start = 0x2591, .end = 0x2593, .idx = -9280 },
+ { .start = 0x25a0, .end = 0x25a0, .idx = -9292 },
+ { .start = 0x25ac, .end = 0x25b2, .idx = -9303 },
+ { .start = 0x25ba, .end = 0x25bc, .idx = -9310 },
+ { .start = 0x25c4, .end = 0x25c4, .idx = -9317 },
+ { .start = 0x25cb, .end = 0x25cb, .idx = -9323 },
+ { .start = 0x25d8, .end = 0x25d9, .idx = -9335 },
+ { .start = 0x263a, .end = 0x2642, .idx = -9431 },
+ { .start = 0x2660, .end = 0x266c, .idx = -9460 },
+ { .start = 0xffe8, .end = 0xffee, .idx = -65135 },
+ { .start = 0xffff, .end = 0xffff, .idx = 0 }
};
static const char from_ucs4[] =