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); }
public UnicodeStream(char c) { CodePoints = UnicodeCore.parseUTFStreamToCodePoints(System.Text.Encoding.UTF8.GetBytes(new char[] { c }), Encoding.UTF8); }
public UnicodeStream(string str) { CodePoints = UnicodeCore.parseUTFStreamToCodePoints(System.Text.Encoding.UTF8.GetBytes(str), Encoding.UTF8); }
public UnicodeStream(byte[] buffer, Encoding enc) { CodePoints = UnicodeCore.parseUTFStreamToCodePoints(buffer, enc); }
public void Insert(int index, string str) { byte[] encoded = System.Text.Encoding.UTF8.GetBytes(str); CodePoints.InsertRange(index, UnicodeCore.parseUTFStreamToCodePoints(encoded, Encoding.UTF8)); }
public void Push(string str) { byte[] encoded = System.Text.Encoding.UTF8.GetBytes(str); CodePoints.AddRange(UnicodeCore.parseUTFStreamToCodePoints(encoded, Encoding.UTF8)); }