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

## jsynedit.search
Interface SearchMatcher

All Known Implementing Classes:
  BoyerMooreSearchMatcher, RESearchMatcher

    public interface SearchMatcher

An abstract interface for matching strings.

Version:
  $Id: SearchMatcher.java,v 1.1 2004/05/05 10:44:27 jferber Exp $
Author:
  Slava Pestov

Method Summary
`int[]` | `nextMatch(javax.swing.text.Segment text)` Returns the offset of the first match of the specified text within this matcher.
`java.lang.String` | `substitute(java.lang.String text)` Returns the specified text, with any substitution specified within this matcher performed.

Method Detail

### nextMatch

    int[] nextMatch(javax.swing.text.Segment text)

  Returns the offset of the first match of the specified text within this matcher.

  Parameters:
    `text` - The text to search in
  Returns:
    an array where the first element is the start offset of the match, and the second element is the end offset of the match

### substitute

    java.lang.String substitute(java.lang.String text)
                                throws java.lang.Exception

  Returns the specified text, with any substitution specified within this matcher performed.

  Parameters:
    `text` - The text
  Returns:
    The changed string
  Throws:
    `java.lang.Exception`

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

Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.