public static interface Words.WordCaseDescriptor
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
formatWord(StringBuilder sb,
Words.Segment seg,
CharConverter.CharCase preprocessor) |
CharConverter.CharCase |
getCharCase(Words.Segment seg,
int charIndex,
boolean[] continueFlagRef) |
CharConverter.CharCase getCharCase(Words.Segment seg, int charIndex, boolean[] continueFlagRef)
continueFlagRef - 只包含一个 boolean 值的数组,该接口方法的实现可以通过该 boolean 值来传达下个字符是否还需要调用该方法来获取 CharCase。continueFlagRef[0] 为 true,则将返回对象仅应用于当前字符的转换处理;如果为 false,则后续字符都将应用该 CharCase 进行转换处理default void formatWord(StringBuilder sb, Words.Segment seg, CharConverter.CharCase preprocessor)
Copyright © 2021. All rights reserved.