这是我的数组:
{
string[] consonants = new string[9];
consonants[0] = "ඌ";
consonants[1] = "උ";
consonants[2] = "මෟ";
consonants[3] = "මෑ";
consonants[4] = "මැ";
consonants[5] = "මූ";
consonants[6] = "මු";
consonants[7] = "මෛ";
consonants[8] = "මේ";
string line = textBox1.Text.ToString();
line = line.Replace('\t', ' ');
line = line.Replace('\n', ' ');
line = line.Replace('\r', ' ');
}
我想根据这个数组分割文本,例如:如果文本框有“මෑ”文本,我想将它与数组匹配,并且它与数组匹配的单词然后将它放入另一个数组中,该文本原样。