pinyin

package
v1.0.4-Realize Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToString

func ToString(pinyins []*Pinyin, split ...string) string

将一组Pinyin转换为不带声调的字符串

func ToStringTone

func ToStringTone(pinyins []*Pinyin, split ...string) string

将一组Pinyin转换为带声调的字符串

Types

type Pinyin

type Pinyin struct {
	// contains filtered or unexported fields
}

Pinyin 拼音结构

func Gain

func Gain(char string) *Pinyin

获取单个文字拼音

func Gains

func Gains(str string) []*Pinyin

获取多个文字拼音

func (*Pinyin) Err

func (slf *Pinyin) Err() error

func (*Pinyin) Finals

func (slf *Pinyin) Finals() []string

func (*Pinyin) Initial

func (slf *Pinyin) Initial() string

func (*Pinyin) Source

func (slf *Pinyin) Source() string

func (*Pinyin) String

func (slf *Pinyin) String() string

String 获取不带声调的完整拼音

func (*Pinyin) StringTone

func (slf *Pinyin) StringTone() string

StringTone 获取完整的拼音

func (*Pinyin) Tone

func (slf *Pinyin) Tone() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL