PinyinUtils

class PinyinUtils

Functions

ccs2Pinyin
Link copied to clipboard
open fun ccs2Pinyin(ccs: CharSequence): String
汉字转拼音
open fun ccs2Pinyin(ccs: CharSequence, split: CharSequence): String
汉字转拼音
getPinyinFirstLetter
Link copied to clipboard
open fun getPinyinFirstLetter(ccs: CharSequence): String
获取第一个汉字首字母
getPinyinFirstLetters
Link copied to clipboard
open fun getPinyinFirstLetters(ccs: CharSequence): String
获取所有汉字的首字母
open fun getPinyinFirstLetters(ccs: CharSequence, split: CharSequence): String
获取所有汉字的首字母
getSurnameFirstLetter
Link copied to clipboard
open fun getSurnameFirstLetter(name: CharSequence): String
根据名字获取姓氏的首字母
getSurnamePinyin
Link copied to clipboard
open fun getSurnamePinyin(name: CharSequence): String
根据名字获取姓氏的拼音