net.sf.saxon.regex

Class SurrogateRegexTranslator.Property

Enclosing Class:
SurrogateRegexTranslator

public static class SurrogateRegexTranslator.Property
extends SurrogateRegexTranslator.SimpleCharClass

Character class containing characters that share a given Unicode property

Constructor Summary

Property(String name)
Create a character class for a named property

Method Summary

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 the subset of this character class that's within the BMP, to a supplied buffer
void
outputComplementBmp(FastStringBuffer buf)
Output a representation of the subset of this character class that's outwith the BMP, to a 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

Property

public Property(String name)
Create a character class for a named property
Parameters:
name - the name of the property

Method Details

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 the subset of this character class that's within the BMP, to a supplied buffer
Overrides:
outputBmp in interface SurrogateRegexTranslator.SimpleCharClass
Parameters:
buf - the supplied buffer

outputComplementBmp

public void outputComplementBmp(FastStringBuffer buf)
Output a representation of the subset of this character class that's outwith the BMP, to a supplied buffer. Must not call if containsBmp == ALL
Overrides:
outputComplementBmp in interface SurrogateRegexTranslator.SimpleCharClass
Parameters:
buf - the supplied buffer