public class Normalizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
C
Normalization Form Selector
|
static int |
D
Normalization Form Selector
|
static int |
KC
Normalization Form Selector
|
static int |
KD
Normalization Form Selector
|
static int |
NO_ACTION
Normalization Form Selector
|
Modifier and Type | Method and Description |
---|---|
static Normalizer |
make(int form,
Configuration config)
Create a normalizer for a given form: static synchronized factory method
|
java.lang.CharSequence |
normalize(java.lang.CharSequence source)
Normalizes text according to the chosen form
|
public static final int D
public static final int C
public static final int KD
public static final int KC
public static final int NO_ACTION
public static Normalizer make(int form, Configuration config) throws XPathException
form
- the normalization form required: for example C
, D
config
- the Saxon configurationXPathException
- if normalization failspublic java.lang.CharSequence normalize(java.lang.CharSequence source)
source
- the original text, unnormalizedCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.