mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change the way getting acronym
This commit is contained in:
parent
aaa938191a
commit
d64b4b5b0c
1 changed files with 5 additions and 6 deletions
|
|
@ -47,7 +47,11 @@ namespace Flow.Launcher.Infrastructure
|
|||
chineseIndexs.Add(i);
|
||||
}
|
||||
StringBuilder resultBuilder = new StringBuilder();
|
||||
resultBuilder.Append(string.Concat(resultList.Where((r, i) => chineseIndexs.Contains(i)).Select(s => s.First())));
|
||||
|
||||
foreach (var chineseIndex in chineseIndexs)
|
||||
{
|
||||
resultBuilder.Append(resultList[chineseIndex].First());
|
||||
}
|
||||
resultBuilder.Append(' ');
|
||||
|
||||
int currentChineseIndex = 0;
|
||||
|
|
@ -90,10 +94,5 @@ namespace Flow.Launcher.Infrastructure
|
|||
return content;
|
||||
}
|
||||
}
|
||||
|
||||
private string GetFirstPinyinChar(string content)
|
||||
{
|
||||
return string.Concat(content.Split(' ').Select(x => x.First()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue