|
| ID | rb_intern3 (const char *name, rb_len_t len, rb_encoding *enc) |
| | Identical to rb_intern2(), except it additionally takes an encoding.
|
| int | rb_enc_symname_p (const char *str, rb_encoding *enc) |
| | Identical to rb_symname_p(), except it additionally takes an encoding.
|
| int | rb_enc_symname2_p (const char *name, rb_len_t len, rb_encoding *enc) |
| | Identical to rb_enc_symname_p(), except it additionally takes the passed string's length.
|
| ID | rb_check_id_cstr (const char *ptr, rb_len_t len, rb_encoding *enc) |
| | Identical to rb_check_id(), except it takes a pointer to a memory region instead of Ruby's string.
|
| VALUE | rb_check_symbol_cstr (const char *ptr, rb_len_t len, rb_encoding *enc) |
| | Identical to rb_check_id_cstr(), except for the return type.
|
Routines to manipulate encodings of symbols.
- Author
- Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
- Copyright
- This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.
- Warning
- Symbols prefixed with either RBIMPL or rbimpl are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.
- Note
- To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance __VA_ARGS__ is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.
Definition in file symbol.h.