net.sf.saxon.regex

Class SurrogateRegexTranslator.Complement

Enclosing Class:
SurrogateRegexTranslator

public static class SurrogateRegexTranslator.Complement
extends SurrogateRegexTranslator.CharClass

Character class representing the complement of another character class, that is, all characters that the other class doesn't match.

Constructor Summary

Complement(SurrogateRegexTranslator.CharClass cc)
Create a character class representing the complement of another character class

Method Summary

void
addNonBmpRanges(List ranges)
Add to a supplied List, ranges of non-BMP characters that are matched by this character class.
void
outputBmp(FastStringBuffer buf)
Output a representation of the subset of this character class that's within the BMP, to a supplied buffer
void
outputComplementBmp(FastStringBuffer buf)
Output a representation of the complement of the subset of this character class that's within the BMP, to a supplied buffer

Methods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass

addNonBmpRanges, getContainsBmp, getContainsNonBmp, getSingleChar, output, outputBmp, outputComplementBmp

Constructor Details

Complement

public Complement(SurrogateRegexTranslator.CharClass cc)
Create a character class representing the complement of another character class
Parameters:
cc - the character class of which this is the complement

Method Details

addNonBmpRanges

public void addNonBmpRanges(List ranges)
Add to a supplied List, ranges of non-BMP characters that are matched by this character class. Default implementation does nothing.
Overrides:
addNonBmpRanges in interface SurrogateRegexTranslator.CharClass
Parameters:
ranges - a List to which this method will add zero or more Range objects denoting ranges of non-BMP characters

outputBmp

public void outputBmp(FastStringBuffer buf)
Output a representation of the subset of this character class that's within the BMP, to a supplied buffer
Overrides:
outputBmp in interface SurrogateRegexTranslator.CharClass
Parameters:
buf - the supplied buffer

outputComplementBmp

public void outputComplementBmp(FastStringBuffer buf)
Output a representation of the complement of the subset of this character class that's within the BMP, to a supplied buffer
Overrides:
outputComplementBmp in interface SurrogateRegexTranslator.CharClass
Parameters:
buf - the supplied buffer