Ejemplo n.º 1
0
        public static int[] GetInts(char[] pChars)
        {
            // valid?
            if (null == pChars)
            {
                return(new int[0]);
            }

            // return it
            return(UTF32String.GetInts(pChars, 0, pChars.Length));
        }
Ejemplo n.º 2
0
        public static int[] GetInts(string pUTF16)
        {
            // valid?
            if (null == pUTF16)
            {
                return(new int[0]);
            }

            // return it
            return(UTF32String.GetInts(pUTF16.ToCharArray()));
        }
Ejemplo n.º 3
0
        //---------------------------------------------------------------------
        // Public Static Methods
        //---------------------------------------------------------------------
        public static UTF32String FromChars(char[] pChars)
        {
            int[] intArray = null;

            // valid?
            if (null != pChars)
            {
                intArray = UTF32String.GetInts(pChars);
            }

            // create a new instance
            return(new UTF32String(intArray));
        }
Ejemplo n.º 4
0
 public UTF32String(string pInput)
 {
     m_internal = UTF32String.GetInts(pInput);
 }
Ejemplo n.º 5
0
 public UTF32String(char[] pInput)
 {
     m_internal = UTF32String.GetInts(pInput);
 }
Ejemplo n.º 6
0
 public bool EndsWith(string pPattern)
 {
     return(this.EndsWith(UTF32String.GetInts(pPattern)));
 }
Ejemplo n.º 7
0
 public bool StartsWith(string pPattern)
 {
     return(this.StartsWith(UTF32String.GetInts(pPattern)));
 }
Ejemplo n.º 8
0
 public UTF32String Append(char[] pChars)
 {
     return(this.Append(UTF32String.GetInts(pChars)));
 }