|
Oracle® Database Globalization Development Kit Java API Reference 11g Release 1 (11.1) Book Part Number B28299-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.i18n.text.OraNormalizer
public class OraNormalizer
The OraNormalizer class is a class used for normalizing strings following the Unicode Standard. Unicode characters may have different canonical formats. Before you can accurately compare characters, you must call the methods in this class to make sure that they are in the same canonical format. For more information regarding Unicode Normalization and the Unicode Standard, please refer to Technical Report 15 at www.unicode.org.
| Field Summary | |
|---|---|
static int |
CANONICAL_DECOMPCanonical decompose the string and then canonical sort the string. |
static int |
COMPATIBILITY_DECOMPCompatible decompose the string and then canonical sort the string. |
static int |
NFCCanonical decomposition then composition. |
static int |
NFDCanonical decomposition. |
static int |
NFKCCompatibility decomposition then composition canonical sort the string. |
static int |
NFKDCompatibility decomposition. |
static int |
NO_DECOMPCanonical sort the string. |
| Method Summary | |
|---|---|
void |
canonicalSort(char[] sequence)This method takes a char[] and performs canonical sort on the sequence. |
String |
compose(String sequence)This is the normalization method. |
String |
decompose(String sequence, int mode)This is the normalization method. |
static OraNormalizer |
getInstance()Returns a shared OraNormalizer instance to the user. |
String |
normalize(String sequence, int mode)This is the normalization method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_DECOMP
public static final int CANONICAL_DECOMP
public static final int COMPATIBILITY_DECOMP
public static final int NFD
public static final int NFC
public static final int NFKD
public static final int NFKC
| Method Detail |
|---|
public static OraNormalizer getInstance()
OraNormalizer instance to the user.OraNormalizer instancepublic void canonicalSort(char[] sequence)
sequence - a string to sortpublic String compose(String sequence)
sequence - a string to compose
public String decompose(String sequence,
int mode)
sequence - a string to composemode - decomposed mode; options are NO_DECOMPOSITION, CANONICAL_DECOMPOSITION, and COMPATIBLE_DECOMPOSITION
public String normalize(String sequence,
int mode)
sequence - a string to composemode - decomposed mode; options are NFD, NFC, NFKD, NFKC
|
Oracle® Database Globalization Development Kit Java API Reference 11g Release 1 (11.1) Book Part Number B28299-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||