Top Fields Constructors Methods
org.jcodings

public abstract Class CanBeTrailTableEncoding

extends MultiByteEncoding
Class Inheritance
Known Direct Subclasses
org.jcodings.specific.BaseBIG5Encoding, org.jcodings.specific.BaseSJISEncoding, org.jcodings.specific.CP949Encoding, org.jcodings.specific.GBKEncoding

Field Summary

Modifier and TypeField and Description
protected final boolean[]
Inherited from org.jcodings.MultiByteEncoding:
AEncLenFTransTransZero

Constructor Summary

AccessConstructor and Description
protected
CanBeTrailTableEncoding(String name, int minLength, int maxLength, int[] EncLen, int[][] Trans, short[] CTypeTable, boolean[] CanBeTrailTable)

Method Summary

Modifier and TypeMethod and Description
public boolean
isReverseMatchAllowed(byte[] bytes, int p, int end)

Implements abstract org.jcodings.Encoding.isReverseMatchAllowed.

Returns true if it's safe to use reversal Boyer-Moore search fail fast algorithm Oniguruma equivalent: is_allowed_reverse_match
public int
leftAdjustCharHead(byte[]
byte stream
bytes
,
int
position
p
,
int
stop
s
,
int
end
end
)

Implements abstract org.jcodings.Encoding.leftAdjustCharHead.

Seeks the previous character head in a stream Oniguruma equivalent: left_adjust_char_head
Inherited from org.jcodings.MultiByteEncoding:
caseMapisInRangelengthlengthForTwoUptoFourmb2CodeToMbcmb2CodeToMbcLengthmb2IsCodeCTypemb4CodeToMbcmb4CodeToMbcLengthmb4IsCodeCTypembnMbcCaseFoldmbnMbcToCodemissingmissingsafeLengthForUptoFoursafeLengthForUptoThreesafeLengthForUptoTwostrCodeAtstrLength

Field Detail

CanBeTrailTableback to summary
protected final boolean[] CanBeTrailTable

Constructor Detail

CanBeTrailTableEncodingback to summary
protected CanBeTrailTableEncoding(String name, int minLength, int maxLength, int[] EncLen, int[][] Trans, short[] CTypeTable, boolean[] CanBeTrailTable)

Method Detail

isReverseMatchAllowedback to summary
public boolean isReverseMatchAllowed(byte[] bytes, int p, int end)

Implements abstract org.jcodings.Encoding.isReverseMatchAllowed.

Doc from org.jcodings.Encoding.isReverseMatchAllowed.

Returns true if it's safe to use reversal Boyer-Moore search fail fast algorithm Oniguruma equivalent: is_allowed_reverse_match

Annotations
@Override
leftAdjustCharHeadback to summary
public int leftAdjustCharHead(byte[] bytes, int p, int s, int end)

Implements abstract org.jcodings.Encoding.leftAdjustCharHead.

Doc from org.jcodings.Encoding.leftAdjustCharHead.

Seeks the previous character head in a stream Oniguruma equivalent: left_adjust_char_head

Parameters
bytes:byte[]

byte stream

p:int

position

s:int

stop

end:int

end

Annotations
@Override