Top Fields Constructors Methods
org.joni

public final Class CodeRangeBuffer

extends Object
Class Inheritance
Imports
org.jcodings.Encoding, org.joni.exception.ErrorMessages, .ValueException

Field Summary

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

private int

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
public static CodeRangeBuffer
public static CodeRangeBuffer
addCodeRange(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to)

public static CodeRangeBuffer
addCodeRange(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to, boolean checkDup)

public static CodeRangeBuffer
addCodeRangeToBuff(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to)

public static CodeRangeBuffer
addCodeRangeToBuff(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to, boolean checkDup)

public static CodeRangeBuffer
andCodeRange1(CodeRangeBuffer pbuf, ScanEnvironment env, int from1, int to1, int[] data, int n)

public static CodeRangeBuffer
andCodeRangeBuff(CodeRangeBuffer bbuf1, boolean not1, CodeRangeBuffer bbuf2, boolean not2, ScanEnvironment env)

public CodeRangeBuffer
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public void
ensureSize(int size)

public void
expand(int low)

public int[]
public int
private static int
protected void
moveLeft(int from, int to, int n)

private void
moveLeftAndReduce(int from, int to)

private void
moveRight(int from, int to, int n)

public static CodeRangeBuffer
public static CodeRangeBuffer
orCodeRangeBuff(ScanEnvironment env, CodeRangeBuffer bbuf1, boolean not1, CodeRangeBuffer bbuf2, boolean not2)

private static String
protected static CodeRangeBuffer
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
writeCodePoint(int pos, int b)

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INIT_MULTI_BYTE_RANGE_SIZEback to summary
private static final int INIT_MULTI_BYTE_RANGE_SIZE
LAST_CODE_POINTback to summary
public static final int LAST_CODE_POINT
pback to summary
private int[] p
usedback to summary
private int used

Constructor Detail

CodeRangeBufferback to summary
public CodeRangeBuffer()
CodeRangeBufferback to summary
private CodeRangeBuffer(CodeRangeBuffer orig)

Method Detail

addAllMultiByteRangeback to summary
public static CodeRangeBuffer addAllMultiByteRange(ScanEnvironment env, CodeRangeBuffer pbuf)
addCodeRangeback to summary
public static CodeRangeBuffer addCodeRange(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to)
addCodeRangeback to summary
public static CodeRangeBuffer addCodeRange(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to, boolean checkDup)
addCodeRangeToBuffback to summary
public static CodeRangeBuffer addCodeRangeToBuff(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to)
addCodeRangeToBuffback to summary
public static CodeRangeBuffer addCodeRangeToBuff(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to, boolean checkDup)
andCodeRange1back to summary
public static CodeRangeBuffer andCodeRange1(CodeRangeBuffer pbuf, ScanEnvironment env, int from1, int to1, int[] data, int n)
andCodeRangeBuffback to summary
public static CodeRangeBuffer andCodeRangeBuff(CodeRangeBuffer bbuf1, boolean not1, CodeRangeBuffer bbuf2, boolean not2, ScanEnvironment env)
cloneback to summary
public CodeRangeBuffer clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:CodeRangeBuffer

a clone of this instance.

Annotations
@Override
ensureSizeback to summary
public void ensureSize(int size)
expandback to summary
public void expand(int low)
getCodeRangeback to summary
public int[] getCodeRange()
getUsedback to summary
public int getUsed()
mbcodeStartPositionback to summary
private static int mbcodeStartPosition(Encoding enc)
moveLeftback to summary
protected void moveLeft(int from, int to, int n)
moveLeftAndReduceback to summary
private void moveLeftAndReduce(int from, int to)
moveRightback to summary
private void moveRight(int from, int to, int n)
notCodeRangeBuffback to summary
public static CodeRangeBuffer notCodeRangeBuff(ScanEnvironment env, CodeRangeBuffer bbuf)
orCodeRangeBuffback to summary
public static CodeRangeBuffer orCodeRangeBuff(ScanEnvironment env, CodeRangeBuffer bbuf1, boolean not1, CodeRangeBuffer bbuf2, boolean not2)
rangeNumToStringback to summary
private static String rangeNumToString(int num)
setAllMultiByteRangeback to summary
protected static CodeRangeBuffer setAllMultiByteRange(ScanEnvironment env, CodeRangeBuffer pbuf)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
writeCodePointback to summary
public void writeCodePoint(int pos, int b)