Top Description Fields Constructors Methods
org.jcodings.transcode

public Class TranscodeFunctions

extends Object
Class Inheritance
Imports
org.jcodings.transcode.specific.From_UTF8_MAC_Transcoder, java.util.Arrays

Created by headius on 3/4/14.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
private static final int
private static final int
private static final int
public static final int
public static final int
public static final byte
public static final byte
public static final byte
public static final byte
public static final int
public static final int
public static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
public static final byte[]
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
BL_BASE(int nextInfo)

private static int
BL_INFO(int nextInfo)

private static int
bufApply(byte[] sp, byte[] o, int oStart)

private static final byte
bufAt(byte[] sp, int pos)

private static int
bufBeg(byte[] statep)

private static void
bufBeg(byte[] statep, int end)

private static int
bufBegPostInc(byte[] statep)

private static final int
bufBytesize(byte[] p)

private static void
bufClear(byte[] state)

private static boolean
bufEmpty(byte[] sp)

private static int
bufEnd(byte[] statep)

private static void
bufEnd(byte[] statep, int end)

private static int
bufEndPostInc(byte[] statep)

private static int
bufInt(byte[] statep, int base)

private static void
bufInt(byte[] statep, int base, int val)

private static int
bufOutputAll(byte[] sp, byte[] o, int oStart)

private static int
bufOutputChar(byte[] sp, byte[] o, int oStart)

private static void
bufPush(byte[] sp, byte[] p, int pStart, int l)

private static byte
bufShift(byte[] sp)

private static int
BYTE_ADDR(int index)

private static int
private static int
public static int
escapeXmlAttrQuoteFinish(byte[] statep, byte[] o, int oStart, int oSize)

public static int
escapeXmlAttrQuoteInit(byte[] statep)

public static int
finishCp50220Encoder(byte[] statep, byte[] o, int oStart, int size)

public static int
finishIso2022jpEncoder(byte[] statep, byte[] o, int oStart, int oSize)

public static int
finishIso2022jpKddiEncoder(byte[] statep, byte[] o, int oStart, int oSize)

public static int
fromUtf8MacFinish(byte[] statep, byte[] o, int oStart, int oSize)

public static int
fromUtf8MacInit(byte[] state)

public static int
funSiCp50221Decoder(byte[] statep, byte[] s, int sStart, int l)

public static int
funSiFromUTF16(byte[] statep, byte[] s, int sStart, int l)

public static int
funSiFromUTF32(byte[] statep, byte[] s, int sStart, int l)

public static int
funSiIso2022jpKddiDecoder(byte[] statep, byte[] s, int sStart, int l)

public static int
funSiIso50220jpDecoder(byte[] statep, byte[] s, int sStart, int l)

public static int
funSioFromGB18030(byte[] statep, byte[] s, int sStart, int l, int info, byte[] o, int oStart, int osize)

public static int
funSioToGB18030(byte[] statep, byte[] s, int sStart, int l, int info, byte[] o, int oStart, int osize)

