Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拼音首字母 #46

Open
GuiwenChen opened this issue Nov 5, 2019 · 1 comment
Open

拼音首字母 #46

GuiwenChen opened this issue Nov 5, 2019 · 1 comment

Comments

@GuiwenChen
Copy link

能否添加对返回字符串拼音首字母的支持?

@VaslD
Copy link

VaslD commented Feb 10, 2020

这个移植项目里添加了首字母支持,不是 Java 语言的。

Java 的话增加个静态函数就可以,基本逻辑是给一个固定的分隔符(比如:|)调用拼音转换,然后通过分隔符切分字串,取每段第一个字符拼成新的首字母字串。移植项目用了语言特性 LINQ,对应 Java 的特性是 stream(), map()collect()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants