Ruby: internal/encoding.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

encoding.h
Go to the documentation of this file.
1#ifndef INTERNAL_ENCODING_H /*-*-C-*-vi:se ft=c:*/
2#define INTERNAL_ENCODING_H
12#include "ruby/ruby.h" /* for ID */
13#include "ruby/encoding.h" /* for rb_encoding */
14
15#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
16
17/* encoding.c */
18 ID rb_id_encoding(void);
19 rb_encoding *rb_enc_get_from_index(int index);
20 rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2);
21int rb_encdb_replicate(const char *alias, const char *orig);
22int rb_encdb_alias(const char *alias, const char *orig);
23int rb_enc_autoload(rb_encoding *enc);
24int rb_encdb_dummy(const char *name);
25void rb_encdb_declare(const char *name);
26void rb_enc_set_base(const char *name, const char *orig);
27int rb_enc_set_dummy(int index);
28void rb_encdb_set_unicode(int index);
29 PUREFUNC(int rb_data_is_encoding(VALUE obj));
30
31#endif /* INTERNAL_ENCODING_H */
PUREFUNC
#define PUREFUNC(x)
Definition: attributes.h:54
encoding.h
rb_encdb_declare
void rb_encdb_declare(const char *name)
Definition: encoding.c:473
rb_enc_check_str
rb_encoding * rb_enc_check_str(VALUE str1, VALUE str2)
Definition: encoding.c:1078
rb_enc_autoload
int rb_enc_autoload(rb_encoding *enc)
Definition: encoding.c:867
rb_enc_set_dummy
int rb_enc_set_dummy(int index)
Definition: encoding.c:524
rb_enc_get_from_index
rb_encoding * rb_enc_get_from_index(int index)
Definition: encoding.c:795
rb_enc_set_base
void rb_enc_set_base(const char *name, const char *orig)
Definition: encoding.c:509
rb_data_is_encoding
int rb_data_is_encoding(VALUE obj)
Definition: encoding.c:114
rb_encdb_set_unicode
void rb_encdb_set_unicode(int index)
Definition: encoding.c:759
rb_id_encoding
ID rb_id_encoding(void)
Definition: encoding.c:947
rb_encdb_dummy
int rb_encdb_dummy(const char *name)
Definition: encoding.c:632
rb_encdb_alias
int rb_encdb_alias(const char *alias, const char *orig)
Definition: encoding.c:740
rb_encdb_replicate
int rb_encdb_replicate(const char *alias, const char *orig)
Definition: encoding.c:596
name
const char * name
Definition: nkf.c:208
alias
const char * alias
Definition: nkf.c:1159
ruby.h
OnigEncodingTypeST
Definition: onigmo.h:160
VALUE
unsigned long VALUE
Definition: value.h:38
ID
unsigned long ID
Definition: value.h:39