TinyPinyin.Core 0.1.0

适用于.Net平台的快速、低内存占用的汉字转拼音库。

Install-Package TinyPinyin.Core -Version 0.1.0
dotnet add package TinyPinyin.Core --version 0.1.0
<PackageReference Include="TinyPinyin.Core" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TinyPinyin.Core --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TinyPinyin.Core, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install TinyPinyin.Core as a Cake Addin
#addin nuget:?package=TinyPinyin.Core&version=0.1.0

// Install TinyPinyin.Core as a Cake Tool
#tool nuget:?package=TinyPinyin.Core&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

特性

生成的拼音不包含声调,均为大写
执行效率高
低内存占用
支持获取简码(拼音首字母)
使用

只提供足够简洁的API,简单易用。

/// <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)

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 7,093 5/26/2017