Overview | Package | Class | Use | 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

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
  Returns:
    true if the subregion of the segment was equals to the character array
  Since:
    jEdit 4.2pre1

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