search.h

Go to the documentation of this file.
00001 
00002 /*  $Id: search.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define searchinclude /*so other includes can tell if we've been loaded*/
00029 
00030 
00031 
00032 
00033 /*global search/sort settings*/
00034 
00035 typedef struct tysearchparameters {
00036     
00037     boolean flfirsttime: 1;
00038     
00039     boolean flunicase: 1;
00040     
00041     boolean flwraparound: 1;
00042     
00043     boolean flwholewords: 1;
00044     
00045     boolean flonelevel: 1;
00046     
00047     boolean flonetype: 1;
00048     
00049     boolean floneobject: 1;
00050     
00051     boolean flclosebehind: 1;
00052     
00053     boolean flfindall: 1;
00054     
00055     boolean flreplaceall: 1;
00056     
00057     boolean flregexp: 1;
00058     
00059     boolean flzoomfound: 1;
00060     
00061     boolean flwindowzoomed: 1;
00062     
00063     bigstring bsorigfind; /*as entered by the user*/
00064     
00065     bigstring bsorigreplace; /*as entered by the user*/
00066     
00067     bigstring bsfind; /*corrected for case-sensitivity etc.*/
00068     
00069     bigstring bsreplace; /*depends on current match for regexps*/
00070     
00071     short ctfound;
00072     
00073     short ctreplaced;
00074     
00075     long searchrefcon;
00076 
00077 #ifdef flregexpverbs
00078     
00079     Handle hcompiledpattern;
00080     
00081     Handle hovector;
00082 
00083 #endif
00084     } tysearchparameters;
00085 
00086 
00087 extern tysearchparameters searchparams; /*set this global to influence searching process*/
00088 
00089 
00090 
00091 /*prototypes*/
00092 
00093 extern boolean isword (byte *, long, long, long); /*search.c*/
00094 
00095 extern boolean textsearch (byte *, long, long *, long *);
00096 
00097 extern boolean handlesearch (Handle, long *, long *);
00098 
00099 extern boolean stringsearch (bigstring, short *, short *);
00100 
00101 // extern void getsearchstring (bigstring);
00102 
00103 extern void startnewsearch (boolean, boolean);
00104 
00105 extern boolean startingtosearch (long);
00106 
00107 extern boolean searchshouldwrap (long);
00108 
00109 extern boolean searchshouldcontinue (long);
00110 
00111 extern void endcurrentsearch (void);
00112 
00113 extern boolean initsearch (void);
00114 
00115 
00116 extern boolean getsearchparams (void); /*shellverbs.c*/
00117 
00118 extern boolean setsearchparams (void);
00119 
00120 
00121 
00122 

Generated on Wed May 31 18:20:00 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6