diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-02-19 14:07:49 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-02-19 16:33:26 +0900 |
commit | fcc55dc2261b4c61da711c10a5476d05d4391eca (patch) | |
tree | cdb28d1399dc7b78ccec5d85beadee36a1c64e80 /internal/string.h | |
parent | a52fc5df7ab7c5cf6a32dcbd2adfaf48a18d3947 (diff) |
[Bug #20280] Raise SyntaxError on invalid encoding symbol
Diffstat (limited to 'internal/string.h')
-rw-r--r-- | internal/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/string.h b/internal/string.h index cde81a1a25..009b6ec3be 100644 --- a/internal/string.h +++ b/internal/string.h @@ -46,6 +46,7 @@ int rb_enc_str_coderange_scan(VALUE str, rb_encoding *enc); int rb_ascii8bit_appendable_encoding_index(rb_encoding *enc, unsigned int code); VALUE rb_str_include(VALUE str, VALUE arg); VALUE rb_str_byte_substr(VALUE str, VALUE beg, VALUE len); +VALUE rb_str_valid_encoding_p(VALUE str); static inline bool STR_EMBED_P(VALUE str); static inline bool STR_SHARED_P(VALUE str); |