PageRenderTime 142ms CodeModel.GetById 95ms app.highlight 38ms RepoModel.GetById 1ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/search/SearchAndReplace.html

#
HTML | 981 lines | 867 code | 102 blank | 12 comment | 0 complexity | 425c69bf10453bc96d52db8bf95b65ab MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:12 GMT-08:00 2008 -->
  6<TITLE>
  7SearchAndReplace (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.search.SearchAndReplace class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SearchAndReplace.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/PatternSearchMatcher.html" title="class in org.gjt.sp.jedit.search"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/SearchBar.html" title="class in org.gjt.sp.jedit.search"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/search/SearchAndReplace.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="SearchAndReplace.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.search</FONT>
 78<BR>
 79Class SearchAndReplace</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.search.SearchAndReplace</B>
 83</PRE>
 84<HR>
 85<DL>
 86<DT><PRE>public class <B>SearchAndReplace</B><DT>extends java.lang.Object</DL>
 87</PRE>
 88
 89<P>
 90Class that implements regular expression and literal search within
 91 jEdit buffers.<p>
 92
 93 There are two main groups of methods in this class:
 94 <ul>
 95 <li>Property accessors - for changing search and replace settings.</li>
 96 <li>Actions - for performing search and replace.</li>
 97 </ul>
 98
 99 The "HyperSearch" and "Keep dialog" features, as reflected in
100 checkbox options in the search dialog, are not handled from within
101 this class. If you wish to have these options set before the search dialog
102 appears, make a prior call to either or both of the following:
103
104 <pre> jEdit.setBooleanProperty("search.hypersearch.toggle",true);
105 jEdit.setBooleanProperty("search.keepDialog.toggle",true);</pre>
106
107 If you are not using the dialog to undertake a search or replace, you may
108 call any of the search and replace methods (including
109 <A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#hyperSearch(org.gjt.sp.jedit.View)"><CODE>hyperSearch(View)</CODE></A>) without concern for the value of these
110 properties.
111<P>
112
113<P>
114<HR>
115
116<P>
117
118<!-- ======== CONSTRUCTOR SUMMARY ======== -->
119
120<A NAME="constructor_summary"><!-- --></A>
121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124<B>Constructor Summary</B></FONT></TH>
125</TR>
126<TR BGCOLOR="white" CLASS="TableRowColor">
127<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#SearchAndReplace()">SearchAndReplace</A></B>()</CODE>
128
129<BR>
130&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
131</TR>
132</TABLE>
133&nbsp;
134<!-- ========== METHOD SUMMARY =========== -->
135
136<A NAME="method_summary"><!-- --></A>
137<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
138<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
139<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
140<B>Method Summary</B></FONT></TH>
141</TR>
142<TR BGCOLOR="white" CLASS="TableRowColor">
143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
145<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#escapeRegexp(java.lang.String, boolean)">escapeRegexp</A></B>(java.lang.String&nbsp;str,
146             boolean&nbsp;multiline)</CODE>
147
148<BR>
149&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Escapes characters with special meaning in a regexp.</TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>static&nbsp;boolean</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#find(org.gjt.sp.jedit.View)">find</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence of the search string.</TD>
158</TR>
159<TR BGCOLOR="white" CLASS="TableRowColor">
160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161<CODE>static&nbsp;boolean</CODE></FONT></TD>
162<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#find(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int)">find</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
163     <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
164     int&nbsp;start)</CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next instance of the search string in the specified
168 buffer.</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>static&nbsp;boolean</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#find(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int, boolean, boolean)">find</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
174     <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
175     int&nbsp;start,
176     boolean&nbsp;firstTime,
177     boolean&nbsp;reverse)</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next instance of the search string in the specified
181 buffer.</TD>
182</TR>
183<TR BGCOLOR="white" CLASS="TableRowColor">
184<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185<CODE>static&nbsp;boolean</CODE></FONT></TD>
186<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getAutoWrapAround()">getAutoWrapAround</A></B>()</CODE>
187
188<BR>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the auto wrap around flag.</TD>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>static&nbsp;boolean</CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getBeanShellReplace()">getBeanShellReplace</A></B>()</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the BeanShell replace flag.</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>static&nbsp;boolean</CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getIgnoreCase()">getIgnoreCase</A></B>()</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the ignore case flag.</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>static&nbsp;boolean</CODE></FONT></TD>
210<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getRegexp()">getRegexp</A></B>()</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the regular expression flag.</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getReplaceString()">getReplaceString</A></B>()</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current replacement string.</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>static&nbsp;boolean</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getReverseSearch()">getReverseSearch</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the reverse search flag.</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/SearchFileSet.html" title="interface in org.gjt.sp.jedit.search">SearchFileSet</A></CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getSearchFileSet()">getSearchFileSet</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current search file set.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/SearchMatcher.html" title="class in org.gjt.sp.jedit.search">SearchMatcher</A></CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getSearchMatcher()">getSearchMatcher</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current search string matcher.</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getSearchString()">getSearchString</A></B>()</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current search string.</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>static&nbsp;boolean</CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#getSmartCaseReplace()">getSmartCaseReplace</A></B>()</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the replacement string will assume the same case as
262 each specific occurrence of the search string.</TD>
263</TR>
264<TR BGCOLOR="white" CLASS="TableRowColor">
265<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266<CODE>static&nbsp;boolean</CODE></FONT></TD>
267<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#hyperSearch(org.gjt.sp.jedit.View)">hyperSearch</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</CODE>
268
269<BR>
270&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a HyperSearch.</TD>
271</TR>
272<TR BGCOLOR="white" CLASS="TableRowColor">
273<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274<CODE>static&nbsp;boolean</CODE></FONT></TD>
275<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#hyperSearch(org.gjt.sp.jedit.View, boolean)">hyperSearch</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
276            boolean&nbsp;selection)</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a HyperSearch.</TD>
280</TR>
281<TR BGCOLOR="white" CLASS="TableRowColor">
282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283<CODE>static&nbsp;void</CODE></FONT></TD>
284<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#load()">load</A></B>()</CODE>
285
286<BR>
287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads search and replace state from the properties.</TD>
288</TR>
289<TR BGCOLOR="white" CLASS="TableRowColor">
290<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291<CODE>static&nbsp;boolean</CODE></FONT></TD>
292<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#replace(org.gjt.sp.jedit.View)">replace</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</CODE>
293
294<BR>
295&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the current selection with the replacement string.</TD>
296</TR>
297<TR BGCOLOR="white" CLASS="TableRowColor">
298<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
299<CODE>static&nbsp;boolean</CODE></FONT></TD>
300<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#replace(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int, int)">replace</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
301        <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
302        int&nbsp;start,
303        int&nbsp;end)</CODE>
304
305<BR>
306&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces text in the specified range with the replacement string.</TD>
307</TR>
308<TR BGCOLOR="white" CLASS="TableRowColor">
309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
310<CODE>static&nbsp;boolean</CODE></FONT></TD>
311<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#replaceAll(org.gjt.sp.jedit.View)">replaceAll</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</CODE>
312
313<BR>
314&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces all occurrences of the search string with the replacement
315 string.</TD>
316</TR>
317<TR BGCOLOR="white" CLASS="TableRowColor">
318<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
319<CODE>static&nbsp;boolean</CODE></FONT></TD>
320<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#replaceAll(org.gjt.sp.jedit.View, boolean)">replaceAll</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
321           boolean&nbsp;dontOpenChangedFiles)</CODE>
322
323<BR>
324&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces all occurrences of the search string with the replacement
325 string.</TD>
326</TR>
327<TR BGCOLOR="white" CLASS="TableRowColor">
328<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329<CODE>static&nbsp;void</CODE></FONT></TD>
330<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#save()">save</A></B>()</CODE>
331
332<BR>
333&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves search and replace state to the properties.</TD>
334</TR>
335<TR BGCOLOR="white" CLASS="TableRowColor">
336<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337<CODE>static&nbsp;void</CODE></FONT></TD>
338<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setAutoWrapAround(boolean)">setAutoWrapAround</A></B>(boolean&nbsp;wrap)</CODE>
339
340<BR>
341&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the state of the auto wrap around flag.</TD>
342</TR>
343<TR BGCOLOR="white" CLASS="TableRowColor">
344<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
345<CODE>static&nbsp;void</CODE></FONT></TD>
346<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setBeanShellReplace(boolean)">setBeanShellReplace</A></B>(boolean&nbsp;beanshell)</CODE>
347
348<BR>
349&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the state of the BeanShell replace flag.</TD>
350</TR>
351<TR BGCOLOR="white" CLASS="TableRowColor">
352<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
353<CODE>static&nbsp;void</CODE></FONT></TD>
354<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setIgnoreCase(boolean)">setIgnoreCase</A></B>(boolean&nbsp;ignoreCase)</CODE>
355
356<BR>
357&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the ignore case flag.</TD>
358</TR>
359<TR BGCOLOR="white" CLASS="TableRowColor">
360<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
361<CODE>static&nbsp;void</CODE></FONT></TD>
362<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setRegexp(boolean)">setRegexp</A></B>(boolean&nbsp;regexp)</CODE>
363
364<BR>
365&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the state of the regular expression flag.</TD>
366</TR>
367<TR BGCOLOR="white" CLASS="TableRowColor">
368<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
369<CODE>static&nbsp;void</CODE></FONT></TD>
370<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setReplaceString(java.lang.String)">setReplaceString</A></B>(java.lang.String&nbsp;replace)</CODE>
371
372<BR>
373&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current replacement string.</TD>
374</TR>
375<TR BGCOLOR="white" CLASS="TableRowColor">
376<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
377<CODE>static&nbsp;void</CODE></FONT></TD>
378<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setReverseSearch(boolean)">setReverseSearch</A></B>(boolean&nbsp;reverse)</CODE>
379
380<BR>
381&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether a reverse search will conducted from the current
382 position to the beginning of a buffer.</TD>
383</TR>
384<TR BGCOLOR="white" CLASS="TableRowColor">
385<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
386<CODE>static&nbsp;void</CODE></FONT></TD>
387<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setSearchFileSet(org.gjt.sp.jedit.search.SearchFileSet)">setSearchFileSet</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/search/SearchFileSet.html" title="interface in org.gjt.sp.jedit.search">SearchFileSet</A>&nbsp;fileset)</CODE>
388
389<BR>
390&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current search file set.</TD>
391</TR>
392<TR BGCOLOR="white" CLASS="TableRowColor">
393<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
394<CODE>static&nbsp;void</CODE></FONT></TD>
395<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setSearchMatcher(org.gjt.sp.jedit.search.SearchMatcher)">setSearchMatcher</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/search/SearchMatcher.html" title="class in org.gjt.sp.jedit.search">SearchMatcher</A>&nbsp;matcher)</CODE>
396
397<BR>
398&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a custom search string matcher.</TD>
399</TR>
400<TR BGCOLOR="white" CLASS="TableRowColor">
401<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
402<CODE>static&nbsp;void</CODE></FONT></TD>
403<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setSearchString(java.lang.String)">setSearchString</A></B>(java.lang.String&nbsp;search)</CODE>
404
405<BR>
406&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current search string.</TD>
407</TR>
408</TABLE>
409&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
410<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
411<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
412<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
413</TR>
414<TR BGCOLOR="white" CLASS="TableRowColor">
415<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
416</TR>
417</TABLE>
418&nbsp;
419<P>
420
421<!-- ========= CONSTRUCTOR DETAIL ======== -->
422
423<A NAME="constructor_detail"><!-- --></A>
424<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
425<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
426<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
427<B>Constructor Detail</B></FONT></TH>
428</TR>
429</TABLE>
430
431<A NAME="SearchAndReplace()"><!-- --></A><H3>
432SearchAndReplace</H3>
433<PRE>
434public <B>SearchAndReplace</B>()</PRE>
435<DL>
436</DL>
437
438<!-- ============ METHOD DETAIL ========== -->
439
440<A NAME="method_detail"><!-- --></A>
441<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
442<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
443<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
444<B>Method Detail</B></FONT></TH>
445</TR>
446</TABLE>
447
448<A NAME="setSearchString(java.lang.String)"><!-- --></A><H3>
449setSearchString</H3>
450<PRE>
451public static void <B>setSearchString</B>(java.lang.String&nbsp;search)</PRE>
452<DL>
453<DD>Sets the current search string.
454<P>
455<DD><DL>
456<DT><B>Parameters:</B><DD><CODE>search</CODE> - The new search string</DL>
457</DD>
458</DL>
459<HR>
460
461<A NAME="getSearchString()"><!-- --></A><H3>
462getSearchString</H3>
463<PRE>
464public static java.lang.String <B>getSearchString</B>()</PRE>
465<DL>
466<DD>Returns the current search string.
467<P>
468<DD><DL>
469</DL>
470</DD>
471</DL>
472<HR>
473
474<A NAME="setReplaceString(java.lang.String)"><!-- --></A><H3>
475setReplaceString</H3>
476<PRE>
477public static void <B>setReplaceString</B>(java.lang.String&nbsp;replace)</PRE>
478<DL>
479<DD>Sets the current replacement string.
480<P>
481<DD><DL>
482<DT><B>Parameters:</B><DD><CODE>replace</CODE> - The new replacement string</DL>
483</DD>
484</DL>
485<HR>
486
487<A NAME="getReplaceString()"><!-- --></A><H3>
488getReplaceString</H3>
489<PRE>
490public static java.lang.String <B>getReplaceString</B>()</PRE>
491<DL>
492<DD>Returns the current replacement string.
493<P>
494<DD><DL>
495</DL>
496</DD>
497</DL>
498<HR>
499
500<A NAME="setIgnoreCase(boolean)"><!-- --></A><H3>
501setIgnoreCase</H3>
502<PRE>
503public static void <B>setIgnoreCase</B>(boolean&nbsp;ignoreCase)</PRE>
504<DL>
505<DD>Sets the ignore case flag.
506<P>
507<DD><DL>
508<DT><B>Parameters:</B><DD><CODE>ignoreCase</CODE> - True if searches should be case insensitive,
509 false otherwise</DL>
510</DD>
511</DL>
512<HR>
513
514<A NAME="getIgnoreCase()"><!-- --></A><H3>
515getIgnoreCase</H3>
516<PRE>
517public static boolean <B>getIgnoreCase</B>()</PRE>
518<DL>
519<DD>Returns the state of the ignore case flag.
520<P>
521<DD><DL>
522
523<DT><B>Returns:</B><DD>True if searches should be case insensitive,
524 false otherwise</DL>
525</DD>
526</DL>
527<HR>
528
529<A NAME="setRegexp(boolean)"><!-- --></A><H3>
530setRegexp</H3>
531<PRE>
532public static void <B>setRegexp</B>(boolean&nbsp;regexp)</PRE>
533<DL>
534<DD>Sets the state of the regular expression flag.
535<P>
536<DD><DL>
537<DT><B>Parameters:</B><DD><CODE>regexp</CODE> - True if regular expression searches should be
538 performed</DL>
539</DD>
540</DL>
541<HR>
542
543<A NAME="getRegexp()"><!-- --></A><H3>
544getRegexp</H3>
545<PRE>
546public static boolean <B>getRegexp</B>()</PRE>
547<DL>
548<DD>Returns the state of the regular expression flag.
549<P>
550<DD><DL>
551
552<DT><B>Returns:</B><DD>True if regular expression searches should be performed</DL>
553</DD>
554</DL>
555<HR>
556
557<A NAME="setReverseSearch(boolean)"><!-- --></A><H3>
558setReverseSearch</H3>
559<PRE>
560public static void <B>setReverseSearch</B>(boolean&nbsp;reverse)</PRE>
561<DL>
562<DD>Determines whether a reverse search will conducted from the current
563 position to the beginning of a buffer. Note that reverse search and
564 regular expression search is mutually exclusive; enabling one will
565 disable the other.
566<P>
567<DD><DL>
568<DT><B>Parameters:</B><DD><CODE>reverse</CODE> - True if searches should go backwards,
569 false otherwise</DL>
570</DD>
571</DL>
572<HR>
573
574<A NAME="getReverseSearch()"><!-- --></A><H3>
575getReverseSearch</H3>
576<PRE>
577public static boolean <B>getReverseSearch</B>()</PRE>
578<DL>
579<DD>Returns the state of the reverse search flag.
580<P>
581<DD><DL>
582
583<DT><B>Returns:</B><DD>True if searches should go backwards,
584 false otherwise</DL>
585</DD>
586</DL>
587<HR>
588
589<A NAME="setBeanShellReplace(boolean)"><!-- --></A><H3>
590setBeanShellReplace</H3>
591<PRE>
592public static void <B>setBeanShellReplace</B>(boolean&nbsp;beanshell)</PRE>
593<DL>
594<DD>Sets the state of the BeanShell replace flag.
595<P>
596<DD><DL>
597<DT><B>Parameters:</B><DD><CODE>beanshell</CODE> - True if the replace string is a BeanShell expression<DT><B>Since:</B></DT>
598  <DD>jEdit 3.2pre2</DD>
599</DL>
600</DD>
601</DL>
602<HR>
603
604<A NAME="getBeanShellReplace()"><!-- --></A><H3>
605getBeanShellReplace</H3>
606<PRE>
607public static boolean <B>getBeanShellReplace</B>()</PRE>
608<DL>
609<DD>Returns the state of the BeanShell replace flag.
610<P>
611<DD><DL>
612
613<DT><B>Returns:</B><DD>True if the replace string is a BeanShell expression<DT><B>Since:</B></DT>
614  <DD>jEdit 3.2pre2</DD>
615</DL>
616</DD>
617</DL>
618<HR>
619
620<A NAME="setAutoWrapAround(boolean)"><!-- --></A><H3>
621setAutoWrapAround</H3>
622<PRE>
623public static void <B>setAutoWrapAround</B>(boolean&nbsp;wrap)</PRE>
624<DL>
625<DD>Sets the state of the auto wrap around flag.
626<P>
627<DD><DL>
628<DT><B>Parameters:</B><DD><CODE>wrap</CODE> - If true, the 'continue search from start' dialog
629 will not be displayed<DT><B>Since:</B></DT>
630  <DD>jEdit 3.2pre2</DD>
631</DL>
632</DD>
633</DL>
634<HR>
635
636<A NAME="getAutoWrapAround()"><!-- --></A><H3>
637getAutoWrapAround</H3>
638<PRE>
639public static boolean <B>getAutoWrapAround</B>()</PRE>
640<DL>
641<DD>Returns the state of the auto wrap around flag.
642<P>
643<DD><DL>
644<DT><B>Since:</B></DT>
645  <DD>jEdit 3.2pre2</DD>
646</DL>
647</DD>
648</DL>
649<HR>
650
651<A NAME="setSearchMatcher(org.gjt.sp.jedit.search.SearchMatcher)"><!-- --></A><H3>
652setSearchMatcher</H3>
653<PRE>
654public static void <B>setSearchMatcher</B>(<A HREF="../../../../../org/gjt/sp/jedit/search/SearchMatcher.html" title="class in org.gjt.sp.jedit.search">SearchMatcher</A>&nbsp;matcher)</PRE>
655<DL>
656<DD>Sets a custom search string matcher. Note that calling
657 <A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setSearchString(java.lang.String)"><CODE>setSearchString(String)</CODE></A>,
658 <A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setIgnoreCase(boolean)"><CODE>setIgnoreCase(boolean)</CODE></A>, or <A HREF="../../../../../org/gjt/sp/jedit/search/SearchAndReplace.html#setRegexp(boolean)"><CODE>setRegexp(boolean)</CODE></A>
659 will reset the matcher to the default.
660<P>
661<DD><DL>
662</DL>
663</DD>
664</DL>
665<HR>
666
667<A NAME="getSearchMatcher()"><!-- --></A><H3>
668getSearchMatcher</H3>
669<PRE>
670public static <A HREF="../../../../../org/gjt/sp/jedit/search/SearchMatcher.html" title="class in org.gjt.sp.jedit.search">SearchMatcher</A> <B>getSearchMatcher</B>()
671                                      throws java.lang.Exception</PRE>
672<DL>
673<DD>Returns the current search string matcher.
674<P>
675<DD><DL>
676
677<DT><B>Returns:</B><DD>a SearchMatcher or null if there is no search or if the matcher can match empty String
678<DT><B>Throws:</B>
679<DD><CODE>java.lang.IllegalArgumentException</CODE> - if regular expression search
680 is enabled, the search string or replacement string is invalid
681<DD><CODE>java.lang.Exception</CODE><DT><B>Since:</B></DT>
682  <DD>jEdit 4.1pre7</DD>
683</DL>
684</DD>
685</DL>
686<HR>
687
688<A NAME="setSearchFileSet(org.gjt.sp.jedit.search.SearchFileSet)"><!-- --></A><H3>
689setSearchFileSet</H3>
690<PRE>
691public static void <B>setSearchFileSet</B>(<A HREF="../../../../../org/gjt/sp/jedit/search/SearchFileSet.html" title="interface in org.gjt.sp.jedit.search">SearchFileSet</A>&nbsp;fileset)</PRE>
692<DL>
693<DD>Sets the current search file set.
694<P>
695<DD><DL>
696<DT><B>Parameters:</B><DD><CODE>fileset</CODE> - The file set to perform searches in<DT><B>See Also:</B><DD><A HREF="../../../../../org/gjt/sp/jedit/search/AllBufferSet.html" title="class in org.gjt.sp.jedit.search"><CODE>AllBufferSet</CODE></A>, 
697<A HREF="../../../../../org/gjt/sp/jedit/search/CurrentBufferSet.html" title="class in org.gjt.sp.jedit.search"><CODE>CurrentBufferSet</CODE></A>, 
698<A HREF="../../../../../org/gjt/sp/jedit/search/DirectoryListSet.html" title="class in org.gjt.sp.jedit.search"><CODE>DirectoryListSet</CODE></A></DL>
699</DD>
700</DL>
701<HR>
702
703<A NAME="getSearchFileSet()"><!-- --></A><H3>
704getSearchFileSet</H3>
705<PRE>
706public static <A HREF="../../../../../org/gjt/sp/jedit/search/SearchFileSet.html" title="interface in org.gjt.sp.jedit.search">SearchFileSet</A> <B>getSearchFileSet</B>()</PRE>
707<DL>
708<DD>Returns the current search file set.
709<P>
710<DD><DL>
711</DL>
712</DD>
713</DL>
714<HR>
715
716<A NAME="getSmartCaseReplace()"><!-- --></A><H3>
717getSmartCaseReplace</H3>
718<PRE>
719public static boolean <B>getSmartCaseReplace</B>()</PRE>
720<DL>
721<DD>Returns if the replacement string will assume the same case as
722 each specific occurrence of the search string.
723<P>
724<DD><DL>
725<DT><B>Since:</B></DT>
726  <DD>jEdit 4.2pre10</DD>
727</DL>
728</DD>
729</DL>
730<HR>
731
732<A NAME="hyperSearch(org.gjt.sp.jedit.View)"><!-- --></A><H3>
733hyperSearch</H3>
734<PRE>
735public static boolean <B>hyperSearch</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</PRE>
736<DL>
737<DD>Performs a HyperSearch.
738<P>
739<DD><DL>
740<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DT><B>Since:</B></DT>
741  <DD>jEdit 2.7pre3</DD>
742</DL>
743</DD>
744</DL>
745<HR>
746
747<A NAME="hyperSearch(org.gjt.sp.jedit.View, boolean)"><!-- --></A><H3>
748hyperSearch</H3>
749<PRE>
750public static boolean <B>hyperSearch</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
751                                  boolean&nbsp;selection)</PRE>
752<DL>
753<DD>Performs a HyperSearch.
754<P>
755<DD><DL>
756<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DD><CODE>selection</CODE> - If true, will only search in the current selection.
757 Note that the file set must be the current buffer file set for this
758 to work.<DT><B>Since:</B></DT>
759  <DD>jEdit 4.0pre1</DD>
760</DL>
761</DD>
762</DL>
763<HR>
764
765<A NAME="find(org.gjt.sp.jedit.View)"><!-- --></A><H3>
766find</H3>
767<PRE>
768public static boolean <B>find</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</PRE>
769<DL>
770<DD>Finds the next occurrence of the search string.
771<P>
772<DD><DL>
773<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view
774<DT><B>Returns:</B><DD>True if the operation was successful, false otherwise</DL>
775</DD>
776</DL>
777<HR>
778
779<A NAME="find(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int)"><!-- --></A><H3>
780find</H3>
781<PRE>
782public static boolean <B>find</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
783                           <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
784                           int&nbsp;start)
785                    throws java.lang.Exception</PRE>
786<DL>
787<DD>Finds the next instance of the search string in the specified
788 buffer.
789<P>
790<DD><DL>
791<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DD><CODE>buffer</CODE> - The buffer<DD><CODE>start</CODE> - Location where to start the search
792<DT><B>Throws:</B>
793<DD><CODE>java.lang.Exception</CODE></DL>
794</DD>
795</DL>
796<HR>
797
798<A NAME="find(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int, boolean, boolean)"><!-- --></A><H3>
799find</H3>
800<PRE>
801public static boolean <B>find</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
802                           <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
803                           int&nbsp;start,
804                           boolean&nbsp;firstTime,
805                           boolean&nbsp;reverse)
806                    throws java.lang.Exception</PRE>
807<DL>
808<DD>Finds the next instance of the search string in the specified
809 buffer.
810<P>
811<DD><DL>
812<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DD><CODE>buffer</CODE> - The buffer<DD><CODE>start</CODE> - Location where to start the search<DD><CODE>firstTime</CODE> - See <A HREF="../../../../../org/gjt/sp/jedit/search/SearchMatcher.html#nextMatch(java.lang.CharSequence, boolean, boolean, boolean, boolean)"><CODE>SearchMatcher.nextMatch(CharSequence,boolean,boolean,boolean,boolean)</CODE></A>.
813<DT><B>Throws:</B>
814<DD><CODE>java.lang.Exception</CODE><DT><B>Since:</B></DT>
815  <DD>jEdit 4.1pre7</DD>
816</DL>
817</DD>
818</DL>
819<HR>
820
821<A NAME="replace(org.gjt.sp.jedit.View)"><!-- --></A><H3>
822replace</H3>
823<PRE>
824public static boolean <B>replace</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</PRE>
825<DL>
826<DD>Replaces the current selection with the replacement string.
827<P>
828<DD><DL>
829<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view
830<DT><B>Returns:</B><DD>True if the operation was successful, false otherwise</DL>
831</DD>
832</DL>
833<HR>
834
835<A NAME="replace(org.gjt.sp.jedit.View, org.gjt.sp.jedit.Buffer, int, int)"><!-- --></A><H3>
836replace</H3>
837<PRE>
838public static boolean <B>replace</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
839                              <A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A>&nbsp;buffer,
840                              int&nbsp;start,
841                              int&nbsp;end)</PRE>
842<DL>
843<DD>Replaces text in the specified range with the replacement string.
844<P>
845<DD><DL>
846<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DD><CODE>buffer</CODE> - The buffer<DD><CODE>start</CODE> - The start offset<DD><CODE>end</CODE> - The end offset
847<DT><B>Returns:</B><DD>True if the operation was successful, false otherwise</DL>
848</DD>
849</DL>
850<HR>
851
852<A NAME="replaceAll(org.gjt.sp.jedit.View)"><!-- --></A><H3>
853replaceAll</H3>
854<PRE>
855public static boolean <B>replaceAll</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view)</PRE>
856<DL>
857<DD>Replaces all occurrences of the search string with the replacement
858 string.
859<P>
860<DD><DL>
861<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view
862<DT><B>Returns:</B><DD>the number of modified files</DL>
863</DD>
864</DL>
865<HR>
866
867<A NAME="replaceAll(org.gjt.sp.jedit.View, boolean)"><!-- --></A><H3>
868replaceAll</H3>
869<PRE>
870public static boolean <B>replaceAll</B>(<A HREF="../../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A>&nbsp;view,
871                                 boolean&nbsp;dontOpenChangedFiles)</PRE>
872<DL>
873<DD>Replaces all occurrences of the search string with the replacement
874 string.
875<P>
876<DD><DL>
877<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view<DD><CODE>dontOpenChangedFiles</CODE> - Whether to open changed files or to autosave them quietly
878<DT><B>Returns:</B><DD>the number of modified files</DL>
879</DD>
880</DL>
881<HR>
882
883<A NAME="escapeRegexp(java.lang.String, boolean)"><!-- --></A><H3>
884escapeRegexp</H3>
885<PRE>
886public static java.lang.String <B>escapeRegexp</B>(java.lang.String&nbsp;str,
887                                            boolean&nbsp;multiline)</PRE>
888<DL>
889<DD>Escapes characters with special meaning in a regexp.
890<P>
891<DD><DL>
892<DT><B>Parameters:</B><DD><CODE>str</CODE> - the string to escape<DD><CODE>multiline</CODE> - Should \n be escaped?
893<DT><B>Returns:</B><DD>the string with escaped characters<DT><B>Since:</B></DT>
894  <DD>jEdit 4.3pre1</DD>
895</DL>
896</DD>
897</DL>
898<HR>
899
900<A NAME="load()"><!-- --></A><H3>
901load</H3>
902<PRE>
903public static void <B>load</B>()</PRE>
904<DL>
905<DD>Loads search and replace state from the properties.
906<P>
907<DD><DL>
908</DL>
909</DD>
910</DL>
911<HR>
912
913<A NAME="save()"><!-- --></A><H3>
914save</H3>
915<PRE>
916public static void <B>save</B>()</PRE>
917<DL>
918<DD>Saves search and replace state to the properties.
919<P>
920<DD><DL>
921</DL>
922</DD>
923</DL>
924<!-- ========= END OF CLASS DATA ========= -->
925<HR>
926
927
928<!-- ======= START OF BOTTOM NAVBAR ====== -->
929<A NAME="navbar_bottom"><!-- --></A>
930<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
931<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
932<TR>
933<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
934<A NAME="navbar_bottom_firstrow"><!-- --></A>
935<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
936  <TR ALIGN="center" VALIGN="top">
937  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
938  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
939  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
940  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SearchAndReplace.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
941  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
942  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
943  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
944  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
945  </TR>
946</TABLE>
947</TD>
948<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
949</EM>
950</TD>
951</TR>
952
953<TR>
954<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
955&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/PatternSearchMatcher.html" title="class in org.gjt.sp.jedit.search"><B>PREV CLASS</B></A>&nbsp;
956&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/search/SearchBar.html" title="class in org.gjt.sp.jedit.search"><B>NEXT CLASS</B></A></FONT></TD>
957<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
958  <A HREF="../../../../../index.html?org/gjt/sp/jedit/search/SearchAndReplace.html" target="_top"><B>FRAMES</B></A>  &nbsp;
959&nbsp;<A HREF="SearchAndReplace.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
960&nbsp;
961<NOSCRIPT>
962  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
963</NOSCRIPT>
964
965
966</FONT></TD>
967</TR>
968<TR>
969<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
970  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
971<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
972DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
973</TR>
974</TABLE>
975<A NAME="skip-navbar_bottom"></A>
976<!-- ======== END OF BOTTOM NAVBAR ======= -->
977
978<HR>
979
980</BODY>
981</HTML>