Package net.sf.saxon.regex
Class SurrogateRegexTranslator.SingleChar
java.lang.Object
net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
net.sf.saxon.regex.SurrogateRegexTranslator.SimpleCharClass
net.sf.saxon.regex.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the character represented by this character classvoidOutput 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 this character class to a supplied buffer @param buf the supplied bufferMethods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.SimpleCharClass
outputComplementBmpMethods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
addNonBmpRanges, getContainsBmp, getContainsNonBmp, output
-
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:
getSingleCharin classSurrogateRegexTranslator.CharClass- Returns:
- the character
-
outputBmp
Output a representation of this character class to a supplied buffer @param buf the supplied buffer- Overrides:
outputBmpin classSurrogateRegexTranslator.SimpleCharClass- Parameters:
buf- the supplied buffer
-
inClassOutputBmp
Description copied from class:SurrogateRegexTranslator.SimpleCharClassOutput 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)- Specified by:
inClassOutputBmpin classSurrogateRegexTranslator.SimpleCharClass- Parameters:
buf- the supplied buffer
-