Package org.gjt.sp.jedit.syntax
Class SyntaxUtilities
- java.lang.Object
-
- org.gjt.sp.jedit.syntax.SyntaxUtilities
-
public class SyntaxUtilities extends java.lang.Object
Contains utility functions used by the syntax highlighting code.- Since:
- jEdit 4.2pre1
-
-
Constructor Summary
Constructors Constructor Description SyntaxUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
regionMatches(boolean ignoreCase, javax.swing.text.Segment text, int offset, char[] match)
Checks if a subregion of aSegment
is equal to a character array.
-
-
-
Method Detail
-
regionMatches
public static boolean regionMatches(boolean ignoreCase, javax.swing.text.Segment text, int offset, char[] match)
Checks if a subregion of aSegment
is equal to a character array.- Parameters:
ignoreCase
- True if case should be ignored, false otherwisetext
- The segmentoffset
- The offset into the segmentmatch
- The character array to match- Returns:
- true if the subregion of the segment was equals to the character array
- Since:
- jEdit 4.2pre1
-
-