net.sf.saxon.regex

Class SurrogateRegexTranslator.CharRange

Enclosing Class:
SurrogateRegexTranslator

public static class SurrogateRegexTranslator.CharRange
extends SurrogateRegexTranslator.SimpleCharClass

Character class that matches any character within a range of codepoints

Constructor Summary

CharRange(int lower, int upper)
Create a character class for a range of characters

Method Summary

void
addNonBmpRanges(List ranges)
Add to a supplied List, ranges of non-BMP characters that are matched 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)

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

CharRange

public CharRange(int lower,
                 int upper)
Create a character class for a range of characters
Parameters:
lower - the lower end of the range
upper - the upper end of the range

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

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