PageRenderTime 45ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

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