C# Class Wox.Infrastructure.Alphabet

Exibir arquivo Open project: Wox-launcher/Wox Class Usage Examples

Public Methods

Method Description
Acronym ( string pinyin ) : string
ContainsChinese ( string word ) : bool
Pinyin ( string word ) : string[]

replace chinese character with pinyin, non chinese character won't be modified should be word or sentence, instead of single character. e.g. 微软

PinyinComination ( string characters ) : string[][]

Private Methods

Method Description
Alphabet ( ) : System
Combination ( string array1, string array2 ) : string[]

Method Details

Acronym() public static method

public static Acronym ( string pinyin ) : string
pinyin string
return string

ContainsChinese() public static method

public static ContainsChinese ( string word ) : bool
word string
return bool

Pinyin() public static method

replace chinese character with pinyin, non chinese character won't be modified should be word or sentence, instead of single character. e.g. 微软
public static Pinyin ( string word ) : string[]
word string
return string[]

PinyinComination() public static method

public static PinyinComination ( string characters ) : string[][]
characters string should be word or sentence, instead of single character. e.g. 微软
return string[][]