Package net.sf.saxon.regex
Class SurrogateRegexTranslator.SimpleCharClass
java.lang.Object
net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
net.sf.saxon.regex.SurrogateRegexTranslator.SimpleCharClass
- Direct Known Subclasses:
SurrogateRegexTranslator.CharRange,SurrogateRegexTranslator.Empty,SurrogateRegexTranslator.Property,SurrogateRegexTranslator.SingleChar,SurrogateRegexTranslator.WideSingleChar
- Enclosing class:
SurrogateRegexTranslator
public abstract static class SurrogateRegexTranslator.SimpleCharClass
extends SurrogateRegexTranslator.CharClass
Simple Character Class - essentially, anything other than a Union or Subtraction between two
character classes.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCharClass(int containsBmp, int containsNonBmp) Create a SimpleCharClass -
Method Summary
Modifier and TypeMethodDescriptionabstract voidOutput 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)voidOutput a representation of the subset of this character class that's within the BMP, to a supplied buffervoidOutput a representation of the subset of this character class that's outwith the BMP, to a supplied buffer.Methods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
addNonBmpRanges, getContainsBmp, getContainsNonBmp, getSingleChar, output
-
Constructor Details
-
SimpleCharClass
public SimpleCharClass(int containsBmp, int containsNonBmp) Create a SimpleCharClass- Parameters:
containsBmp- true if the class includes BMP characterscontainsNonBmp- true if the class includes non-BMP characters
-
-
Method Details
-
outputBmp
Output a representation of the subset of this character class that's within the BMP, to a supplied buffer- Specified by:
outputBmpin classSurrogateRegexTranslator.CharClass- Parameters:
buf- the supplied buffer
-
outputComplementBmp
Output a representation of the subset of this character class that's outwith the BMP, to a supplied buffer. Must not call if containsBmp == ALL- Specified by:
outputComplementBmpin classSurrogateRegexTranslator.CharClass- Parameters:
buf- the supplied buffer
-
inClassOutputBmp
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)- Parameters:
buf- the supplied buffer
-