public static class SurrogateRegexTranslator.SingleChar extends SurrogateRegexTranslator.SimpleCharClass
Constructor and Description |
---|
SurrogateRegexTranslator.SingleChar(char c)
Create a character class for a single BMP character
|
Modifier and Type | Method and Description |
---|---|
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
|
outputComplementBmp
addNonBmpRanges, getContainsBmp, getContainsNonBmp, output
public SurrogateRegexTranslator.SingleChar(char c)
c
- the characterpublic int getSingleChar()
getSingleChar
in class SurrogateRegexTranslator.CharClass
public void outputBmp(FastStringBuffer buf)
outputBmp
in class SurrogateRegexTranslator.SimpleCharClass
buf
- the supplied bufferpublic void inClassOutputBmp(FastStringBuffer buf)
SurrogateRegexTranslator.SimpleCharClass
inClassOutputBmp
in class SurrogateRegexTranslator.SimpleCharClass
buf
- the supplied buffer