Sha256: 1a6a780354fee13cb54c9b13d7fd2fc270d6dd766a341b04099c05178bd4578b
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
#ifndef UTF8_EXT_H #define UTF8_EXT_H // tell rbx not to use it's caching compat layer // by doing this we're making a promize to RBX that // we'll never modify the pointers we get back from RSTRING_PTR #define RSTRING_NOT_MODIFIED #include <ruby.h> #ifdef HAVE_RUBY_ENCODING_H #include <ruby/encoding.h> extern rb_encoding *utf8Encoding; #define AS_UTF8(_str) \ _str = rb_funcall(_str, intern_as_utf8, 0); \ rb_enc_associate(_str, utf8Encoding); #else #define AS_UTF8(_str) _str = rb_funcall(_str, intern_as_utf8, 0) #endif #endif
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
utf8-0.1.8 | ext/utf8/ext.h |
utf8-0.1.7 | ext/utf8/ext.h |
utf8-0.1.6 | ext/utf8/ext.h |
utf8-0.1.5 | ext/utf8/ext.h |
utf8-0.1.4 | ext/utf8/ext.h |
utf8-0.1.3 | ext/utf8/ext.h |