summaryrefslogtreecommitdiff
path: root/include/ruby/encoding.h
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2020-09-25 14:46:59 +0200
committerKoichi Sasada <[email protected]>2020-11-17 09:39:25 +0900
commitef19fb111a8c8bf1a71d46e6fcf34b227e086845 (patch)
tree560480994dadab565e04a4379304c268c34f3d89 /include/ruby/encoding.h
parent68ffc8db088a7b29613a3746be5cc996be9f66fe (diff)
Expose the rb_interned_str_* family of functions
Fixes [Feature #13381]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3586
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r--include/ruby/encoding.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 01cbf8bb75..07e6c9a671 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -127,6 +127,8 @@ void rb_enc_copy(VALUE dst, VALUE src);
VALUE rb_enc_str_new(const char*, long, rb_encoding*);
VALUE rb_enc_str_new_cstr(const char*, rb_encoding*);
VALUE rb_enc_str_new_static(const char*, long, rb_encoding*);
+VALUE rb_enc_interned_str(const char *, long, rb_encoding *);
+VALUE rb_enc_interned_str_cstr(const char *, rb_encoding *);
VALUE rb_enc_reg_new(const char*, long, rb_encoding*, int);
PRINTF_ARGS(VALUE rb_enc_sprintf(rb_encoding *, const char*, ...), 2, 3);
VALUE rb_enc_vsprintf(rb_encoding *, const char*, va_list);