Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Routines to manipulate encodings of symbols. More...
#include "ruby/internal/dllexport.h"
#include "ruby/internal/encoding/encoding.h"
#include "ruby/internal/value.h"
Go to the source code of this file.
Functions | |
VALUE | rb_enc_reg_new (const char *ptr, long len, rb_encoding *enc, int opts) |
Identical to rb_reg_new(), except it additionally takes an encoding. |
Routines to manipulate encodings of symbols.
Definition in file re.h.
VALUE rb_enc_reg_new | ( | const char * | ptr, |
long | len, | ||
rb_encoding * | enc, | ||
int | opts ) |
Identical to rb_reg_new(), except it additionally takes an encoding.
[in] | ptr | A memory region of len bytes length. |
[in] | len | Length of ptr, in bytes, not including the terminating NUL character. |
[in] | enc | Encoding of ptr. |
[in] | opts | Options e.g. ONIG_OPTION_MULTILINE. |
rb_eRegexpError | Failed to compile `ptr`. |
Definition at line 3442 of file re.c.
Referenced by rb_reg_new().