Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Go to the source code of this file.
Data Structures | |
struct | RSymbol |
struct | rb_symbols_t |
Macros | |
#define | DYNAMIC_ID_P(id) (!(id&ID_STATIC_SYM)&&id>tLAST_OP_ID) |
#define | STATIC_ID2SYM(id) (((VALUE)(id)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG) |
#define | RSYMBOL(obj) ((struct RSymbol *)(obj)) |
#define | is_notop_id(id) ((id)>tLAST_OP_ID) |
#define | is_local_id(id) (id_type(id)==ID_LOCAL) |
#define | is_global_id(id) (id_type(id)==ID_GLOBAL) |
#define | is_instance_id(id) (id_type(id)==ID_INSTANCE) |
#define | is_attrset_id(id) ((id)==idASET||id_type(id)==ID_ATTRSET) |
#define | is_const_id(id) (id_type(id)==ID_CONST) |
#define | is_class_id(id) (id_type(id)==ID_CLASS) |
#define | is_junk_id(id) (id_type(id)==ID_JUNK) |
#define | is_local_sym(sym) (sym_type(sym)==ID_LOCAL) |
#define | is_global_sym(sym) (sym_type(sym)==ID_GLOBAL) |
#define | is_instance_sym(sym) (sym_type(sym)==ID_INSTANCE) |
#define | is_attrset_sym(sym) (sym_type(sym)==ID_ATTRSET) |
#define | is_const_sym(sym) (sym_type(sym)==ID_CONST) |
#define | is_class_sym(sym) (sym_type(sym)==ID_CLASS) |
#define | is_junk_sym(sym) (sym_type(sym)==ID_JUNK) |
Typedefs | |
typedef uint32_t | rb_id_serial_t |
Functions | |
int | rb_enc_symname_type (const char *name, long len, rb_encoding *enc, unsigned int allowed_attrset) |
size_t | rb_sym_immortal_count (void) |
Variables | |
const unsigned int | ruby_global_name_punct_bits [(0x7e - 0x20+31)/32] |
#define DYNAMIC_ID_P | ( | id | ) | (!(id&ID_STATIC_SYM)&&id>tLAST_OP_ID) |
#define is_attrset_id | ( | id | ) | ((id)==idASET||id_type(id)==ID_ATTRSET) |
#define is_attrset_sym | ( | sym | ) | (sym_type(sym)==ID_ATTRSET) |
#define is_instance_id | ( | id | ) | (id_type(id)==ID_INSTANCE) |
#define is_instance_sym | ( | sym | ) | (sym_type(sym)==ID_INSTANCE) |
#define is_notop_id | ( | id | ) | ((id)>tLAST_OP_ID) |
#define STATIC_ID2SYM | ( | id | ) | (((VALUE)(id)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG) |
typedef uint32_t rb_id_serial_t |
int rb_enc_symname_type | ( | const char * | name, |
long | len, | ||
rb_encoding * | enc, | ||
unsigned int | allowed_attrset | ||
) |
Definition at line 365 of file symbol.c.
References f, ID_ATTRSET, ID_CLASS, ID_GLOBAL, ID_INSTANCE, ID_JUNK, int(), enc_synmane_type_leading_chars_tag::invalid, is_identchar, ISALPHA, ISASCII, len, name, enc_synmane_type_leading_chars_tag::needmore, rb_enc_mbclen(), rb_enc_symname_type(), and enc_synmane_type_leading_chars_tag::stophere.
Referenced by rb_enc_symname2_p(), and rb_enc_symname_type().