@ThreadSafe public class NormalPinyinToneStyle extends AbstractPinyinToneStyle
(1)直接使用便利替换,避免 regex 的开销。 (2)原理上来复杂度都是 O(n)
一个拼音只会有一个声调,如果有直接返回即可。
| 构造器和说明 |
|---|
NormalPinyinToneStyle() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getCharFormat(String tone,
CharToneInfo toneInfo)
获取单个字符拼音的格式化
|
styleprotected String getCharFormat(String tone, CharToneInfo toneInfo)
AbstractPinyinToneStylegetCharFormat 在类中 AbstractPinyinToneStyletone - 分段后的拼音toneInfo - 字符的声调信息Copyright © 2023. All rights reserved.