Exemple #1
0
        public static UTF32String FromUTF16(string pString)
        {
            char[] charArray = null;

            if (null != pString)
            {
                charArray = pString.ToCharArray();
            }

            // create a new instance
            return(UTF32String.FromChars(charArray));
        }
Exemple #2
0
        public static UTF32String FromBytes(byte[] pBytes)
        {
            char[] charArray = null;

            // valid?
            if (null != pBytes)
            {
                charArray = UnicodeEncoding.UTF8.GetChars(pBytes);
            }

            // create a new instance
            return(UTF32String.FromChars(charArray));
        }