Class TextSearchEngine

java.lang.Object
io.github.zhengzhengyiyi.util.TextSearchEngine

public class TextSearchEngine extends Object
  • Field Details

  • Constructor Details

    • TextSearchEngine

      public TextSearchEngine()
  • Method Details

    • search

      public void search(String text, String content)
    • hasMatches

      public boolean hasMatches()
    • getMatchCount

      public int getMatchCount()
    • getCurrentMatchIndex

      public int getCurrentMatchIndex()
    • getCurrentMatchPosition

      public Integer getCurrentMatchPosition()
    • nextMatch

      public boolean nextMatch()
    • previousMatch

      public boolean previousMatch()
    • setCaseSensitive

      public void setCaseSensitive(boolean caseSensitive)
    • setUseRegex

      public void setUseRegex(boolean useRegex)
    • clear

      public void clear()
    • renderHighlights

      public void renderHighlights(DrawContext context, TextRenderer textRenderer, String content, int x, int y, int lineHeight, int visibleLines)
    • setScrollOffset

      public void setScrollOffset(int scrollOffset)