Module jEdit

Class SyntaxUtilities

java.lang.Object
org.gjt.sp.jedit.syntax.SyntaxUtilities

public class SyntaxUtilities extends Object
Contains utility functions used by the syntax highlighting code.
Since:
jEdit 4.2pre1
Version:
$Id: SyntaxUtilities.java 21831 2012-06-18 22:54:17Z ezust $
Author:
Slava Pestov
  • Constructor Details

    • SyntaxUtilities

      public SyntaxUtilities()
  • Method Details

    • regionMatches

      public static boolean regionMatches(boolean ignoreCase, Segment text, int offset, char[] match)
      Checks if a subregion of a Segment is equal to a character array.
      Parameters:
      ignoreCase - True if case should be ignored, false otherwise
      text - The segment
      offset - The offset into the segment
      match - The character array to match
      Returns:
      true if the subregion of the segment was equals to the character array
      Since:
      jEdit 4.2pre1