Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Defines | Functions | Variables

# enc/trans/utf_16_32.c File Reference

`#include "transcode_data.h"`
Include dependency graph for utf_16_32.c:

Go to the source code of this file.

## Defines
#define | from_UTF_16LE_00toFF_D8toDB_00toFF_offsets 0
#define | from_UTF_16LE_00toFF_D8toDB_offsets 6
#define | from_UTF_16LE_00toFF_offsets 264
#define | from_UTF_32LE_00toFF_00toD7_00_offsets 522
#define | from_UTF_32LE_00toFF_00toD7_offsets 525
#define | from_UTF_32LE_00toFF_D8toDF_offsets 544
#define | from_UTF_32LE_00toFF_offsets 562
#define | from_UTF_32BE_00_offsets 820
#define | from_UTF_8_C2toDF_offsets 839
#define | from_UTF_8_E0_offsets 905
#define | from_UTF_8_ED_offsets 939
#define | from_UTF_8_F0_offsets 973
#define | from_UTF_8_F4_offsets 1023
#define | from_UTF_8_offsets 1041
#define | from_UTF_16LE_00toFF_D8toDB_00toFF_infos WORDINDEX2INFO(0)
#define | from_UTF_16LE_00toFF_D8toDB_00toFF WORDINDEX2INFO(2)
#define | from_UTF_16LE_00toFF_D8toDB_infos WORDINDEX2INFO(4)
#define | from_UTF_16LE_00toFF_D8toDB WORDINDEX2INFO(5)
#define | from_UTF_16LE_00toFF_infos WORDINDEX2INFO(7)
#define | from_UTF_16LE_00toFF WORDINDEX2INFO(10)
#define | from_UTF_16LE_infos WORDINDEX2INFO(12)
#define | from_UTF_16LE WORDINDEX2INFO(13)
#define | from_UTF_32LE_00toFF_00toD7_00_infos WORDINDEX2INFO(15)
#define | from_UTF_32LE_00toFF_00toD7_00 WORDINDEX2INFO(17)
#define | from_UTF_32LE_00toFF_00toD7_infos WORDINDEX2INFO(19)
#define | from_UTF_32LE_00toFF_00toD7 WORDINDEX2INFO(21)
#define | from_UTF_32LE_00toFF_D8toDF_infos WORDINDEX2INFO(23)
#define | from_UTF_32LE_00toFF_D8toDF WORDINDEX2INFO(25)
#define | from_UTF_32LE_00toFF_infos WORDINDEX2INFO(27)
#define | from_UTF_32LE_00toFF WORDINDEX2INFO(29)
#define | from_UTF_32LE_infos WORDINDEX2INFO(31)
#define | from_UTF_32LE WORDINDEX2INFO(32)
#define | from_UTF_16BE_00toD7_infos WORDINDEX2INFO(34)
#define | from_UTF_16BE_00toD7 WORDINDEX2INFO(35)
#define | from_UTF_16BE_D8toDB_00toFF_infos WORDINDEX2INFO(37)
#define | from_UTF_16BE_D8toDB_00toFF WORDINDEX2INFO(39)
#define | from_UTF_16BE_D8toDB_infos WORDINDEX2INFO(41)
#define | from_UTF_16BE_D8toDB WORDINDEX2INFO(42)
#define | from_UTF_16BE_infos WORDINDEX2INFO(44)
#define | from_UTF_16BE WORDINDEX2INFO(47)
#define | from_UTF_32BE_00_00_infos WORDINDEX2INFO(49)
#define | from_UTF_32BE_00_00 WORDINDEX2INFO(51)
#define | from_UTF_32BE_00_01to10_infos WORDINDEX2INFO(53)
#define | from_UTF_32BE_00_01to10 WORDINDEX2INFO(54)
#define | from_UTF_32BE_00_infos WORDINDEX2INFO(56)
#define | from_UTF_32BE_00 WORDINDEX2INFO(59)
#define | from_UTF_32BE_infos WORDINDEX2INFO(61)
#define | from_UTF_32BE WORDINDEX2INFO(63)
#define | from_UTF_8_C2toDF WORDINDEX2INFO(65)
#define | from_UTF_8_E0_infos WORDINDEX2INFO(67)
#define | from_UTF_8_E0 WORDINDEX2INFO(69)
#define | from_UTF_8_E1toEC WORDINDEX2INFO(71)
#define | from_UTF_8_ED WORDINDEX2INFO(73)
#define | from_UTF_8_F0_infos WORDINDEX2INFO(75)
#define | from_UTF_8_F0 WORDINDEX2INFO(77)
#define | from_UTF_8_F1toF3 WORDINDEX2INFO(79)
#define | from_UTF_8_F4 WORDINDEX2INFO(81)
#define | from_UTF_8_infos WORDINDEX2INFO(83)
#define | from_UTF_8 WORDINDEX2INFO(92)
#define | TRANSCODE_TABLE_INFO utf_16_32_byte_array, 1288, utf_16_32_word_array, 94, ((int)sizeof(unsigned int))
## Functions
static ssize_t | fun_so_from_utf_16be (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_to_utf_16be (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_from_utf_16le (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_to_utf_16le (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_from_utf_32be (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_to_utf_32be (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_from_utf_32le (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
static ssize_t | fun_so_to_utf_32le (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
void | Init_utf_16_32 (void)
## Variables
static const unsigned char | utf_16_32_byte_array [1288]
static const unsigned int | utf_16_32_word_array [94]
static const rb_transcoder | rb_from_UTF_16BE
static const rb_transcoder | rb_to_UTF_16BE
static const rb_transcoder | rb_from_UTF_16LE
static const rb_transcoder | rb_to_UTF_16LE
static const rb_transcoder | rb_from_UTF_32BE
static const rb_transcoder | rb_to_UTF_32BE
static const rb_transcoder | rb_from_UTF_32LE
static const rb_transcoder | rb_to_UTF_32LE

## Define Documentation

#define from_UTF_16BE WORDINDEX2INFO(47)

#define from_UTF_16BE_00toD7 WORDINDEX2INFO(35)

#define from_UTF_16BE_00toD7_infos WORDINDEX2INFO(34)

#define from_UTF_16BE_D8toDB WORDINDEX2INFO(42)

#define from_UTF_16BE_D8toDB_00toFF WORDINDEX2INFO(39)

#define from_UTF_16BE_D8toDB_00toFF_infos WORDINDEX2INFO(37)

#define from_UTF_16BE_D8toDB_infos WORDINDEX2INFO(41)

#define from_UTF_16BE_infos WORDINDEX2INFO(44)

#define from_UTF_16LE WORDINDEX2INFO(13)

#define from_UTF_16LE_00toFF WORDINDEX2INFO(10)

#define from_UTF_16LE_00toFF_D8toDB WORDINDEX2INFO(5)

#define from_UTF_16LE_00toFF_D8toDB_00toFF WORDINDEX2INFO(2)

#define from_UTF_16LE_00toFF_D8toDB_00toFF_infos WORDINDEX2INFO(0)

#define from_UTF_16LE_00toFF_D8toDB_00toFF_offsets 0

#define from_UTF_16LE_00toFF_D8toDB_infos WORDINDEX2INFO(4)

#define from_UTF_16LE_00toFF_D8toDB_offsets 6

#define from_UTF_16LE_00toFF_infos WORDINDEX2INFO(7)

#define from_UTF_16LE_00toFF_offsets 264

#define from_UTF_16LE_infos WORDINDEX2INFO(12)

#define from_UTF_32BE WORDINDEX2INFO(63)

#define from_UTF_32BE_00 WORDINDEX2INFO(59)

#define from_UTF_32BE_00_00 WORDINDEX2INFO(51)

#define from_UTF_32BE_00_00_infos WORDINDEX2INFO(49)

#define from_UTF_32BE_00_01to10 WORDINDEX2INFO(54)

#define from_UTF_32BE_00_01to10_infos WORDINDEX2INFO(53)

#define from_UTF_32BE_00_infos WORDINDEX2INFO(56)

#define from_UTF_32BE_00_offsets 820

#define from_UTF_32BE_infos WORDINDEX2INFO(61)

#define from_UTF_32LE WORDINDEX2INFO(32)

#define from_UTF_32LE_00toFF WORDINDEX2INFO(29)

#define from_UTF_32LE_00toFF_00toD7 WORDINDEX2INFO(21)

#define from_UTF_32LE_00toFF_00toD7_00 WORDINDEX2INFO(17)

#define from_UTF_32LE_00toFF_00toD7_00_infos WORDINDEX2INFO(15)

#define from_UTF_32LE_00toFF_00toD7_00_offsets 522

#define from_UTF_32LE_00toFF_00toD7_infos WORDINDEX2INFO(19)

#define from_UTF_32LE_00toFF_00toD7_offsets 525

#define from_UTF_32LE_00toFF_D8toDF WORDINDEX2INFO(25)

#define from_UTF_32LE_00toFF_D8toDF_infos WORDINDEX2INFO(23)

#define from_UTF_32LE_00toFF_D8toDF_offsets 544

#define from_UTF_32LE_00toFF_infos WORDINDEX2INFO(27)

#define from_UTF_32LE_00toFF_offsets 562

#define from_UTF_32LE_infos WORDINDEX2INFO(31)

#define from_UTF_8 WORDINDEX2INFO(92)

#define from_UTF_8_C2toDF WORDINDEX2INFO(65)

#define from_UTF_8_C2toDF_offsets 839

#define from_UTF_8_E0 WORDINDEX2INFO(69)

#define from_UTF_8_E0_infos WORDINDEX2INFO(67)

#define from_UTF_8_E0_offsets 905

#define from_UTF_8_E1toEC WORDINDEX2INFO(71)

#define from_UTF_8_ED WORDINDEX2INFO(73)

#define from_UTF_8_ED_offsets 939

#define from_UTF_8_F0 WORDINDEX2INFO(77)

#define from_UTF_8_F0_infos WORDINDEX2INFO(75)

#define from_UTF_8_F0_offsets 973

#define from_UTF_8_F1toF3 WORDINDEX2INFO(79)

#define from_UTF_8_F4 WORDINDEX2INFO(81)

#define from_UTF_8_F4_offsets 1023

#define from_UTF_8_infos WORDINDEX2INFO(83)

#define from_UTF_8_offsets 1041

#define TRANSCODE_TABLE_INFO utf_16_32_byte_array, 1288, utf_16_32_word_array, 94, ((int)sizeof(unsigned int))

Definition at line 307 of file utf_16_32.c.

## Function Documentation

static ssize_t fun_so_from_utf_16be | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 311 of file utf_16_32.c.

static ssize_t fun_so_from_utf_16le | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 367 of file utf_16_32.c.

static ssize_t fun_so_from_utf_32be | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 423 of file utf_16_32.c.

static ssize_t fun_so_from_utf_32le | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 478 of file utf_16_32.c.

static ssize_t fun_so_to_utf_16be | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 339 of file utf_16_32.c.

static ssize_t fun_so_to_utf_16le | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 395 of file utf_16_32.c.

static ssize_t fun_so_to_utf_32be | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 452 of file utf_16_32.c.

static ssize_t fun_so_to_utf_32le | ( | void * | statep,
|  | const unsigned char * | s,
|  | size_t | l,
|  | unsigned char * | o,
|  | size_t | osize
| ) |  | `[static]`

Definition at line 507 of file utf_16_32.c.

void Init_utf_16_32 | ( | void |  | ) |

Definition at line 629 of file utf_16_32.c.

References rb_from_UTF_16BE, rb_from_UTF_16LE, rb_from_UTF_32BE, rb_from_UTF_32LE, rb_register_transcoder(), rb_to_UTF_16BE, rb_to_UTF_16LE, rb_to_UTF_32BE, and rb_to_UTF_32LE.

## Variable Documentation

const rb_transcoder rb_from_UTF_16BE`[static]`

Initial value:

     {
        "UTF-16BE", "UTF-8", from_UTF_16BE,
        TRANSCODE_TABLE_INFO,
        2,
        4,
        4,
        asciicompat_decoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_from_utf_16be
    }

Definition at line 533 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_from_UTF_16LE`[static]`

Initial value:

     {
        "UTF-16LE", "UTF-8", from_UTF_16LE,
        TRANSCODE_TABLE_INFO,
        2,
        4,
        4,
        asciicompat_decoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_from_utf_16le
    }

Definition at line 557 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_from_UTF_32BE`[static]`

Initial value:

     {
        "UTF-32BE", "UTF-8", from_UTF_32BE,
        TRANSCODE_TABLE_INFO,
        4,
        4,
        4,
        asciicompat_decoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_from_utf_32be
    }

Definition at line 581 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_from_UTF_32LE`[static]`

Initial value:

     {
        "UTF-32LE", "UTF-8", from_UTF_32LE,
        TRANSCODE_TABLE_INFO,
        4,
        4,
        4,
        asciicompat_decoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_from_utf_32le
    }

Definition at line 605 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_to_UTF_16BE`[static]`

Initial value:

     {
        "UTF-8", "UTF-16BE", from_UTF_8,
        TRANSCODE_TABLE_INFO,
        1,
        4,
        4,
        asciicompat_encoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_to_utf_16be
    }

Definition at line 545 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_to_UTF_16LE`[static]`

Initial value:

     {
        "UTF-8", "UTF-16LE", from_UTF_8,
        TRANSCODE_TABLE_INFO,
        1,
        4,
        4,
        asciicompat_encoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_to_utf_16le
    }

Definition at line 569 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_to_UTF_32BE`[static]`

Initial value:

     {
        "UTF-8", "UTF-32BE", from_UTF_8,
        TRANSCODE_TABLE_INFO,
        1,
        4,
        4,
        asciicompat_encoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_to_utf_32be
    }

Definition at line 593 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const rb_transcoder rb_to_UTF_32LE`[static]`

Initial value:

     {
        "UTF-8", "UTF-32LE", from_UTF_8,
        TRANSCODE_TABLE_INFO,
        1,
        4,
        4,
        asciicompat_encoder,
        0, NULL, NULL,
        NULL, NULL, NULL, fun_so_to_utf_32le
    }

Definition at line 617 of file utf_16_32.c.

Referenced by Init_utf_16_32().

const unsigned char utf_16_32_byte_array[1288]`[static]`

Definition at line 10 of file utf_16_32.c.

const unsigned int utf_16_32_word_array[94]`[static]`

Definition at line 138 of file utf_16_32.c.