标签:
//设置不同的参数进行处理
string g = "cabg"; string g2 = "ag"; string text8 = string.Concat(new string[] { this.qqwabb(g), "-", this.qqwabb(g2), "-", this.qqwabb(g2), " ", this.qqwabb(g2), ":" }); string g3 = "aa"; text8 = text8 + this.qqwabb(g3) + ":" + this.qqwabb(g3);
private string qqwabb(string g000) { string text = ""; string result; if (string.IsNullOrEmpty(g000)) { result = text; } else { char[] array = new char[] { ‘a‘, ‘b‘, ‘c‘, ‘d‘, ‘e‘, ‘f‘, ‘g‘, ‘h‘, ‘i‘, ‘j‘ }; char[] array2 = g000.ToCharArray(); int num = array.Length; char[] array3 = array2; for (int i = 0; i < array3.Length; i++) { char c = array3[i]; for (int j = 0; j < num; j++) { if (c.Equals(array[j])) { text += j.ToString(); } } } result = text; } return result; }
标签:
原文地址:http://www.cnblogs.com/siaslfslovewp/p/5569440.html