aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c
index 8f2e65a491..4b5b446b6c 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1931,3 +1931,8 @@ rb_toupper(int c)
return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c;
}
+void
+rb_enc_foreach_name(int (*func)(st_data_t name, st_data_t idx, st_data_t arg), st_data_t arg)
+{
+ st_foreach(enc_table.names, func, arg);
+}