org.gjt.sp.jedit.syntax
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,v 1.1 2003/04/28 01:35:28 spestov Exp $
- Author:
- Slava Pestov
Method Summary |
static boolean |
regionMatches(boolean ignoreCase,
Segment text,
int offset,
char[] match)
Checks if a subregion of a Segment is equal to a
character array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyntaxUtilities
public SyntaxUtilities()
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 otherwisetext
- The segmentoffset
- The offset into the segmentmatch
- The character array to match- Since:
- jEdit 4.2pre1