コード例 #1
0
        private static void addCharacterSet(int value, String encodingName)
        {
            var eci = new CharacterSetECI(value, encodingName);

            VALUE_TO_ECI[value]       = eci; // can't use valueOf
            NAME_TO_ECI[encodingName] = eci;
        }
コード例 #2
0
        private static void addCharacterSet(int value, String[] encodingNames)
        {
            var eci = new CharacterSetECI(value, encodingNames[0]);

            VALUE_TO_ECI[value] = eci; // can't use valueOf
            foreach (string t in encodingNames)
            {
                NAME_TO_ECI[t] = eci;
            }
        }