search.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "cursor.h"
#include "strings.h"
#include "search.h"
#include "langregexp.h"

Include dependency graph for search.c:

Go to the source code of this file.

Functions

boolean isword (byte *ptext, long lentext, long pos, long len)
boolean textsearch (byte *ptext, long lentext, long *offset, long *lenmatch)
boolean handlesearch (Handle h, long *offset, long *lenmatch)
boolean stringsearch (bigstring bs, short *ix, short *length)
void startnewsearch (boolean flzoomfound, boolean flreplaceall)
boolean startingtosearch (long refcon)
boolean searchshouldcontinue (long refcon)
boolean searchshouldwrap (long refcon)
void endcurrentsearch (void)
boolean initsearch (void)

Variables

tysearchparameters searchparams


Function Documentation

void endcurrentsearch void   ) 
 

Definition at line 238 of file search.c.

References tysearchparameters::ctreplaced, tysearchparameters::flfirsttime, searchparams, and tysearchparameters::searchrefcon.

Referenced by doreplaceallfunc(), getsearchparams(), opfindverb(), and searchfunctionvalue().

boolean handlesearch Handle  h,
long offset,
long lenmatch
 

Definition at line 119 of file search.c.

References BIGSTRING, fl, gethandlesize(), lockhandle(), textsearch(), and unlockhandle().

Here is the call graph for this function:

boolean initsearch void   ) 
 

Definition at line 253 of file search.c.

References tysearchparameters::bsfind, tysearchparameters::bsorigfind, tysearchparameters::bsorigreplace, tysearchparameters::bsreplace, tysearchparameters::flclosebehind, tysearchparameters::flfirsttime, tysearchparameters::flonelevel, tysearchparameters::floneobject, tysearchparameters::flonetype, tysearchparameters::flregexp, tysearchparameters::flreplaceall, tysearchparameters::flunicase, tysearchparameters::flwholewords, tysearchparameters::flwraparound, tysearchparameters::flzoomfound, nil, searchparams, tysearchparameters::searchrefcon, and setemptystring.

Referenced by shellinit().

boolean isword byte ptext,
long  lentext,
long  pos,
long  len
 

Definition at line 42 of file search.c.

References nil.

Referenced by textsearch().

boolean searchshouldcontinue long  refcon  ) 
 

Definition at line 201 of file search.c.

References tysearchparameters::floneobject, searchparams, and tysearchparameters::searchrefcon.

Referenced by continuetablesearch(), mecontinuesearch(), menuverbsearch(), opverbsearch(), pictsearch(), scriptsearch(), searchshouldwrap(), tableverbsearch(), and wpverbsearch().

boolean searchshouldwrap long  refcon  ) 
 

Definition at line 220 of file search.c.

References tysearchparameters::flwraparound, searchparams, and searchshouldcontinue().

Referenced by continuetablesearch(), mecontinuesearch(), menuverbsearch(), opverbsearch(), scriptsearch(), tableverbsearch(), and wpverbsearch().

Here is the call graph for this function:

boolean startingtosearch long  refcon  ) 
 

Definition at line 167 of file search.c.

References tysearchparameters::flfirsttime, tysearchparameters::flwindowzoomed, initbeachball(), right, searchparams, and tysearchparameters::searchrefcon.

Referenced by menuverbsearch(), opfindverb(), opverbsearch(), pictsearch(), scriptsearch(), tableverbsearch(), and wpverbsearch().

Here is the call graph for this function:

void startnewsearch boolean  flzoomfound,
boolean  flreplaceall
 

Definition at line 157 of file search.c.

References tysearchparameters::ctreplaced, tysearchparameters::flreplaceall, tysearchparameters::flzoomfound, and searchparams.

Referenced by doreplaceallfunc(), opfindverb(), and searchfunctionvalue().

boolean stringsearch bigstring  bs,
short ix,
short length
 

Definition at line 133 of file search.c.

References offset, stringlength, and textsearch().

Referenced by tablesearchcellname().

Here is the call graph for this function:

boolean textsearch byte ptext,
long  lentext,
long offset,
long lenmatch
 

Definition at line 81 of file search.c.

References tysearchparameters::bsfind, tysearchparameters::flregexp, tysearchparameters::flunicase, tysearchparameters::flwholewords, isword(), searchparams, stringlength, and textpatternmatch().

Referenced by handlesearch(), stringsearch(), and xcmdcallback().

Here is the call graph for this function:


Variable Documentation

tysearchparameters searchparams
 

Definition at line 39 of file search.c.

Referenced by doreplaceallfunc(), dosearch(), endcurrentsearch(), getsearchparams(), initsearch(), mecontinuesearch(), mesearchrefconroutine(), opfindverb(), opflatfind(), opgetsortstring(), searchfunctionvalue(), searchshouldcontinue(), searchshouldwrap(), setsearchparams(), startingtosearch(), startnewsearch(), tablefindvisit(), tablesearchcellname(), tablesearchcellvalue(), tableverbcontinuesearch(), tablezoomfound(), textsearch(), windowzoom(), and xcmdcallback().


Generated on Sat Jun 10 06:14:00 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6