Package org.jruby.api
Class MRI
java.lang.Object
org.jruby.api.MRI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jcodings.Encodingrb_ascii8bit_encoding(Ruby runtime) static intrb_cloexec_pipe(ThreadContext context, int[] pipes) static org.jcodings.Encodingstatic org.jcodings.Encodingrb_define_dummy_encoding(ThreadContext context, byte[] name) static ByteListrb_econv_append(ThreadContext context, org.jcodings.transcode.EConv ec, byte[] bytes, int start, int length, ByteList dst, int flags) static ByteListrb_econv_append(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList sByteList, ByteList dst, int flags) static org.jcodings.Encodingrb_econv_asciicompat_encoding(org.jcodings.Encoding enc) static voidrb_econv_check_error(ThreadContext context, org.jcodings.transcode.EConv ec) static RaiseExceptionrb_econv_open_exc(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags) static org.jcodings.transcode.EConvrb_econv_open_opts(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags, IRubyObject opthash) static intrb_econv_prepare_options(ThreadContext context, IRubyObject opthash, IRubyObject[] opts, int ecflags) static intrb_econv_prepare_opts(ThreadContext context, IRubyObject opthash, IRubyObject[] opts) static ByteListrb_econv_str_convert(ThreadContext context, org.jcodings.transcode.EConv ec, byte[] bytes, int start, int length, int flags) static ByteListrb_econv_str_convert(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList src, int flags) static ByteListrb_econv_substr_append(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList src, ByteList dst, int flags) static intrb_enc_ascget(byte[] pBytes, int p, int e, int[] len, org.jcodings.Encoding enc) static booleanrb_enc_asciicompat(org.jcodings.Encoding enc) static IRubyObjectrb_enc_associate_index(IRubyObject obj, org.jcodings.Encoding encidx) static intrb_enc_codelen(ThreadContext context, int c, org.jcodings.Encoding enc) static intrb_enc_codepoint_len(ThreadContext context, byte[] pBytes, int p, int e, int[] len_p, org.jcodings.Encoding enc) static booleanrb_enc_dummy_p(org.jcodings.Encoding enc) static org.jcodings.Encodingrb_enc_get(ThreadContext context, IRubyObject obj) static intrb_enc_mbcput(ThreadContext context, int c, byte[] buf, int p, org.jcodings.Encoding enc) static intrb_enc_mbminlen(org.jcodings.Encoding encoding) static voidrb_enc_set_default_external(ThreadContext context, IRubyObject encoding) static voidrb_enc_set_default_internal(ThreadContext context, IRubyObject encoding) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes, int ptr, int len, org.jcodings.Encoding enc) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes, org.jcodings.Encoding enc) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, CharSequence cseq) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, ByteList ptr) static voidrb_enc_str_buf_cat(ThreadContext context, RubyString str, ByteList ptr, org.jcodings.Encoding enc) static RubyStringrb_enc_uint_chr(ThreadContext context, int code, org.jcodings.Encoding enc) static RubyStringrb_external_str_new_with_enc(Ruby runtime, String string, org.jcodings.Encoding encoding) static RubyStringrb_external_str_new_with_enc(Ruby runtime, ByteList bytelist, org.jcodings.Encoding encoding) static booleanrb_io_extract_encoding_option(ThreadContext context, IOEncodable ioEncodable, IRubyObject options, int[] fmode_p) static voidrb_io_extract_modeenc(ThreadContext context, IOEncodable ioEncodable, API.ModeAndPermission vmodeAndVperm_p, IRubyObject options, int[] oflags_p, int[] fmode_p) static IRubyObjectrb_obj_encoding(ThreadContext context, IRubyObject obj) static intrb_pipe(ThreadContext context, int[] pipes) static voidrb_str_buf_cat(Ruby runtime, RubyString str, ByteList ptr) static voidrb_str_buf_cat(Ruby runtime, ByteListHolder str, byte[] ptrBytes, int ptr, int len) static voidrb_str_buf_cat(Ruby runtime, ByteList str, byte[] ptrBytes, int ptr, int len) static intrb_str_buf_cat_escaped_char(RubyString result, long c, boolean unicode_p) static RubyStringrb_str_conv_enc(ThreadContext context, RubyString value, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding) static ByteListrb_str_conv_enc(ThreadContext context, ByteList value, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding) static RubyStringrb_str_conv_enc_opts(ThreadContext context, RubyString str, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding, int ecflags, IRubyObject ecopts) static ByteListrb_str_encode(ThreadContext context, byte[] bytes, int start, int length, org.jcodings.Encoding encoding, int cr, org.jcodings.Encoding to, int ecflags, IRubyObject ecopt) static IRubyObjectrb_str_encode(ThreadContext context, IRubyObject str, IRubyObject to, int ecflags, IRubyObject ecopt) static RubyStringrb_str_escape(ThreadContext context, RubyString str) static org.jcodings.Encodingrb_to_encoding(ThreadContext context, IRubyObject enc) static org.jcodings.Encodingrb_to_encoding_index(ThreadContext context, IRubyObject enc)
-
Constructor Details
-
MRI
public MRI()
-
-
Method Details
-
rb_pipe
-
rb_cloexec_pipe
-
rb_to_encoding
-
rb_ascii8bit_encoding
-
rb_io_extract_modeenc
public static void rb_io_extract_modeenc(ThreadContext context, IOEncodable ioEncodable, API.ModeAndPermission vmodeAndVperm_p, IRubyObject options, int[] oflags_p, int[] fmode_p) -
rb_io_extract_encoding_option
public static boolean rb_io_extract_encoding_option(ThreadContext context, IOEncodable ioEncodable, IRubyObject options, int[] fmode_p) -
rb_external_str_new_with_enc
public static RubyString rb_external_str_new_with_enc(Ruby runtime, String string, org.jcodings.Encoding encoding) -
rb_external_str_new_with_enc
public static RubyString rb_external_str_new_with_enc(Ruby runtime, ByteList bytelist, org.jcodings.Encoding encoding) -
rb_econv_str_convert
public static ByteList rb_econv_str_convert(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList src, int flags) -
rb_econv_str_convert
public static ByteList rb_econv_str_convert(ThreadContext context, org.jcodings.transcode.EConv ec, byte[] bytes, int start, int length, int flags) -
rb_econv_substr_append
public static ByteList rb_econv_substr_append(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList src, ByteList dst, int flags) -
rb_econv_append
public static ByteList rb_econv_append(ThreadContext context, org.jcodings.transcode.EConv ec, ByteList sByteList, ByteList dst, int flags) -
rb_econv_append
public static ByteList rb_econv_append(ThreadContext context, org.jcodings.transcode.EConv ec, byte[] bytes, int start, int length, ByteList dst, int flags) -
rb_econv_check_error
-
rb_econv_prepare_opts
public static int rb_econv_prepare_opts(ThreadContext context, IRubyObject opthash, IRubyObject[] opts) -
rb_econv_prepare_options
public static int rb_econv_prepare_options(ThreadContext context, IRubyObject opthash, IRubyObject[] opts, int ecflags) -
rb_econv_open_opts
public static org.jcodings.transcode.EConv rb_econv_open_opts(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags, IRubyObject opthash) -
rb_econv_open_exc
public static RaiseException rb_econv_open_exc(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags) -
rb_econv_asciicompat_encoding
public static org.jcodings.Encoding rb_econv_asciicompat_encoding(org.jcodings.Encoding enc) -
rb_enc_asciicompat
public static boolean rb_enc_asciicompat(org.jcodings.Encoding enc) -
rb_enc_ascget
public static int rb_enc_ascget(byte[] pBytes, int p, int e, int[] len, org.jcodings.Encoding enc) -
rb_enc_mbminlen
public static int rb_enc_mbminlen(org.jcodings.Encoding encoding) -
rb_enc_dummy_p
public static boolean rb_enc_dummy_p(org.jcodings.Encoding enc) -
rb_enc_get
-
rb_to_encoding_index
-
rb_enc_associate_index
-
rb_str_encode
public static IRubyObject rb_str_encode(ThreadContext context, IRubyObject str, IRubyObject to, int ecflags, IRubyObject ecopt) -
rb_str_encode
public static ByteList rb_str_encode(ThreadContext context, byte[] bytes, int start, int length, org.jcodings.Encoding encoding, int cr, org.jcodings.Encoding to, int ecflags, IRubyObject ecopt) -
rb_obj_encoding
-
rb_define_dummy_encoding
-
rb_str_conv_enc_opts
public static RubyString rb_str_conv_enc_opts(ThreadContext context, RubyString str, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding, int ecflags, IRubyObject ecopts) -
rb_str_conv_enc
public static RubyString rb_str_conv_enc(ThreadContext context, RubyString value, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding) -
rb_str_conv_enc
public static ByteList rb_str_conv_enc(ThreadContext context, ByteList value, org.jcodings.Encoding fromEncoding, org.jcodings.Encoding toEncoding) -
rb_enc_set_default_external
-
rb_enc_set_default_internal
-
rb_default_external_encoding
-
rb_str_buf_cat
-
rb_str_buf_cat
public static void rb_str_buf_cat(Ruby runtime, ByteListHolder str, byte[] ptrBytes, int ptr, int len) -
rb_str_buf_cat
-
rb_enc_str_buf_cat
public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, ByteList ptr, org.jcodings.Encoding enc) -
rb_enc_str_buf_cat
-
rb_enc_str_buf_cat
-
rb_enc_str_buf_cat
public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes, org.jcodings.Encoding enc) -
rb_enc_str_buf_cat
public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes, int ptr, int len, org.jcodings.Encoding enc) -
rb_enc_str_buf_cat
-
rb_enc_uint_chr
public static RubyString rb_enc_uint_chr(ThreadContext context, int code, org.jcodings.Encoding enc) -
rb_enc_mbcput
public static int rb_enc_mbcput(ThreadContext context, int c, byte[] buf, int p, org.jcodings.Encoding enc) -
rb_enc_codepoint_len
public static int rb_enc_codepoint_len(ThreadContext context, byte[] pBytes, int p, int e, int[] len_p, org.jcodings.Encoding enc) -
rb_str_escape
-
rb_str_buf_cat_escaped_char
-
rb_enc_codelen
-