private void ReadFormat04(string line) { string[] format = line.Split('='); if (AliasTypes.Contains(format[0])) { return; } if (format[0].Contains("C*") && format[1].Contains("%C%*") && format[1].Contains("|") && format[1].Contains("{") && format[1].Contains("}")) { string n = format[0]; string f = format[1].Split('|')[0]; string s = format[1].Split('|')[1]; s = s.Substring(s.IndexOf('{') + 1, s.Length - s.IndexOf('}')); for (int i = 0; i < MULTICONSONANT_LIMIT; i++) { var final_n = n.Replace("C*", String.Concat(Enumerable.Repeat("C", i + 1))); var final_f = f.Replace("%C%*", string.Join(s, Enumerable.Repeat("%C%", i + 1))); Format[final_n] = final_f; AliasTypes.Add(final_n); } } else { Format[format[0]] = format[1]; AliasTypes.Add(format[0]); } }
private void ReadFormat(string line) { string[] format = line.Split('='); if (AliasTypes.Contains(format[0])) { return; } Format[format[0]] = format[1]; AliasTypes.Add(format[0]); }