コード例 #1
0
        public void InsertRange(int index, string[] strs)
        {
            List <UInt64> cps = new List <ulong>();

            for (int i = 0; i < strs.Length; i++)
            {
                cps.AddRange(UnicodeCore.parseUTFStreamToCodePoints(System.Text.Encoding.UTF8.GetBytes(strs[i]), Encoding.UTF8));
            }

            CodePoints.InsertRange(index, cps);
        }
コード例 #2
0
 public UnicodeStream(char c)
 {
     CodePoints = UnicodeCore.parseUTFStreamToCodePoints(System.Text.Encoding.UTF8.GetBytes(new char[] { c }), Encoding.UTF8);
 }
コード例 #3
0
 public UnicodeStream(string str)
 {
     CodePoints = UnicodeCore.parseUTFStreamToCodePoints(System.Text.Encoding.UTF8.GetBytes(str), Encoding.UTF8);
 }
コード例 #4
0
 public UnicodeStream(byte[] buffer, Encoding enc)
 {
     CodePoints = UnicodeCore.parseUTFStreamToCodePoints(buffer, enc);
 }
コード例 #5
0
 public void Insert(int index, string str)
 {
     byte[] encoded = System.Text.Encoding.UTF8.GetBytes(str);
     CodePoints.InsertRange(index, UnicodeCore.parseUTFStreamToCodePoints(encoded, Encoding.UTF8));
 }
コード例 #6
0
 public void Push(string str)
 {
     byte[] encoded = System.Text.Encoding.UTF8.GetBytes(str);
     CodePoints.AddRange(UnicodeCore.parseUTFStreamToCodePoints(encoded, Encoding.UTF8));
 }