Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Internal header for Symbol. More...
Go to the source code of this file.
Macros | |
#define | rb_sym_intern_ascii_cstr(ptr) |
Functions | |
VALUE | rb_to_symbol_type (VALUE obj) |
VALUE | rb_sym_intern (const char *ptr, long len, rb_encoding *enc) |
VALUE | rb_sym_intern_ascii (const char *ptr, long len) |
VALUE | rb_sym_intern_ascii_cstr (const char *ptr) |
int | rb_is_const_name (VALUE name) |
int | rb_is_class_name (VALUE name) |
int | rb_is_instance_name (VALUE name) |
int | rb_is_local_name (VALUE name) |
int | rb_is_const_sym (VALUE sym) |
int | rb_is_attrset_sym (VALUE sym) |
ID | rb_make_internal_id (void) |
void | rb_gc_free_dsymbol (VALUE) |
Internal header for Symbol.
Definition in file symbol.h.
#define rb_sym_intern_ascii_cstr | ( | ptr | ) |
void rb_gc_free_dsymbol | ( | VALUE | sym | ) |
Definition at line 803 of file symbol.c.
References rb_symbols_t::dsymbol_fstr_hash, GLOBAL_SYMBOLS_ENTER, GLOBAL_SYMBOLS_LEAVE, rb_hash_delete_entry(), RSYMBOL, str, and sym.
Definition at line 1052 of file symbol.c.
References is_attrset_sym, and sym.
Definition at line 1046 of file symbol.c.
References is_const_sym, and sym.
Definition at line 1229 of file symbol.c.
References ID_INSTANCE, and name.
ID rb_make_internal_id | ( | void | ) |
Definition at line 953 of file symbol.c.
References ID_INTERNAL, and ID_STATIC_SYM.
Referenced by Init_Exception(), Init_Hash(), and Init_pack().
VALUE rb_sym_intern | ( | const char * | ptr, |
long | len, | ||
rb_encoding * | enc | ||
) |
Definition at line 1191 of file symbol.c.
References len, name, ptr, rb_setup_fake_str(), and rb_str_intern().
Referenced by rb_str_format(), and rb_sym_intern_ascii().
Definition at line 1199 of file symbol.c.
References len, ptr, rb_sym_intern(), and rb_usascii_encoding().
Referenced by rb_sym_intern_ascii_cstr().
Definition at line 1205 of file symbol.c.
References ptr, rb_sym_intern_ascii(), and strlen().