Skip navigation links
com.essbase.eas.ui.editor.search
Class Search
java.lang.Object
com.essbase.eas.ui.editor.search.Search
-
public class Search
- extends java.lang.Object
Method Summary |
static boolean |
find(TextEditor editor, java.lang.String searchStr, int start, boolean ignoreCase, boolean useRegexp)
Return the result of a string search. |
static java.lang.String |
getFindPattern()
Get current find pattern. |
static java.lang.String |
getReplacePattern()
Get current replace pattern. |
static boolean |
replaceAll(TextEditor editor, java.lang.String searchStr, java.lang.String replaceStr, int start, int end, boolean ignoreCase, boolean useRegexp, boolean bAll)
Return the result of a string replace. |
static void |
setFindPattern(java.lang.String pattern)
Set current find pattern. |
static void |
setReplacePattern(java.lang.String pattern)
Set current replace pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Search
public Search()
setFindPattern
public static void setFindPattern(java.lang.String pattern)
- Set current find pattern.
getFindPattern
public static java.lang.String getFindPattern()
- Get current find pattern.
setReplacePattern
public static void setReplacePattern(java.lang.String pattern)
- Set current replace pattern.
getReplacePattern
public static java.lang.String getReplacePattern()
- Get current replace pattern.
find
public static boolean find(TextEditor editor,
java.lang.String searchStr,
int start,
boolean ignoreCase,
boolean useRegexp)
- Return the result of a string search. Slava Pestov.
-
- Parameters:
searchStr
- The string to be found
start
- The search's start offset
ignoreCase
- Set to true, we'll ignore the text case
- Returns:
- True if
searchStr
has been found, false otherwise
replaceAll
public static boolean replaceAll(TextEditor editor,
java.lang.String searchStr,
java.lang.String replaceStr,
int start,
int end,
boolean ignoreCase,
boolean useRegexp,
boolean bAll)
- Return the result of a string replace. Slava Pestov.
-
- Parameters:
searchStr
- The string to be found
replaceStr
- The string which will replace searchStr
start
- The search's start offset
end
- The search's end offset
ignoreCase
- Set to true, we'll ignore the text case
- Returns:
- True if the replace has been successfully done, false otherwise
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.