类 CharFinder

    • 构造器详细资料

      • CharFinder

        public CharFinder​(char c)
        构造,不忽略字符大小写
        参数:
        c - 被查找的字符
      • CharFinder

        public CharFinder​(char c,
                          boolean caseInsensitive)
        构造
        参数:
        c - 被查找的字符
        caseInsensitive - 是否忽略大小写
    • 方法详细资料

      • start

        public int start​(int from)
        从接口复制的说明: Finder
        返回开始位置,即起始字符位置(包含),未找到返回-1
        参数:
        from - 查找的开始位置(包含)
        返回:
        起始字符位置,未找到返回-1
      • end

        public int end​(int start)
        从接口复制的说明: Finder
        返回结束位置,即最后一个字符后的位置(不包含)
        参数:
        start - 找到的起始位置
        返回:
        结束位置,未找到返回-1