scuffed-code/tools/unicodetools/com/ibm/text/UCD/Default.java
Mark Davis c56bb42770 Checked in extra files...
X-SVN-Rev: 9149
2002-07-14 22:07:00 +00:00

29 lines
970 B
Java

package com.ibm.text.UCD;
import com.ibm.text.utility.*;
import java.util.Date;
public final class Default implements UCD_Types {
public static String ucdVersion = UCD.latestVersion;
public static UCD ucd;
public static Normalizer nfc;
public static Normalizer nfd;
public static Normalizer nfkc;
public static Normalizer nfkd;
public static Normalizer[] nf = new Normalizer[4];
public static void setUCD(String version) {
ucdVersion = version;
setUCD();
}
public static void setUCD() {
ucd = UCD.make(ucdVersion);
nfd = nf[NFD] = new Normalizer(Normalizer.NFD, ucdVersion);
nfc = nf[NFC] = new Normalizer(Normalizer.NFC, ucdVersion);
nfkd = nf[NFKD] = new Normalizer(Normalizer.NFKD, ucdVersion);
nfkc = nf[NFKC] = new Normalizer(Normalizer.NFKC, ucdVersion);
System.out.println("Loaded UCD" + ucd.getVersion() + " " + (new Date(ucd.getDate())));
}
}