| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| public static interface | |
| public static interface | EncodingUtils.
Data needed for the function to execute Data>Fallback function to provide replacements for characters that fail to transcode. |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final EncodingUtils. | |
| public static final int | |
| public static final int | |
| private static final EncodingUtils. | |
| private static final EncodingUtils. | |
| private static final byte[] | |
| private static final EncodingUtils. | |
| public static final EncodingUtils. | |
| public static final int | |
| private static final Encoding | |
| private static final Encoding |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Encoding | |
| public static Charset | Returns: the matching charsetthe encoding for which to get a matching charset enc)Get an appropriate Java Charset for the given Encoding. |
| public static int | |
| public static boolean | |
| public static Encoding | |
| public static Encoding | |
| public static ByteList | |
| public static ByteList | econvAppend(ThreadContext context, EConv ec, byte[] bytes, int start, int length, ByteList dst, int flags)
|
| public static void | econvArgs(ThreadContext context, IRubyObject[] args, byte[][] encNames, Encoding[] encs, int[] ecflags_p, IRubyObject[] ecopts_p)
|
| public static Encoding | |
| public static ByteList | |
| public static void | |
| public static String | econvDescription(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags, String message)
|
| public static EConv | econvInitByConvpath(ThreadContext context, IRubyObject convpathArg, byte[][] encNames, Encoding[] encs)
|
| public static RaiseException | |
| public static EConv | econvOpenOpts(ThreadContext context, byte[] sourceEncoding, byte[] destinationEncoding, int ecflags, IRubyObject opthash)
|
| public static int | |
| public static int | |
| public static int | |
| public static ByteList | |
| public static ByteList | |
| public static Encoding | |
| public static int | |
| public static boolean | |
| public static IRubyObject | |
| public static void | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | encCrStrBufCat(Ruby runtime, CodeRangeable str, byte[] ptrBytes, int ptr, int len, Encoding ptrEnc, int ptr_cr)
|
| public static boolean | |
| public static Encoding | |
| public static int | |
| public static int | |
| public static int | |
| public static RubyString | |
| public static IRubyObject | encodedDup(ThreadContext context, IRubyObject newstr, IRubyObject str, Encoding encindex)
Deprecated
|
| public static boolean | |
| public static List | |
| public static boolean | |
| public static Encoding | |
| public static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static RubyString | |
| public static void | |
| public static void | |
| public static void | extractModeEncoding(ThreadContext context, IOEncodable ioEncodable, Object vmodeAndVperm_p, IRubyObject options, int[] oflags_p, int[] fmode_p)
Deprecated
|
| public static void | extractModeEncoding(ThreadContext context, IOEncodable ioEncodable, API.
|
| public static Encoding | |
| public static Encoding | |
| public static Encoding | |
| public static Encoding | |
| private static IRubyObject | |
| public static RubyString | |
| public static IRubyObject | |
| public static void | ioExtIntToEncs(ThreadContext context, IOEncodable encodable, Encoding external, Encoding internal, int fmode)
|
| public static boolean | ioExtractEncodingOption(ThreadContext context, IOEncodable ioEncodable, IRubyObject options, int[] fmode_p)
|
| public static Encoding | |
| public static Encoding | |
| public static Encoding | |
| private static boolean | |
| private static boolean | |
| public static boolean | |
| public static RaiseException | |
| public static RaiseException | |
| private static RaiseException | |
| public static final int | |
| pack-priv static void | moreOutputBuffer(ByteList destination, EncodingUtils.
|
| public static RubyString | |
| public static RubyString | |
| protected static boolean | |
| public static IRubyObject | |
| public static IRubyObject[] | |
| public static IRubyObject[] | |
| public static void | |
| public static Encoding | |
| public static ByteList | rbByteEncode(ThreadContext context, byte[] bytes, int start, int length, Encoding encoding, int cr, Encoding to, int ecflags, IRubyObject ecopt)
A version of rbStrEncode that works directly with bytes. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | |
| public static IRubyObject | |
| public static RubyString | |
| public static Encoding | |
| public static int | |
| public static RubyString | |
| public static Encoding | |
| public static void | |
| public static void | |
| public static void | |
| public static IRubyObject | |
| public static RubyString | |
| public static ByteList | |
| public static ByteList | strConvEncOpts(ThreadContext context, ByteList str, Encoding fromEncoding, Encoding toEncoding, int ecflags, IRubyObject ecopts)
|
| public static RubyString | strConvEncOpts(ThreadContext context, RubyString str, Encoding fromEncoding, Encoding toEncoding, int ecflags, IRubyObject ecopts)
This will try and transcode the supplied ByteList to the supplied toEncoding. |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | strEncode(ThreadContext context, RubyString str, IRubyObject toEncoding, IRubyObject forcedEncoding)
|
| public static IRubyObject | strEncode(ThreadContext context, RubyString str, IRubyObject toEncoding, IRubyObject forcedEncoding, IRubyObject opts)
|
| public static IRubyObject | |
| public static RubyString | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | strTranscode(ThreadContext context, IRubyObject toEncoding, RubyString str, EncodingUtils.
|
| public static IRubyObject | strTranscode(ThreadContext context, IRubyObject toEncoding, IRubyObject forcedEncoding, RubyString str, EncodingUtils.
|
| public static IRubyObject | strTranscode(ThreadContext context, IRubyObject toEncoding, IRubyObject forcedEncoding, IRubyObject opts, RubyString str, EncodingUtils.
|
| private static RubyString | strTranscode(ThreadContext context, IRubyObject toEncoding, IRubyObject forceEncoding, RubyString str, int ecflags, IRubyObject ecopts, EncodingUtils.
|
| public static Encoding | |
| public static IRubyObject | strTranscode(ThreadContext context, IRubyObject[] args, RubyString str, EncodingUtils.
Deprecated
|
| private static IRubyObject | strTranscode0(ThreadContext context, RubyString str, int ecflags, IRubyObject ecopts, EncodingUtils.
|
| public static Encoding | strTranscode0(ThreadContext context, int argc, IRubyObject[] args, IRubyObject[] self_p, int ecflags, IRubyObject ecopts)
Deprecated
|
| private static IRubyObject | strTranscode1(ThreadContext context, IRubyObject toEncoding, RubyString str, int ecflags, IRubyObject ecopts, EncodingUtils.
|
| private static IRubyObject | strTranscode2(ThreadContext context, IRubyObject toEncoding, IRubyObject forceEncoding, RubyString str, int ecflags, IRubyObject ecopts, EncodingUtils.
|
| public static Encoding | strTranscodeEncArgs(ThreadContext context, IRubyObject str, IRubyObject arg1, IRubyObject arg2, byte[][] sname_p, Encoding[] senc_p, byte[][] dname_p, Encoding[] denc_p)
|
| private static RubyString | strTranscodeScrub(ThreadContext context, IRubyObject forceEncoding, RubyString str, int ecflags, IRubyObject ecopts, EncodingUtils.
|
| public static Encoding | |
| public static Encoding | |
| public static void | transcodeLoop(ThreadContext context, byte[] inBytes, Ptr inPos, byte[] outBytes, Ptr outPos, int inStop, int _outStop, ByteList destination, EncodingUtils.
Perform the inner transcoding loop. |
| public static < type of data for the fallback function Data> boolean | transcodeLoop(EConv
the encoding converter ec, EncodingUtils.the fallback function for non-transcodable characters, or null if none fallbackFunc,runtime state to pass into the fallback context, Data call state to pass into the fallback fallbackData, byte[] the incoming byte array inBytes, Ptr the position from which to start in the incoming bytearray inPos, byte[] the initial output byte array outBytes, Ptr the position from which to start in the initial output byte array outPos, int the position at which to stop in the input inStop, int the number of bytes at which to stop in the output outStop, ByteList the ByteList to hold the eventual output destination, EncodingUtils.a function to use to grow the destination resizeFunctionPerform the inner transcoding loop. |
| public static ByteList | transcodeString(String string, Encoding toEncoding, int ecflags)
A version of transcodeLoop for working without any Ruby runtime available. |
| public static void | |
| public static IRubyObject | |
| public static void | |
| public static IRubyObject | |
| public static void | |
| public static Object | |
| public static IRubyObject | |
| public static void | |
| public static IRubyObject | |
| public static void |