Ruby
1.9.3p547(2014-05-14revision45962)
Main Page
Modules
Data Structures
Files
File List
Globals
enc
gb2312.c
Go to the documentation of this file.
1
#include <
ruby/ruby.h
>
2
#include <
ruby/encoding.h
>
3
#include "
regenc.h
"
4
5
void
6
Init_gb2312
(
void
)
7
{
8
rb_enc_register
(
"GB2312"
,
rb_enc_find
(
"EUC-KR"
));
9
}
10
11
ENC_ALIAS
(
"EUC-CN"
,
"GB2312"
)
12
ENC_ALIAS
("eucCN", "GB2312")
13
ENC_REPLICATE
("GB12345", "GB2312")
ruby.h
ENC_ALIAS
#define ENC_ALIAS(name, orig)
Definition:
encdb.c:18
encoding.h
ENC_REPLICATE
#define ENC_REPLICATE(name, orig)
Definition:
encdb.c:17
regenc.h
rb_enc_register
int rb_enc_register(const char *name, rb_encoding *encoding)
Definition:
encoding.c:254
Init_gb2312
void Init_gb2312(void)
Definition:
gb2312.c:6
rb_enc_find
rb_encoding * rb_enc_find(const char *name)
Definition:
encoding.c:620
Generated on Wed Feb 17 2016 12:29:49 for Ruby by
1.8.6