public class AdvancedTextBoundary
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
breakChars |
static int |
ENGLISH |
protected boolean |
f_separateHyphenWords |
static int |
FRENCH |
static int |
GERMAN |
boolean |
ignoreXML
Whether to ignore XML/HTML tags, false by default.
|
int |
languageParsing
Language rules to use when parsing.
|
static java.lang.String |
noBreakButLookIntoChars |
static int |
noBreakButLookIntoCharsLength |
static char[] |
noBreakChars |
boolean |
separateHyphenWords |
protected java.lang.String |
theText |
Constructor and Description |
---|
AdvancedTextBoundary() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkLegalOffset(int offset,
java.lang.String message,
boolean allowEnd) |
static int[] |
convertIntegers(java.util.ArrayList integers) |
int |
following(int offset) |
protected boolean |
isAtNonBreakingWhiteSpace(int position) |
protected boolean |
isAtNonBreakingWhiteSpace(int position,
boolean previousIsIfThisIs,
boolean nextIsIfThisIs) |
protected boolean |
isAtNonWhiteSpace(int position) |
protected boolean |
isBetweenWordChars(int position) |
protected boolean |
isBetweenWordChars(int position,
boolean previousIsIfThisIs,
boolean nextIsIfThisIs) |
boolean |
isBoundary(int offset) |
boolean |
isBoundaryLeft(int offset) |
boolean |
isBoundaryRight(int offset) |
int |
last() |
int |
preceding(int offset) |
void |
setText(java.lang.String t) |
public boolean ignoreXML
public static char[] noBreakChars
public static java.lang.String noBreakButLookIntoChars
public static java.lang.String breakChars
public static int noBreakButLookIntoCharsLength
protected java.lang.String theText
protected boolean f_separateHyphenWords
public int languageParsing
public static int ENGLISH
public static int FRENCH
public static int GERMAN
public boolean separateHyphenWords
public void setText(java.lang.String t)
public static int[] convertIntegers(java.util.ArrayList integers)
public int following(int offset)
public int preceding(int offset)
protected boolean isAtNonWhiteSpace(int position)
protected boolean isAtNonBreakingWhiteSpace(int position, boolean previousIsIfThisIs, boolean nextIsIfThisIs)
public int last()
protected void checkLegalOffset(int offset, java.lang.String message, boolean allowEnd)
public boolean isBoundaryRight(int offset)
public boolean isBoundaryLeft(int offset)
public boolean isBoundary(int offset)
protected boolean isAtNonBreakingWhiteSpace(int position)
protected boolean isBetweenWordChars(int position)
protected boolean isBetweenWordChars(int position, boolean previousIsIfThisIs, boolean nextIsIfThisIs)
Copyright © 2002-2016 Keyoti Inc. All Rights Reserved.