Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
Version:
  $Id: SyntaxUtilities.java,v 1.1 2003/04/28 01:35:28 spestov Exp $
Author:
  Slava Pestov

Constructor Summary
`SyntaxUtilities()`

Method Summary
`static boolean` | `regionMatches(boolean ignoreCase, javax.swing.text.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`

Constructor Detail

### SyntaxUtilities

    public SyntaxUtilities()

Method Detail

### regionMatches

    public static boolean regionMatches(boolean ignoreCase,
                                        javax.swing.text.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
  Since:
    jEdit 4.2pre1

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD