net.sf.saxon.regex

Class SurrogateRegexTranslator.SingleChar

Enclosing Class:
SurrogateRegexTranslator

public static class SurrogateRegexTranslator.SingleChar
extends SurrogateRegexTranslator.SimpleCharClass

Character class that matches a single specific character in the BMP

Constructor Summary

SingleChar(char c)
Create a character class for a single BMP character

Method Summary

int
getSingleChar()
Get the character represented by this character class
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)
void
outputBmp(FastStringBuffer buf)
Output a representation of this character class to a supplied buffer @param buf the supplied buffer

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

SingleChar

public SingleChar(char c)
Create a character class for a single BMP character
Parameters:
c - the character

Method Details

getSingleChar

public int getSingleChar()
Get the character represented by this character class
Overrides:
getSingleChar in interface SurrogateRegexTranslator.CharClass
Returns:
the character

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

outputBmp

public void outputBmp(FastStringBuffer buf)
Output a representation of this character class to a supplied buffer @param buf the supplied buffer
Overrides:
outputBmp in interface SurrogateRegexTranslator.SimpleCharClass