Package net.sf.saxon.regex
Class SurrogateRegexTranslator.Complement
java.lang.Object
net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
net.sf.saxon.regex.SurrogateRegexTranslator.Complement
- Enclosing class:
- SurrogateRegexTranslator
Character class representing the complement of another character class, that is, all
characters that the other class doesn't match.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a character class representing the complement of another character class -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNonBmpRanges
(List ranges) Add to a supplied List, ranges of non-BMP characters that are matched by this character class.void
Output a representation of the subset of this character class that's within the BMP, to a supplied buffervoid
Output a representation of the complement of the subset of this character class that's within the BMP, to a supplied bufferMethods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
getContainsBmp, getContainsNonBmp, getSingleChar, output
-
Constructor Details
-
Complement
Create a character class representing the complement of another character class- Parameters:
cc
- the character class of which this is the complement
-
-
Method Details
-
outputBmp
Description copied from class:SurrogateRegexTranslator.CharClass
Output a representation of the subset of this character class that's within the BMP, to a supplied buffer- Specified by:
outputBmp
in classSurrogateRegexTranslator.CharClass
- Parameters:
buf
- the supplied buffer
-
outputComplementBmp
Description copied from class:SurrogateRegexTranslator.CharClass
Output a representation of the complement of the subset of this character class that's within the BMP, to a supplied buffer- Specified by:
outputComplementBmp
in classSurrogateRegexTranslator.CharClass
- Parameters:
buf
- the supplied buffer
-
addNonBmpRanges
Description copied from class:SurrogateRegexTranslator.CharClass
Add to a supplied List, ranges of non-BMP characters that are matched by this character class. Default implementation does nothing.- Overrides:
addNonBmpRanges
in classSurrogateRegexTranslator.CharClass
- Parameters:
ranges
- a List to which this method will add zero or more Range objects denoting ranges of non-BMP characters
-