Class SegmentStats
java.lang.Object
com.vladsch.flexmark.util.sequence.builder.SegmentStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SegmentStats other) voidaddText(char c) voidaddText(char c, int repeat) voidaddText(CharSequence text) voidclear()voidintintintintintintbooleanisEmpty()booleanbooleanbooleanbooleanbooleanisValid()voidremove(SegmentStats other) voidremoveText(CharSequence text) toString()
-
Field Details
-
NULL_REPEATED_CHAR
public static final int NULL_REPEATED_CHAR- See Also:
-
NOT_REPEATED_CHAR
public static final int NOT_REPEATED_CHAR- See Also:
-
textLength
protected int textLength -
textSegments
protected int textSegments -
textSegmentLength
protected int textSegmentLength -
textSpaceLength
protected int textSpaceLength -
textSpaceSegments
protected int textSpaceSegments -
textSpaceSegmentLength
protected int textSpaceSegmentLength -
textFirst256Length
protected int textFirst256Length -
textFirst256Segments
protected int textFirst256Segments -
textFirst256SegmentLength
protected int textFirst256SegmentLength -
repeatedChar
protected int repeatedChar -
trackFirst256
protected final boolean trackFirst256
-
-
Constructor Details
-
SegmentStats
public SegmentStats(boolean trackFirst256)
-
-
Method Details
-
getTextLength
public int getTextLength() -
getTextSpaceLength
public int getTextSpaceLength() -
getTextFirst256Length
public int getTextFirst256Length() -
isTrackTextFirst256
public boolean isTrackTextFirst256() -
getTextSegments
public int getTextSegments() -
getTextSpaceSegments
public int getTextSpaceSegments() -
getTextFirst256Segments
public int getTextFirst256Segments() -
isEmpty
public boolean isEmpty() -
isValid
public boolean isValid() -
committedCopy
-
clear
public void clear() -
add
-
remove
-
isTextFirst256
public boolean isTextFirst256() -
isTextRepeatedSpace
public boolean isTextRepeatedSpace() -
isRepeatedText
public boolean isRepeatedText() -
commitText
public void commitText() -
addText
-
addText
public void addText(char c) -
addText
public void addText(char c, int repeat) -
removeText
-
toString
-