|
Ruby
1.9.3p551(2014-11-13revision48407)
|
#include "transcode_data.h"Go to the source code of this file.
Macros | |
| #define | universal_newline_offsets 0 |
| #define | crlf_newline_offsets 258 |
| #define | universal_newline_infos WORDINDEX2INFO(0) |
| #define | universal_newline WORDINDEX2INFO(1) |
| #define | crlf_newline_infos WORDINDEX2INFO(3) |
| #define | crlf_newline WORDINDEX2INFO(5) |
| #define | cr_newline_infos WORDINDEX2INFO(7) |
| #define | cr_newline WORDINDEX2INFO(9) |
| #define | TRANSCODE_TABLE_INFO newline_byte_array, 516, newline_word_array, 11, ((int)sizeof(unsigned int)) |
| #define | STATE (sp[0]) |
| #define | NORMAL 0 |
| #define | JUST_AFTER_CR 1 |
| #define | NEWLINES_MET (sp[1]) |
| #define | MET_LF 0x01 |
| #define | MET_CRLF 0x02 |
| #define | MET_CR 0x04 |
Functions | |
| static int | universal_newline_init (void *statep) |
| static ssize_t | fun_so_universal_newline (void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize) |
| static ssize_t | universal_newline_finish (void *statep, unsigned char *o, size_t osize) |
| void | Init_newline (void) |
Variables | |
| static const unsigned char | newline_byte_array [516] |
| static const unsigned int | newline_word_array [11] |
| static const rb_transcoder | rb_universal_newline |
| static const rb_transcoder | rb_crlf_newline |
| static const rb_transcoder | rb_cr_newline |
| #define cr_newline WORDINDEX2INFO(9) |
| #define cr_newline_infos WORDINDEX2INFO(7) |
| #define crlf_newline WORDINDEX2INFO(5) |
| #define crlf_newline_infos WORDINDEX2INFO(3) |
| #define crlf_newline_offsets 258 |
| #define JUST_AFTER_CR 1 |
Definition at line 79 of file newline.c.
Referenced by fun_so_universal_newline(), and universal_newline_finish().
| #define MET_CR 0x04 |
Definition at line 85 of file newline.c.
Referenced by fun_so_universal_newline(), and universal_newline_finish().
| #define MET_CRLF 0x02 |
Definition at line 84 of file newline.c.
Referenced by fun_so_universal_newline().
| #define MET_LF 0x01 |
Definition at line 83 of file newline.c.
Referenced by fun_so_universal_newline().
| #define NEWLINES_MET (sp[1]) |
Definition at line 82 of file newline.c.
Referenced by fun_so_universal_newline(), universal_newline_finish(), and universal_newline_init().
| #define NORMAL 0 |
Definition at line 78 of file newline.c.
Referenced by fun_so_universal_newline(), universal_newline_finish(), and universal_newline_init().
| #define STATE (sp[0]) |
Definition at line 77 of file newline.c.
Referenced by fun_so_universal_newline(), universal_newline_finish(), and universal_newline_init().
| #define TRANSCODE_TABLE_INFO newline_byte_array, 516, newline_word_array, 11, ((int)sizeof(unsigned int)) |
| #define universal_newline WORDINDEX2INFO(1) |
| #define universal_newline_infos WORDINDEX2INFO(0) |
| #define universal_newline_offsets 0 |
|
static |
Definition at line 97 of file newline.c.
References JUST_AFTER_CR, len, MET_CR, MET_CRLF, MET_LF, NEWLINES_MET, NORMAL, and STATE.
| void Init_newline | ( | void | ) |
Definition at line 183 of file newline.c.
References rb_cr_newline, rb_crlf_newline, rb_register_transcoder(), and rb_universal_newline.
|
static |
Definition at line 132 of file newline.c.
References JUST_AFTER_CR, len, MET_CR, NEWLINES_MET, NORMAL, and STATE.
|
static |
Definition at line 88 of file newline.c.
References NEWLINES_MET, NORMAL, and STATE.
|
static |
|
static |
Definition at line 171 of file newline.c.
Referenced by Init_newline().
|
static |
Definition at line 159 of file newline.c.
Referenced by Init_newline().
|
static |
Definition at line 146 of file newline.c.
Referenced by Init_newline().
1.8.14