接口 Words.WordCaseDescriptor
-
- 封闭类:
- Words
public static interface Words.WordCaseDescriptor
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidformatWord(StringBuilder sb, Words.Segment seg, CharConverter.CharCase preprocessor)CharConverter.CharCasegetCharCase(Words.Segment seg, int charIndex, boolean[] continueFlagRef)
-
-
-
方法详细资料
-
getCharCase
CharConverter.CharCase getCharCase(Words.Segment seg, int charIndex, boolean[] continueFlagRef)
- 参数:
continueFlagRef- 只包含一个 boolean 值的数组,该接口方法的实现可以通过该 boolean 值来传达下个字符是否还需要调用该方法来获取CharCase。- 返回:
- 如果返回 null,则后续字符不再需要大小写转换处理,直接跳出处理循环。 其他情况下:如果
continueFlagRef[0]为 true,则将返回对象仅应用于当前字符的转换处理;如果为 false,则后续字符都将应用该CharCase进行转换处理
-
formatWord
default void formatWord(StringBuilder sb, Words.Segment seg, CharConverter.CharCase preprocessor)
-
-