net.sf.saxon.regex
public static class SurrogateRegexTranslator.CharRange extends SurrogateRegexTranslator.SimpleCharClass
Constructor and Description |
---|
SurrogateRegexTranslator.CharRange(int lower,
int upper)
Create a character class for a range of characters
|
Modifier and Type | Method and Description |
---|---|
void |
addNonBmpRanges(java.util.List ranges)
Add to a supplied List, ranges of non-BMP characters that are matched by this character class.
|
void |
inClassOutputBmp(FastStringBuffer buf)
Output a representation of the subset of this character class that's within the BMP, to
a supplied buffer, using regex syntax that will be valid within a character class
expression (that is, within square brackets)
|
outputBmp, outputComplementBmp
getContainsBmp, getContainsNonBmp, getSingleChar, output
public SurrogateRegexTranslator.CharRange(int lower, int upper)
lower
- the lower end of the rangeupper
- the upper end of the rangepublic void inClassOutputBmp(FastStringBuffer buf)
SurrogateRegexTranslator.SimpleCharClass
inClassOutputBmp
in class SurrogateRegexTranslator.SimpleCharClass
buf
- the supplied bufferpublic void addNonBmpRanges(java.util.List ranges)
SurrogateRegexTranslator.CharClass
addNonBmpRanges
in class SurrogateRegexTranslator.CharClass
ranges
- a List to which this method will add zero or more Range objects denoting ranges
of non-BMP characters