TinyPinyin.Core.Standard
1.0.0
请升级到 TinyPinyin,可直接兼容 .Net Framework、.Net Standard、.Net 5/6
dotnet add package TinyPinyin.Core.Standard --version 1.0.0
NuGet\Install-Package TinyPinyin.Core.Standard -Version 1.0.0
<PackageReference Include="TinyPinyin.Core.Standard" Version="1.0.0" />
paket add TinyPinyin.Core.Standard --version 1.0.0
#r "nuget: TinyPinyin.Core.Standard, 1.0.0"
// Install TinyPinyin.Core.Standard as a Cake Addin #addin nuget:?package=TinyPinyin.Core.Standard&version=1.0.0 // Install TinyPinyin.Core.Standard as a Cake Tool #tool nuget:?package=TinyPinyin.Core.Standard&version=1.0.0
推荐升级到:https://www.nuget.org/packages/TinyPinyin/
TinyPinyin.Net
适用于.Net平台的快速、低内存占用的汉字转拼音库。核心算法来自TinyPinyin(https://github.com/promeG/TinyPinyin)
特性
- 生成的拼音不包含声调,均为大写
- 执行效率高
- 低内存占用
- 支持获取简码(拼音首字母)
如何使用
只提供足够简洁的API,简单易用。
安装
使用 NuGet
搜索 TinyPinyin.Core
进行安装,也可直接执行命令: Install-Package TinyPinyin.Core
。
使用
/// <summary>
/// 获取单个字符的拼音
/// </summary>
/// <param name="c"></param>
/// <returns></returns>
string PinyinHelper.GetPinyin(char c)
/// <summary>
/// 获取文本字符串的拼音,允许设定拼音分割符
/// </summary>
/// <param name="text">要获取拼音的文本</param>
/// <param name="separator">拼音分割符,默认空格</param>
/// <returns></returns>
string PinyinHelper.GetPinyin(string text, string separator = " ")
/// <summary>
/// 判断单个字符是否是中文
/// </summary>
/// <param name="c"></param>
/// <returns></returns>
bool IsChinese(char c)
感谢
TinyPinyin.Net
适用于.Net平台的快速、低内存占用的汉字转拼音库。核心算法来自TinyPinyin(https://github.com/promeG/TinyPinyin)
特性
- 生成的拼音不包含声调,均为大写
- 执行效率高
- 低内存占用
- 支持获取简码(拼音首字母)
如何使用
只提供足够简洁的API,简单易用。
安装
使用 NuGet
搜索 TinyPinyin.Core
进行安装,也可直接执行命令: Install-Package TinyPinyin.Core
。
使用
/// <summary>
/// 获取单个字符的拼音
/// </summary>
/// <param name="c"></param>
/// <returns></returns>
string PinyinHelper.GetPinyin(char c)
/// <summary>
/// 获取文本字符串的拼音,允许设定拼音分割符
/// </summary>
/// <param name="text">要获取拼音的文本</param>
/// <param name="separator">拼音分割符,默认空格</param>
/// <returns></returns>
string PinyinHelper.GetPinyin(string text, string separator = " ")
/// <summary>
/// 判断单个字符是否是中文
/// </summary>
/// <param name="c"></param>
/// <returns></returns>
bool IsChinese(char c)
感谢
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.6 is compatible. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 1.6
- NETStandard.Library (>= 1.6.1)
- System.Runtime (>= 4.3.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on TinyPinyin.Core.Standard:
Package | Downloads |
---|---|
Citms.Common.Utility
Excel批量导入,导出功能; EF 公共DBContext实现 |
|
Citms.Common.Excel
Excel批量导入导出公共插件 |
|
Etor.Infrastructure
Package Description |
|
MyCore
常用的核心接口和工具类 |
|
AbpPlusPlus.PinYinConverter
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 80,654 | 9/21/2017 |