Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Internal header for Encoding. More...
Go to the source code of this file.
Macros | |
#define | rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc)) |
Functions | |
ID | rb_id_encoding (void) |
rb_encoding * | rb_enc_get_from_index (int index) |
rb_encoding * | rb_enc_check_str (VALUE str1, VALUE str2) |
int | rb_encdb_replicate (const char *alias, const char *orig) |
int | rb_encdb_alias (const char *alias, const char *orig) |
int | rb_enc_autoload (rb_encoding *enc) |
int | rb_encdb_dummy (const char *name) |
void | rb_encdb_declare (const char *name) |
void | rb_enc_set_base (const char *name, const char *orig) |
int | rb_enc_set_dummy (int index) |
void | rb_encdb_set_unicode (int index) |
int | rb_data_is_encoding (VALUE obj) |
Internal header for Encoding.
Definition in file encoding.h.
#define rb_enc_autoload_p | ( | enc | ) | (!rb_enc_mbmaxlen(enc)) |
Definition at line 15 of file encoding.h.
Definition at line 114 of file encoding.c.
References is_data_encoding.
int rb_enc_autoload | ( | rb_encoding * | enc | ) |
Definition at line 867 of file encoding.c.
References rb_encoding_entry::enc, GLOBAL_ENC_TABLE_EVAL, and rb_enc_name.
Referenced by rb_enc_find_index(), and rb_enc_interned_str().
rb_encoding * rb_enc_check_str | ( | VALUE | str1, |
VALUE | str2 | ||
) |
Definition at line 1078 of file encoding.c.
References rb_encoding_entry::enc, MUST_STRING, rb_eEncCompatError, rb_enc_get(), rb_enc_name, and rb_raise().
Referenced by rb_str_plus().
rb_encoding * rb_enc_get_from_index | ( | int | index | ) |
Definition at line 795 of file encoding.c.
Definition at line 509 of file encoding.c.
References GLOBAL_ENC_TABLE_ENTER, GLOBAL_ENC_TABLE_LEAVE, name, and rb_enc_from_index().
Definition at line 524 of file encoding.c.
References rb_encoding_entry::enc, ENC_SET_DUMMY, and GLOBAL_ENC_TABLE_EVAL.
Definition at line 740 of file encoding.c.
void rb_encdb_declare | ( | const char * | name | ) |
Definition at line 473 of file encoding.c.
Definition at line 632 of file encoding.c.
References rb_encoding_entry::enc, ENC_SET_DUMMY, GLOBAL_ENC_TABLE_ENTER, GLOBAL_ENC_TABLE_LEAVE, name, and rb_ascii8bit_encoding().
Definition at line 596 of file encoding.c.
References GLOBAL_ENC_TABLE_ENTER, GLOBAL_ENC_TABLE_LEAVE, name, and rb_enc_from_index().
void rb_encdb_set_unicode | ( | int | index | ) |
Definition at line 759 of file encoding.c.
References ONIGENC_FLAG_UNICODE, and rb_enc_from_index().
ID rb_id_encoding | ( | void | ) |