Package org.jruby.api

Class MRI

java.lang.Object
org.jruby.api.MRI

public class MRI extends Object
  • Constructor Details

    • MRI

      public MRI()
  • Method Details

    • rb_pipe

      public static int rb_pipe(ThreadContext context, int[] pipes)
    • rb_cloexec_pipe

      public static int rb_cloexec_pipe(ThreadContext context, int[] pipes)
    • rb_to_encoding

      public static org.jcodings.Encoding rb_to_encoding(ThreadContext context, IRubyObject enc)
    • rb_ascii8bit_encoding

      public static org.jcodings.Encoding rb_ascii8bit_encoding(Ruby runtime)
    • 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

      public static void rb_econv_check_error(ThreadContext context, org.jcodings.transcode.EConv ec)
    • 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

      public static org.jcodings.Encoding rb_enc_get(ThreadContext context, IRubyObject obj)
    • rb_to_encoding_index

      public static org.jcodings.Encoding rb_to_encoding_index(ThreadContext context, IRubyObject enc)
    • rb_enc_associate_index

      public static IRubyObject rb_enc_associate_index(IRubyObject obj, org.jcodings.Encoding encidx)
    • 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

      public static IRubyObject rb_obj_encoding(ThreadContext context, IRubyObject obj)
    • rb_define_dummy_encoding

      public static org.jcodings.Encoding rb_define_dummy_encoding(ThreadContext context, byte[] name)
    • 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

      public static void rb_enc_set_default_external(ThreadContext context, IRubyObject encoding)
    • rb_enc_set_default_internal

      public static void rb_enc_set_default_internal(ThreadContext context, IRubyObject encoding)
    • rb_default_external_encoding

      public static org.jcodings.Encoding rb_default_external_encoding(ThreadContext context)
    • rb_str_buf_cat

      public static void rb_str_buf_cat(Ruby runtime, RubyString str, ByteList ptr)
    • 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

      public static void rb_str_buf_cat(Ruby runtime, ByteList str, byte[] ptrBytes, int ptr, int len)
    • 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

      public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, ByteList ptr)
    • rb_enc_str_buf_cat

      public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, byte[] ptrBytes)
    • 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

      public static void rb_enc_str_buf_cat(ThreadContext context, RubyString str, CharSequence cseq)
    • 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

      public static RubyString rb_str_escape(ThreadContext context, RubyString str)
    • rb_str_buf_cat_escaped_char

      public static int rb_str_buf_cat_escaped_char(RubyString result, long c, boolean unicode_p)
    • rb_enc_codelen

      public static int rb_enc_codelen(ThreadContext context, int c, org.jcodings.Encoding enc)