接口 Words.WordCaseDescriptor

  • 封闭类:
    Words

    public static interface Words.WordCaseDescriptor
    • 方法详细资料

      • getCharCase

        CharConverter.CharCase getCharCase​(Words.Segment seg,
                                           int charIndex,
                                           boolean[] continueFlagRef)
        参数:
        continueFlagRef - 只包含一个 boolean 值的数组,该接口方法的实现可以通过该 boolean 值来传达下个字符是否还需要调用该方法来获取 CharCase
        返回:
        如果返回 null,则后续字符不再需要大小写转换处理,直接跳出处理循环。 其他情况下:如果 continueFlagRef[0] 为 true,则将返回对象仅应用于当前字符的转换处理;如果为 false,则后续字符都将应用该 CharCase 进行转换处理