public static int
funSoCp50220Encoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoCp50221Decoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoCp5022xEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoEscapeXmlAttrQuote(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoEucjp2Sjis(byte[] statep, byte[] s, int sStart, int _l, byte[] o, int oStart, int osize)

public static int
funSoEucjpToStatelessIso2022jp(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoFromCESU8(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromGB18030(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF16(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF16BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF16LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF32(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF32BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUTF32LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoFromUtf8Mac(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoIso2022jpDecoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoIso2022jpEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoIso2022jpKddiDecoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoIso2022jpKddiEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoSjis2Eucjp(byte[] statep, byte[] s, int sStart, int _l, byte[] o, int oStart, int osize)

public static int
funSoStatelessIso2022jpToEucjp(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

public static int
funSoToCESU8(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToGB18030(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF16(byte[] statep, byte[] sBytes, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF16BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF16LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF32(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF32BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoToUTF32LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)

public static int
funSoUniversalNewline(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)

private static int
getInfo(int nextInfo, byte[] sp)

public static int
public static int
iso2022jpInit(byte[] state)

public static int
public static int
iso2022jpKddiInit(byte[] statep)

private static void
NEWLINE_NEWLINES_MET(byte[] sp, int b)

private static void
NEWLINE_NEWLINES_MET_or_mask(byte[] sp, int b)

private static byte
NEWLINE_STATE(byte[] sp)

private static void
NEWLINE_STATE(byte[] sp, int b)

public static int
universalNewlineFinish(byte[] statep, byte[] o, int oStart, int oSize)

public static int
universalNewlineInit(byte[] statep)

public static int
UTF8MAC_BL_ACTION(int nextInfo, byte b)

public static int
UTF8MAC_BL_MAX_BYTE(int nextInfo)

public static int
UTF8MAC_BL_MIN_BYTE(int nextInfo)

public static int
UTF8MAC_BL_OFFSET(int nextInfo, int b)

private static boolean
utf8Trailbyte(byte c)

private static int
WORD_ADDR(int index)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BEback to summary
public static final int BE
EMACS_MULE_LEADING_CODE_JISX0208_1978back to summary
public static final int EMACS_MULE_LEADING_CODE_JISX0208_1978
EMACS_MULE_LEADING_CODE_JISX0208_1983back to summary
public static final int EMACS_MULE_LEADING_CODE_JISX0208_1983
ESCAPE_ENDback to summary
private static final int ESCAPE_END
ESCAPE_NORMALback to summary
private static final int ESCAPE_NORMAL
from_utf8_mac_nfc2back to summary
private static final int from_utf8_mac_nfc2
from_UTF_16BE_D8toDB_00toFFback to summary
public static final int from_UTF_16BE_D8toDB_00toFF
from_UTF_16LE_00toFF_D8toDBback to summary
public static final int from_UTF_16LE_00toFF_D8toDB
G0_ASCIIback to summary
public static final byte G0_ASCII
G0_JISX0201_KATAKANAback to summary
public static final byte G0_JISX0201_KATAKANA
G0_JISX0208_1978back to summary
public static final byte G0_JISX0208_1978
G0_JISX0208_1983back to summary
public static final byte G0_JISX0208_1983
iso2022jp_decoder_jisx0208_restback to summary
public static final int iso2022jp_decoder_jisx0208_rest
iso2022jp_kddi_decoder_jisx0208_restback to summary
public static final int iso2022jp_kddi_decoder_jisx0208_rest
LEback to summary
public static final int LE
MET_CRback to summary
private static final int MET_CR
MET_CRLFback to summary
private static final int MET_CRLF
MET_LFback to summary
private static final int MET_LF
NEWLINE_JUST_AFTER_CRback to summary
private static final int NEWLINE_JUST_AFTER_CR
NEWLINE_NORMALback to summary
private static final int NEWLINE_NORMAL
STATUS_BUF_SIZEback to summary
private static final int STATUS_BUF_SIZE
tbl0208back to summary
public static final byte[] tbl0208
TOTAL_BUF_SIZEback to summary
private static final int TOTAL_BUF_SIZE

Constructor Detail

TranscodeFunctionsback to summary
public TranscodeFunctions()

Method Detail

BL_BASEback to summary
private static int BL_BASE(int nextInfo)
BL_INFOback to summary
private static int BL_INFO(int nextInfo)
bufApplyback to summary
private static int bufApply(byte[] sp, byte[] o, int oStart)
bufAtback to summary
private static final byte bufAt(byte[] sp, int pos)
bufBegback to summary
private static int bufBeg(byte[] statep)
bufBegback to summary
private static void bufBeg(byte[] statep, int end)
bufBegPostIncback to summary
private static int bufBegPostInc(byte[] statep)
bufBytesizeback to summary
private static final int bufBytesize(byte[] p)
bufClearback to summary
private static void bufClear(byte[] state)
bufEmptyback to summary
private static boolean bufEmpty(byte[] sp)
bufEndback to summary
private static int bufEnd(byte[] statep)
bufEndback to summary
private static void bufEnd(byte[] statep, int end)
bufEndPostIncback to summary
private static int bufEndPostInc(byte[] statep)
bufIntback to summary
private static int bufInt(byte[] statep, int base)
bufIntback to summary
private static void bufInt(byte[] statep, int base, int val)
bufOutputAllback to summary
private static int bufOutputAll(byte[] sp, byte[] o, int oStart)
bufOutputCharback to summary
private static int bufOutputChar(byte[] sp, byte[] o, int oStart)
bufPushback to summary
private static void bufPush(byte[] sp, byte[] p, int pStart, int l)
bufShiftback to summary
private static byte bufShift(byte[] sp)
BYTE_ADDRback to summary
private static int BYTE_ADDR(int index)
BYTE_LOOKUP_BASEback to summary
private static int BYTE_LOOKUP_BASE(int bl)
BYTE_LOOKUP_INFOback to summary
private static int BYTE_LOOKUP_INFO(int bl)
escapeXmlAttrQuoteFinishback to summary
public static int escapeXmlAttrQuoteFinish(byte[] statep, byte[] o, int oStart, int oSize)
escapeXmlAttrQuoteInitback to summary
public static int escapeXmlAttrQuoteInit(byte[] statep)
finishCp50220Encoderback to summary
public static int finishCp50220Encoder(byte[] statep, byte[] o, int oStart, int size)
finishIso2022jpEncoderback to summary
public static int finishIso2022jpEncoder(byte[] statep, byte[] o, int oStart, int oSize)
finishIso2022jpKddiEncoderback to summary
public static int finishIso2022jpKddiEncoder(byte[] statep, byte[] o, int oStart, int oSize)
fromUtf8MacFinishback to summary
public static int fromUtf8MacFinish(byte[] statep, byte[] o, int oStart, int oSize)
fromUtf8MacInitback to summary
public static int fromUtf8MacInit(byte[] state)
funSiCp50221Decoderback to summary
public static int funSiCp50221Decoder(byte[] statep, byte[] s, int sStart, int l)
funSiFromUTF16back to summary
public static int funSiFromUTF16(byte[] statep, byte[] s, int sStart, int l)
funSiFromUTF32back to summary
public static int funSiFromUTF32(byte[] statep, byte[] s, int sStart, int l)
funSiIso2022jpKddiDecoderback to summary
public static int funSiIso2022jpKddiDecoder(byte[] statep, byte[] s, int sStart, int l)
funSiIso50220jpDecoderback to summary
public static int funSiIso50220jpDecoder(byte[] statep, byte[] s, int sStart, int l)
funSioFromGB18030back to summary
public static int funSioFromGB18030(byte[] statep, byte[] s, int sStart, int l, int info, byte[] o, int oStart, int osize)
funSioToGB18030back to summary
public static int funSioToGB18030(byte[] statep, byte[] s, int sStart, int l, int info, byte[] o, int oStart, int osize)
funSoCp50220Encoderback to summary
public static int funSoCp50220Encoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoCp50221Decoderback to summary
public static int funSoCp50221Decoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoCp5022xEncoderback to summary
public static int funSoCp5022xEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoEscapeXmlAttrQuoteback to summary
public static int funSoEscapeXmlAttrQuote(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoEucjp2Sjisback to summary
public static int funSoEucjp2Sjis(byte[] statep, byte[] s, int sStart, int _l, byte[] o, int oStart, int osize)
funSoEucjpToStatelessIso2022jpback to summary
public static int funSoEucjpToStatelessIso2022jp(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoFromCESU8back to summary
public static int funSoFromCESU8(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromGB18030back to summary
public static int funSoFromGB18030(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF16back to summary
public static int funSoFromUTF16(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF16BEback to summary
public static int funSoFromUTF16BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF16LEback to summary
public static int funSoFromUTF16LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF32back to summary
public static int funSoFromUTF32(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF32BEback to summary
public static int funSoFromUTF32BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUTF32LEback to summary
public static int funSoFromUTF32LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoFromUtf8Macback to summary
public static int funSoFromUtf8Mac(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoIso2022jpDecoderback to summary
public static int funSoIso2022jpDecoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoIso2022jpEncoderback to summary
public static int funSoIso2022jpEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoIso2022jpKddiDecoderback to summary
public static int funSoIso2022jpKddiDecoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoIso2022jpKddiEncoderback to summary
public static int funSoIso2022jpKddiEncoder(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoSjis2Eucjpback to summary
public static int funSoSjis2Eucjp(byte[] statep, byte[] s, int sStart, int _l, byte[] o, int oStart, int osize)
funSoStatelessIso2022jpToEucjpback to summary
public static int funSoStatelessIso2022jpToEucjp(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
funSoToCESU8back to summary
public static int funSoToCESU8(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToGB18030back to summary
public static int funSoToGB18030(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF16back to summary
public static int funSoToUTF16(byte[] statep, byte[] sBytes, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF16BEback to summary
public static int funSoToUTF16BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF16LEback to summary
public static int funSoToUTF16LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF32back to summary
public static int funSoToUTF32(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF32BEback to summary
public static int funSoToUTF32BE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoToUTF32LEback to summary
public static int funSoToUTF32LE(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int osize)
funSoUniversalNewlineback to summary
public static int funSoUniversalNewline(byte[] statep, byte[] s, int sStart, int l, byte[] o, int oStart, int oSize)
getInfoback to summary
private static int getInfo(int nextInfo, byte[] sp)
iso2022jpEncoderResetSequenceSizeback to summary
public static int iso2022jpEncoderResetSequenceSize(byte[] statep)
iso2022jpInitback to summary
public static int iso2022jpInit(byte[] state)
iso2022jpKddiEncoderResetSequence_sizeback to summary
public static int iso2022jpKddiEncoderResetSequence_size(byte[] statep)
iso2022jpKddiInitback to summary
public static int iso2022jpKddiInit(byte[] statep)
NEWLINE_NEWLINES_METback to summary
private static void NEWLINE_NEWLINES_MET(byte[] sp, int b)
NEWLINE_NEWLINES_MET_or_maskback to summary
private static void NEWLINE_NEWLINES_MET_or_mask(byte[] sp, int b)
NEWLINE_STATEback to summary
private static byte NEWLINE_STATE(byte[] sp)
NEWLINE_STATEback to summary
private static void NEWLINE_STATE(byte[] sp, int b)
universalNewlineFinishback to summary
public static int universalNewlineFinish(byte[] statep, byte[] o, int oStart, int oSize)
universalNewlineInitback to summary
public static int universalNewlineInit(byte[] statep)
UTF8MAC_BL_ACTIONback to summary
public static int UTF8MAC_BL_ACTION(int nextInfo, byte b)
UTF8MAC_BL_MAX_BYTEback to summary
public static int UTF8MAC_BL_MAX_BYTE(int nextInfo)
UTF8MAC_BL_MIN_BYTEback to summary
public static int UTF8MAC_BL_MIN_BYTE(int nextInfo)
UTF8MAC_BL_OFFSETback to summary
public static int UTF8MAC_BL_OFFSET(int nextInfo, int b)
utf8Trailbyteback to summary
private static boolean utf8Trailbyte(byte c)
WORD_ADDRback to summary
private static int WORD_ADDR(int index)