1#ifndef INTERNAL_ENCODING_H
2#define INTERNAL_ENCODING_H
14#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
15#define rb_is_usascii_enc(enc) ((enc) == rb_usascii_encoding())
16#define rb_is_ascii8bit_enc(enc) ((enc) == rb_ascii8bit_encoding())
17#define rb_is_locale_enc(enc) ((enc) == rb_locale_encoding())
20ID rb_id_encoding(
void);
24int rb_encdb_replicate(
const char *alias,
const char *orig);
25int rb_encdb_alias(
const char *alias,
const char *orig);
27int rb_encdb_dummy(
const char *name);
28void rb_encdb_declare(
const char *name);
29void rb_enc_set_base(
const char *name,
const char *orig);
30int rb_enc_set_dummy(
int index);
33PUREFUNC(
int rb_data_is_encoding(
VALUE obj));
36void rb_free_global_enc_table(
void);
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.