public static class SubTableLookup6Format3.SubstRuleFormat3 extends ContextualSubstRule
Constructor and Description |
---|
SubstRuleFormat3(List<Set<Integer>> backtrackCoverages, List<Set<Integer>> inputCoverages, List<Set<Integer>> lookaheadCoverages, SubstLookupRecord[] substLookupRecords) |
Modifier and Type | Method and Description |
---|---|
int |
getBacktrackContextLength()
Gets the length of the backtrack context glyph sequence defined by this rule
|
int |
getContextLength()
Gets the length of the context glyph sequence defined by this rule
|
int |
getLookaheadContextLength()
Gets the length of the lookahead context glyph sequence defined by this rule
|
SubstLookupRecord[] |
getSubstLookupRecords()
Retrieves the substitution lookup records.
|
boolean |
isGlyphMatchesBacktrack(int glyphId, int atIdx)
Checks if glyph line element matches element from backtrack sequence of the rule.
|
boolean |
isGlyphMatchesInput(int glyphId, int atIdx)
Checks if glyph line element matches element from input sequence of the rule.
|
boolean |
isGlyphMatchesLookahead(int glyphId, int atIdx)
Checks if glyph line element matches element from lookahead sequence of the rule.
|
public int getContextLength()
ContextualRule
getContextLength
in class ContextualRule
public int getLookaheadContextLength()
ContextualRule
getLookaheadContextLength
in class ContextualRule
public int getBacktrackContextLength()
ContextualRule
getBacktrackContextLength
in class ContextualRule
public SubstLookupRecord[] getSubstLookupRecords()
ContextualSubstRule
getSubstLookupRecords
in class ContextualSubstRule
SubstLookupRecord
.
public boolean isGlyphMatchesInput(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesInput
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in the rule sequence. Shall be: 0 < atIdx < ContextualRule.getContextLength()
true
if glyph matches element
public boolean isGlyphMatchesLookahead(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesLookahead
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getLookaheadContextLength()
true
if glyph matches element from lookahead sequence
public boolean isGlyphMatchesBacktrack(int glyphId, int atIdx)
ContextualRule
isGlyphMatchesBacktrack
in class ContextualRule
glyphId
- glyph code id
atIdx
- index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getBacktrackContextLength()
true
if glyph matches element from backtrack sequence
Copyright © 1998–2023 iText Group NV. All rights reserved.