summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 00:34:00 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 00:34:00 +0000
commitb706341577bdf45dc1c4e278e4be7608769998c4 (patch)
treec5453df4387fbdfd2e9c0b3802df6ac12ad54b65 /include/ruby
parent8603d0807bdfb2dfa804c9a9174901777cfbd581 (diff)
downloadruby-b706341577bdf45dc1c4e278e4be7608769998c4.tar.gz
ruby-b706341577bdf45dc1c4e278e4be7608769998c4.tar.xz
ruby-b706341577bdf45dc1c4e278e4be7608769998c4.zip
* encoding.c (rb_enc_unicode_p): defined.
Returns 1 when the encoding is Unicode series other than UTF-7 else 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/encoding.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 30527779a..500725e72 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -176,6 +176,7 @@ long rb_str_coderange_scan_restartable(const char*, const char*, rb_encoding*, i
int rb_enc_str_asciionly_p(VALUE);
#define rb_enc_str_asciicompat_p(str) rb_enc_asciicompat(rb_enc_get(str))
VALUE rb_enc_from_encoding(rb_encoding *enc);
+int rb_enc_unicode_p(rb_encoding *enc);
rb_encoding *rb_ascii8bit_encoding(void);
rb_encoding *rb_utf8_encoding(void);
rb_encoding *rb_usascii_encoding(void);