net.sf.saxon.regex

Class SurrogateRegexTranslator.WideSingleChar

Enclosing Class:
SurrogateRegexTranslator

public static class SurrogateRegexTranslator.WideSingleChar
extends SurrogateRegexTranslator.SimpleCharClass

Character class that matches a single specific character outside the BMP

Constructor Summary

WideSingleChar(int c)
Create a character class for a single non-BMP character

Method Summary

void
addNonBmpRanges(List ranges)
int
getSingleChar()
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)

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

inClassOutputBmp, outputBmp, outputComplementBmp

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

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

Constructor Details

WideSingleChar

public WideSingleChar(int c)
Create a character class for a single non-BMP character
Parameters:
c - the character

Method Details

addNonBmpRanges

public void addNonBmpRanges(List ranges)
Overrides:
addNonBmpRanges in interface SurrogateRegexTranslator.CharClass

getSingleChar

public int getSingleChar()
Overrides:
getSingleChar in interface SurrogateRegexTranslator.CharClass

inClassOutputBmp

public 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)
Overrides:
inClassOutputBmp in interface SurrogateRegexTranslator.SimpleCharClass
Parameters:
buf - the supplied buffer