Package net.sf.saxon.regex
Class SurrogateRegexTranslator.CharRange
- java.lang.Object
-
- net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
-
- net.sf.saxon.regex.SurrogateRegexTranslator.SimpleCharClass
-
- net.sf.saxon.regex.SurrogateRegexTranslator.CharRange
-
- Enclosing class:
- SurrogateRegexTranslator
public static class SurrogateRegexTranslator.CharRange extends SurrogateRegexTranslator.SimpleCharClass
Character class that matches any character within a range of codepoints
-
-
Constructor Summary
Constructors Constructor Description CharRange(int lower, int upper)Create a character class for a range of characters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNonBmpRanges(java.util.List ranges)Add to a supplied List, ranges of non-BMP characters that are matched by this character class.voidinClassOutputBmp(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)-
Methods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.SimpleCharClass
outputBmp, outputComplementBmp
-
Methods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
getContainsBmp, getContainsNonBmp, getSingleChar, output
-
-
-
-
Method Detail
-
inClassOutputBmp
public void inClassOutputBmp(FastStringBuffer buf)
Description copied from class:SurrogateRegexTranslator.SimpleCharClassOutput 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)- Specified by:
inClassOutputBmpin classSurrogateRegexTranslator.SimpleCharClass- Parameters:
buf- the supplied buffer
-
addNonBmpRanges
public void addNonBmpRanges(java.util.List ranges)
Description copied from class:SurrogateRegexTranslator.CharClassAdd to a supplied List, ranges of non-BMP characters that are matched by this character class. Default implementation does nothing.- Overrides:
addNonBmpRangesin classSurrogateRegexTranslator.CharClass- Parameters:
ranges- a List to which this method will add zero or more Range objects denoting ranges of non-BMP characters
-
-