package com.perforce.config; import java.text.Normalizer.Form; public enum Normaliser { NFC(0), NFD(1), NFKC(2), NFKD(3); final int id; Normaliser(int i) { id = i; } /** * This is a special wrapper around Normalizer.Form as this is missing a * parse method. * * @param property * @return */ public static Object parse(String property) { if (property != null) { for (Form f : Form.values()) { if (property.equalsIgnoreCase(f.name())) { return f; } } } return null; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 10152 | alan_petersen |
Populate //guest/alan_petersen/p4convert/... from //guest/perforce_software/p4convert/.... |
||
//guest/perforce_software/p4convert/src/com/perforce/config/Normaliser.java | |||||
#1 | 9807 | Paul Allen | Initial import of p4-convert (from change 894340) |