strings.h File Reference

#include "memory.h"

Include dependency graph for strings.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define nullterminate(s)   ((void *) 0)
#define getlower(c)   (lowercasetable[(unsigned char)c])

Functions

short getstringlength (bigstring)
boolean equaltextidentifiers (byte *string1, byte *string2, short len)
boolean equalstrings (const bigstring, const bigstring)
boolean equalidentifiers (const bigstring, const bigstring)
short comparestrings (bigstring, bigstring)
short compareidentifiers (bigstring, bigstring)
boolean stringlessthan (bigstring, bigstring)
boolean pushstring (bigstring, bigstring)
boolean deletestring (bigstring, short, short)
boolean deletefirstchar (bigstring)
short popleadingchars (bigstring, byte)
short poptrailingchars (bigstring, byte)
boolean pushspace (bigstring)
boolean pushlong (long, bigstring)
boolean pushint (short, bigstring)
boolean pushboolean (boolean, bigstring)
boolean insertchar (byte, bigstring)
boolean pushchar (byte, bigstring)
boolean pushstringresource (short, short, bigstring)
boolean insertstring (bigstring, bigstring)
void midstring (bigstring, short, short, bigstring)
boolean textfindreplace (Handle, Handle, Handle, boolean, boolean)
boolean stringfindreplace (bigstring, bigstring, Handle, boolean, boolean)
boolean dropnonalphas (bigstring)
boolean streamdropnonalphas (handlestream *)
boolean scanstring (byte, bigstring, short *)
boolean stringfindchar (byte, bigstring)
boolean stringreplaceall (char, char, bigstring)
boolean textlastword (ptrbyte, long, byte, bigstring)
boolean textfirstword (ptrbyte, long, byte, bigstring)
boolean textnthword (ptrbyte, long, long, byte, boolean, long *, long *)
long textcountwords (ptrbyte, long, byte, boolean)
boolean lastword (bigstring, byte, bigstring)
void poplastword (bigstring, byte)
boolean firstword (bigstring, byte, bigstring)
boolean nthword (bigstring, short, byte, bigstring)
boolean nthfield (bigstring, short, byte, bigstring)
short countwords (bigstring, byte)
boolean textcommentdelete (Handle)
long langcommentdelete (byte, byte *, long)
void commentdelete (byte, bigstring)
boolean whitespacechar (byte)
boolean poptrailingwhitespace (bigstring)
boolean firstsentence (bigstring)
void uppertext (ptrbyte, long)
void lowertext (ptrbyte, long)
void allupper (bigstring)
void alllower (bigstring)
boolean capitalizefirstchar (bigstring)
boolean isallnumeric (bigstring)
void filledstring (byte, short, bigstring)
void padwithzeros (bigstring, short)
void copystring (const bigstring, bigstring)
void copyptocstring (const bigstring, char *)
void copyctopstring (const char *, bigstring)
void copyheapstring (hdlstring, bigstring)
boolean pushheapstring (hdlstring, bigstring)
void timedatestring (long, bigstring)
void ellipsize (bigstring, short)
void parsedialogstring (const bigstring, ptrstring, ptrstring, ptrstring, ptrstring, bigstring)
boolean parsedialoghandle (Handle hsource, Handle h0, Handle h1, Handle h2, Handle h3)
boolean setparseparams (bigstring, bigstring, bigstring, bigstring)
void parseparamstring (bigstring)
void getstringresource (short, bigstring)
void parsenumberstring (short, short, long, bigstring)
void convertpstring (bigstring)
void convertcstring (bigstring)
long textpatternmatch (byte *ptext, long lentext, bigstring bsfind, boolean flunicase)
short patternmatch (bigstring, bigstring)
boolean addstrings (bigstring, bigstring, bigstring)
boolean subtractstrings (bigstring, bigstring, bigstring)
void ostypetostring (OSType, bigstring)
boolean stringtoostype (bigstring, OSType *)
boolean hexstringtonumber (bigstring, long *)
void bytestohexstring (ptrvoid, long, bigstring)
boolean bytestohex (Handle, Handle *)
boolean hextobytes (Handle, Handle *)
void numbertohexstring (long, bigstring)
void kstring (long, bigstring)
void dirtostring (tydirection, bigstring)
boolean stringtodir (bigstring, tydirection *)
boolean midinsertstring (bigstring, bigstring, short)
boolean replacestring (bigstring, short, short, bigstring)
boolean stringaddcommas (bigstring)
boolean stringdeletechars (bigstring, char)
boolean assurelastchariscolon (bigstring)
boolean utf16toansi (Handle, Handle)
boolean utf8toansi (Handle, Handle)
boolean ansitoutf8 (Handle, Handle)
boolean ansitoutf16 (Handle, Handle)
boolean pullstringsuffix (bigstring, bigstring, unsigned char)
void initstrings (void)
boolean stringinitverbs (void)
long countleadingchars (Handle, byte)
void handlepopleadingchars (Handle htext, byte ch)
void handlepoptrailingchars (Handle htext, byte ch)
void latintomac (Handle h)
void mactolatin (Handle h)
boolean macromantoutf8 (Handle, Handle)
boolean utf8tomacroman (Handle, Handle)
boolean convertCharset (Handle, Handle, bigstring, bigstring)
boolean isTextEncodingAvailable (bigstring)

Variables

byte zerostring []
unsigned char lowercasetable [256]


Define Documentation

#define getlower  )     (lowercasetable[(unsigned char)c])
 

Definition at line 53 of file strings.h.

Referenced by compareidentifiers(), equalidentifiers(), equaltextidentifiers(), fileisvolume(), hashfunction(), lowertext(), searchhandleunicase(), tablesavesystemtable(), and webserverprocessfirstline().

#define nullterminate  )     ((void *) 0)
 

Definition at line 39 of file strings.h.

Referenced by deletefile(), fileexists(), filefrompath(), filegetinfo(), fileopenorcreate(), fileparsevolname(), filespectopath(), fontgetnumber(), fwsNetEventAddressEncode(), fwsNetEventListenStream(), fwsNetEventStatusStream(), getsearchparams(), getspecialfolderpath(), InitializeInstance(), langgetextendedvolumeinfo(), movefile(), neterror(), newfile(), newprocinfo(), openfile(), openlibrary(), openwindowsparamlinefiles(), parsecallbackstring(), pathtofilespec(), plainneterror(), renamefile(), setfiledates(), setfsfile(), setstatusbarstring(), showpopupkinddialog(), and sysfunctionvalue().


Function Documentation

boolean addstrings bigstring  ,
bigstring  ,
bigstring 
 

Definition at line 1920 of file strings.c.

References copystring(), and pushstring().

Here is the call graph for this function:

void alllower bigstring   ) 
 

Definition at line 1138 of file strings.c.

Referenced by additemtopagetable(), adjustwindowmenu(), browserfindinsertionpoint(), dialogmapkeystroke(), evaluateosascript(), fiffindinfile(), findstringlist(), fwsNetEventNameToAddress(), fwsNetEventOpenNameStream(), getname(), getsearchparams(), handlesearch(), hexstringtonumber(), htmlgetpref(), htmlrundirective(), indexpage(), opbestfind(), opfindhead(), opfindverb(), opgetsortstring(), opxmltooutlinevisit(), scriptnewprocess(), stringisboolean(), stringtodir(), tablecomparenames(), tablefunctionvalue(), traversalskipverb(), and unicaseequalstrings().

void allupper bigstring   ) 
 

Definition at line 1132 of file strings.c.

Referenced by getvalueforscript(), lookupname(), lookupvisit(), and winregtypestringtotype().

boolean ansitoutf16 Handle  ,
Handle 
 

Definition at line 2897 of file strings.c.

References converttextencoding(), cs_iso88591, cs_utf16, gethandlesize(), sethandlesize(), and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean ansitoutf8 Handle  ,
Handle 
 

Definition at line 2843 of file strings.c.

References converttextencoding(), cs_iso88591, cs_utf16, cs_utf8, disposehandle(), gethandlesize(), newemptyhandle(), sethandlesize(), and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean assurelastchariscolon bigstring   ) 
 

Definition at line 2349 of file strings.c.

References pushchar().

Referenced by filespectopath().

Here is the call graph for this function:

boolean bytestohex Handle  ,
Handle
 

Definition at line 2109 of file strings.c.

References bshexprefix, ct, gethandlesize(), moveleft(), newhandle(), and stringlength.

Referenced by getvalueedittext().

Here is the call graph for this function:

void bytestohexstring ptrvoid  ,
long  ,
bigstring 
 

Definition at line 2056 of file strings.c.

References bshexprefix, ct, insertstring(), lenbigstring, min, pushstring(), setemptystring, and setstringlength.

Referenced by hashgetvaluestring(), numbertohexstring(), and patterntostring().

Here is the call graph for this function:

boolean capitalizefirstchar bigstring   ) 
 

Definition at line 1144 of file strings.c.

References stringlength.

void commentdelete byte  ,
bigstring 
 

Definition at line 1009 of file strings.c.

short compareidentifiers bigstring  ,
bigstring 
 

Definition at line 242 of file strings.c.

References getlower, min, sgn, and stringlength.

Referenced by tablecomparenames().

short comparestrings bigstring  ,
bigstring 
 

Definition at line 198 of file strings.c.

Referenced by browserfindinsertionpoint(), locateprocinfo(), opbestfind(), opfindhead(), scriptgetnametype(), stringlessthan(), and tablecomparenames().

boolean convertCharset Handle  ,
Handle  ,
bigstring  ,
bigstring 
 

Definition at line 2701 of file strings.c.

References converttextencoding(), getTextEncodingIDFromIANA(), initCOM(), and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

void convertcstring bigstring   ) 
 

Definition at line 1785 of file strings.c.

References moveright().

Referenced by ellipsize(), filespectopath(), hashinsertcstring(), num2str(), numbertostring(), parseerror(), TCPWRITEMSG(), windowgettitle(), and wpsetselectioninfo().

Here is the call graph for this function:

void convertpstring bigstring   ) 
 

Definition at line 1769 of file strings.c.

References moveleft(), and short.

Referenced by ellipsize(), fwsNetEventReadStream(), revertdialog(), and wpsetfont().

Here is the call graph for this function:

void copyctopstring const char *  ,
bigstring 
 

Definition at line 1284 of file strings.c.

References memmove, and setstringlength.

Referenced by callprocwithparams(), closedunexpectedlyerror(), filefrompath(), filefunctionvalue(), fwsNetEventAddressDecode(), fwsNetEventAddressToName(), fwsNetEventStatusStream(), getapplicationfilespec(), getdaystring(), getmenuitem(), getmenutitle(), getsystemversionstring(), intneterror(), logtoaboutwindow(), logtodebugger(), neterror(), openwindowsparamlinefiles(), setmenuitemcommandkey(), userinfodialog(), and WinMain().

void copyheapstring hdlstring  ,
bigstring 
 

Definition at line 1318 of file strings.c.

Referenced by ccdrawmsg(), dbassignheapstring(), dirtostring(), getaddressparts(), getstringresource(), getsystemname(), getwindowmessage(), hashpackvisit(), hashresolvevalue(), langipccoerceparam(), minidrawpopups(), opgetliststring(), parseparamstring(), setwindowmessage(), shelladjustundo(), shellgetwindowtitle(), and stringtodir().

void copyptocstring const   bigstring,
char * 
 

Definition at line 1274 of file strings.c.

References memmove, and stringlength.

Referenced by alertdialog(), ccerrormessage(), chardialog(), DebugStr(), filespectopath(), FrontierFrameWndProc(), fwsNetEventAddressEncode(), fwsNetEventNameToAddress(), fwsNetEventOpenNameStream(), fwsNetEventWriteFileToStream(), getRegKeyBinary(), getRegKeyInfo(), getRegKeyLong(), getRegKeyString(), Insertmenuitem(), msgdialog(), Newmenu(), notifyuser(), playnamedsound(), ploticoncustom(), pushmenuitem(), replacevariabledialog(), savedialog(), setbuttonstring(), setmenuitem(), setmenuitemcommandkey(), setRegKeyBinary(), setRegKeyLong(), setRegKeyString(), setRegKeyValue(), threewaydialog(), twowaydialog(), winregdeletevalue(), winregdowrite(), and winreggethandlevalue().

void copystring const   bigstring,
bigstring 
 

Definition at line 1228 of file strings.c.

Referenced by __getmessage(), aboutsetmiscstring(), addday(), additemtopagetable(), addstrings(), adjustwindowmenu(), alertdialog(), appscriptcomplete(), autonameobject(), autonamevisit(), browserchecklinelength(), browsercollisiondialog(), browserdragcopy(), browserfindinsertionpoint(), browserselectfile(), browsertextchanged(), callcompiledscript(), callgetobjectflagname(), callgetobjectname(), callprocwithparams(), ccagentselectvisit(), ccdrawmainwindowtext(), ccmsg(), ccstart(), checkstyle(), claygetfilename(), claygetuniquefilename(), cmdsetfields(), coerceInsltoTEXT(), coercetostring(), compareforcopyvisit(), componenterrormessage(), copyheapstring(), datedayofweektostring(), datemonthtostring(), deletefile(), dialoggetbuttonstring(), directorytopath(), diskgetfontname(), drawpopup(), evaluatefileloop(), evaluateparam(), evaluatereadonlyparam(), evaluatewith(), fileexists(), filefrompath(), filefrompathverb(), filegetfilename(), filegetinfo(), filegetuniquename(), filegetversion(), fileisfolder(), fileisvolume(), fileopenorcreate(), fileparsevolname(), filepopsuffixnumber(), filerename(), filespecaddvalue(), filespectopath(), filesurefolder(), findbywindowtitle(), findstringlist(), findtokencallback(), folderfrompath(), folderfrompathverb(), fontgetnumber(), fullpathsearch(), fwsNetEventListenStream(), fwsnewprocess(), fwsruncallback(), getapplicationfilespec(), getbooleansearchparam(), getcardpassword(), getcardpopupstring(), getcommonstylesmenuitemtext(), getcompiledscript(), getdaystring(), geteditmenuitemidentifier(), getfilemenuitemidentifier(), getfilespecvalue(), getfontpopup(), getfrontapplication(), getfsfile(), getfullpath(), gethelperfolder(), getipcaddressvalue(), getlangmenu(), getmacrocharacters(), getmenutitle(), getnexttoken(), getnthapplication(), getobjectmodeldisplaystring(), getsearchparams(), getsizestring(), getstatsvisit(), getstringsearchparam(), getsystemname(), gettcperrorstring(), getuntitledtitle(), getvalueforscript(), getvarparam(), handlesearch(), hashsetnodekey(), helpercallback(), hexstringtonumber(), htmlcallbackerror(), htmlgetpref(), inetdsupervisor(), infodialog(), initenvironment(), InitializeApplication(), initprocessthread(), initsockrecord(), insertstring(), iowagetbooleanvalue(), IsAliasFile(), langcompileerror(), langdialognewwindow(), langerrorcopy(), langerrordrawtext(), langerrorset(), langexternalregisterwindow(), langexternalunregisterwindow(), langgetextendedvolumeinfo(), langgethandlercode(), langgettypestring(), langgetwithvaluename(), langhandlercall(), langipcerrormessage(), langipcexpandnetaddress(), langpackfileval(), langreduceformula(), langremotefunctioncall(), langscanner(), langtracktimeslice(), langtraperror(), langtraperrormessage(), launchFrontier(), launchHelperApp(), lookupname(), minicopy(), minidrawmsg(), minimessage(), mininewwindow(), movefile(), namedobjecterror(), newaboutwindow(), newchildwindow(), newfile(), newhashnode(), newprocess(), newwindowverb(), notifyuser(), objtostring(), odberrorroutine(), odbGetError(), oneshotthreadmain(), onestringdialog(), opbestfind(), openfile(), openlibrary(), operatortostring(), opfindhead(), opfindverb(), oppushhandle(), opsortlevel(), opunshifthandle(), opxmltooutline(), oserror(), parsecallbackstring(), parsedialogstring(), parseerror(), parseparamstring(), parsepopnumber(), pathtofilespec(), picttextparse(), plainneterror(), ploticoncustom(), pullstringsuffix(), pushmenuitem(), registerFileType(), renamefile(), replaceexistingdialog(), replacevariabledialog(), resolvexcmdglobal(), revertfrontwindow(), runlangscript(), runworldwideurl(), saveaswindow(), savedialog(), scriptfindsubtypevisit(), scriptgettypename(), scriptstringlookup(), scriptupdateserverpopup(), selectwindowbytitle(), selectwindowverb(), sendrecordedtextevent(), setapptarget(), setbooleansearchparam(), setcardpopup(), setcardpopupfromfolder(), setcardpopupfrommenu(), setfiledates(), setfontpopup(), setfsfile(), setpopupfoldervisit(), setstatsmessage(), setstringsearchparam(), setsyserrorparam(), settargetverb(), setwindowtitleverb(), sfdialog(), shelldrawbutton(), structtofrontiervalvisit(), subtractstrings(), tablearrayvalue(), tablefind(), tablefindvariable(), tablegetcellstring(), tablekindrecalc(), tablemakeuniquename(), tablesymbolinsertedvisit(), testtostring(), threadcallscriptverb(), threewaydialog(), twowaydialog(), unicaseequalstrings(), verbmakefilespec(), volumeinfoerror(), webservergetmethod(), webservergetrespondertableaddress(), webserverlocateresponder(), webserverprocessfirstline(), webserverreadrequest(), winregtypestringtotype(), winregtypetostring(), xcmdcallback(), xmlstructtofrontiervalue(), and xmlvaltostring().

long countleadingchars Handle  ,
byte 
 

Definition at line 326 of file stringverbs.c.

References gethandlesize(), and i.

Referenced by handlepopleadingchars().

Here is the call graph for this function:

short countwords bigstring  ,
byte 
 

Definition at line 876 of file strings.c.

References stringlength, and textcountwords().

Referenced by filefunctionvalue(), parsepageaddress(), stringtopoint(), stringtorect(), stringtorgb(), and teststringvalue().

Here is the call graph for this function:

boolean deletefirstchar bigstring   ) 
 

Definition at line 341 of file strings.c.

References deletestring().

Here is the call graph for this function:

boolean deletestring bigstring  ,
short  ,
short 
 

Definition at line 305 of file strings.c.

Referenced by additemtopagetable(), autonamevisit(), browserselectfile(), coercetofilespec(), deletefirstchar(), dropnonalphas(), fileparsevolname(), findapplication(), getcardrect(), getname(), langreduceformula(), mereducemenucodes(), openwindowsparamlinefiles(), parseremotefunction(), picttextparse(), popleadingchars(), replacestring(), stringdeletechars(), stringtocolor(), subtractstrings(), tablegetcellstring(), and xcmdcallback().

void dirtostring tydirection  ,
bigstring 
 

Definition at line 2206 of file strings.c.

References copyheapstring(), dirstrings, and dirtoindex().

Referenced by coercetostring().

Here is the call graph for this function:

boolean dropnonalphas bigstring   ) 
 

Definition at line 591 of file strings.c.

References ct, deletestring(), isemptystring, and stringlength.

Referenced by indexpage().

Here is the call graph for this function:

void ellipsize bigstring  ,
short 
 

Definition at line 1408 of file strings.c.

Referenced by centerbuttonstring(), centerstring(), claydrawtext(), claypostdrawline(), drawpopup(), opdefaultdrawtext(), and tabledefaultdrawcell().

boolean equalidentifiers const   bigstring,
const   bigstring
 

Definition at line 129 of file strings.c.

Referenced by athandlestreamstring(), browsercompareforcollision(), browsermoveto(), buildpagetableverb(), compareforcopyvisit(), decompilespecialtable(), decompilevisit(), EQvalue(), findnamedparam(), findpathvisit(), findtitlevisit(), getmacrocharacters(), getspecialfolderpath(), hashlocate(), hashsortedsearch(), idvalue(), indexfunc(), langgetentrypoint(), langunpackfileval(), langunsettarget(), oplangtextvisit(), opxmlsetcommentandbreakpoint(), opxmltooutlinevisit(), processmacrosintags(), scriptfindnamevisit(), shellopenfile(), shellsave(), shellsaveas(), tablerenameverb(), tablesetitemname(), tablesymbolchangedvisit(), tablesymboldeletedvisit(), tablesymbolzoomvisit(), unicaseequalstrings(), webserverreadrequest(), xmlcompile(), and xmldecompile().

boolean equalstrings const   bigstring,
const   bigstring
 

Definition at line 94 of file strings.c.

Referenced by additemtopagetable(), addressofvalue(), appsetmessage(), arraytofrontiervalvisit(), askfilter(), assignordeletevalue(), cardToFront(), daveNetMassager(), deindexpage(), dialogmapkeystroke(), equalfilespecs(), equalheadstrings(), findbytitlevisit(), findheadlinevisit(), findinmenu(), findstringlist(), fontgetnumber(), getlangmenu(), getostypedisplaystring(), getsearchparams(), getTextEncodingIDFromIANA(), getvalueforscript(), htmlgetpref(), htmlrundirective(), indexfunc(), indexpage(), initenvironment(), Insertmenuitem(), isseparatorstring(), isxmlmatch(), label2index(), langgetspecialtable(), langgetsymbolval(), langunpackoldheader(), lookupvisit(), mapkeyvisit(), opfindhead(), opgetlistnode(), opgetselectedsuboutlinesverb(), parentfunc(), parsepopnumber(), postthreadsmessage(), pushmenuitem(), pushpopupitem(), replaceexistingfilter(), runoutlinedirectivesverb(), scriptverifycompilation(), selectvisit(), setcardpassword(), setcardstring(), settargetvisit(), setwindowmessage(), shellrunwindowconfirmationscript(), shelltgetmainmenu(), stringendswith(), stringisboolean(), stringtoaddress(), stringtodir(), structtofrontiervalvisit(), tablefindvisit(), tablefunctionvalue(), tablesetitemname(), teststringvalue(), threewayfilter(), traversalskipverb(), twowayfilter(), unicaseequalstrings(), windowsettitle(), winregpullhkeyfromtext(), winregtypestringtotype(), winregwrite(), xcmdcallback(), xmlcompile(), and xmlstructtofrontiervalue().

boolean equaltextidentifiers byte string1,
byte string2,
short  len
 

Definition at line 118 of file strings.c.

References getlower.

Referenced by coercetofilespec(), and parseremotefunction().

void filledstring byte  ,
short  ,
bigstring 
 

Definition at line 1192 of file strings.c.

Referenced by daveNetMassager(), opgetlangtext(), oplangtextvisit(), outtextvisit(), setcardpassword(), and xmladdstring().

boolean firstsentence bigstring   ) 
 

Definition at line 1055 of file strings.c.

References setstringlength, stringlength, and whitespacechar().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean firstword bigstring  ,
byte  ,
bigstring 
 

Definition at line 838 of file strings.c.

Referenced by browserselectfile(), findapplication(), fwsNetEventReadStream(), getnexttoken(), getspecialfolderpath(), gettcperrorstring(), indexpage(), nextserialnum(), parseremotefunction(), and stringtocolor().

short getstringlength bigstring   ) 
 

void getstringresource short  ,
bigstring 
 

Definition at line 1665 of file strings.c.

References copyheapstring(), nil, and setemptystring.

Here is the call graph for this function:

void handlepopleadingchars Handle  htext,
byte  ch
 

Definition at line 341 of file stringverbs.c.

References countleadingchars(), nil, and pullfromhandle().

Referenced by innercasehandle(), stringfunctionvalue(), and webserverparsecookies().

Here is the call graph for this function:

void handlepoptrailingchars Handle  htext,
byte  ch
 

Definition at line 348 of file stringverbs.c.

References gethandlesize(), i, and sethandlesize().

Referenced by innercasehandle(), and stringfunctionvalue().

Here is the call graph for this function:

boolean hexstringtonumber bigstring  ,
long
 

Definition at line 2003 of file strings.c.

References alllower(), bigstring, bshexprefix, chspace, copystring(), fl, hextoint, i, min, popleadingchars(), stringdeletechars(), stringlength, and subtractstrings().

Referenced by nthint(), parsepopescapesequence(), parsepopnumber(), stringtolong(), and stringtopattern().

Here is the call graph for this function:

boolean hextobytes Handle  ,
Handle
 

Definition at line 2143 of file strings.c.

References ct, gethandlesize(), hextoint, and newhandle().

Referenced by tablegetwpedittext().

Here is the call graph for this function:

void initstrings void   ) 
 

Definition at line 3055 of file strings.c.

References bigstring, clearbytes(), ctdirections, directionlistnumber, dirstrings, getstringlist(), i, longsizeof, lowercasetable, newheapstring(), and parseparams.

Referenced by shellinit().

Here is the call graph for this function:

boolean insertchar byte  ,
bigstring 
 

Definition at line 480 of file strings.c.

Referenced by addday(), buildpagetableverb(), datenetstandardstring(), decompilespecialtable(), decompilevisit(), filespecaddvalue(), findapplication(), findusedblocksvisit(), getlimitedvaluestring(), getmonthurl(), getobjectmodeldisplaystring(), getostypeidentifier(), handlerecordableevent(), hashgetvaluestring(), langexternalbracketname(), langexternalquotename(), langremotefunctioncall(), mrcalendargetdayaddressdive(), objtostring(), oplangtextvisit(), padwithzeros(), pullstringsuffix(), push2digitnum(), serialstring(), tabledroppasteroutine(), and xmlvaltostring().

boolean insertstring bigstring  ,
bigstring 
 

Definition at line 456 of file strings.c.

Referenced by aboutsetthreadstring(), aliastostring(), buildpagetableverb(), bytestohexstring(), ccdrawabout(), claypostdrawline(), filespecaddvalue(), findusedblocksvisit(), getaddresspath(), handlerecordableevent(), langremotefunctioncall(), mefindusedblocksvisit(), newaboutwindow(), objtostring(), pusheventparameter(), runlangscript(), tabledroppasteroutine(), tablepasteroutine(), and xmlmakenewaddress().

boolean isallnumeric bigstring   ) 
 

Definition at line 1162 of file strings.c.

References ct, isnumeric, and stringlength.

Referenced by fileparsevolname(), findfirstnumericnodevisit(), findlastnumericnodevisit(), pathtofilespec(), stringtofloat(), stringtolong(), and xmlcompile().

boolean isTextEncodingAvailable bigstring   ) 
 

Definition at line 2547 of file strings.c.

References disablelangerror(), enablelangerror(), fl, and getTextEncodingIDFromIANA().

Referenced by isCharsetAvailableVerb().

Here is the call graph for this function:

void kstring long  ,
bigstring 
 

Definition at line 2194 of file strings.c.

References bigstring, getstringlist(), interfacelistnumber, kilobytestring, numbertostring(), and pushstring().

Here is the call graph for this function:

long langcommentdelete byte  ,
byte ,
long 
 

Definition at line 929 of file strings.c.

References i.

Referenced by commentdelete(), and oplangtextvisit().

boolean lastword bigstring  ,
byte  ,
bigstring 
 

Definition at line 822 of file strings.c.

Referenced by filedialogverb(), filefrompath(), filegetfilename(), findapplication(), langinitconsttable(), newappwindow(), poplastword(), shellopenfile(), and shellsaveas().

void latintomac Handle  h  ) 
 

Definition at line 1266 of file stringverbs.c.

References gethandlesize(), and latintomactable.

Referenced by stringfunctionvalue().

Here is the call graph for this function:

void lowertext ptrbyte  ,
long 
 

Definition at line 1118 of file strings.c.

References getlower.

Referenced by alllower(), getTextEncodingIDFromIANA(), innercasehandle(), lowercasehandle(), and stringfunctionvalue().

boolean macromantoutf8 Handle  ,
Handle 
 

Definition at line 2984 of file strings.c.

References converttextencoding(), cs_macintosh, cs_utf8, and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

void mactolatin Handle  h  ) 
 

Definition at line 1295 of file stringverbs.c.

References gethandlesize(), and mactolatintable.

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean midinsertstring bigstring  ,
bigstring  ,
short 
 

Definition at line 2247 of file strings.c.

References lenbigstring, moveleft(), moveright(), setstringlength, and stringlength.

Referenced by coercetofilespec(), hashreporterror(), midinsertchar(), replacestring(), stringaddcommas(), and xmlvaltostring().

Here is the call graph for this function:

void midstring bigstring  ,
short  ,
short  ,
bigstring 
 

Definition at line 498 of file strings.c.

Referenced by clickersvisit(), explodeversion(), fileparsevolname(), firstword(), lastword(), parseremotefunction(), pathtofilespec(), setiso8601datetimestring(), stringendswith(), and stringtotime().

boolean nthfield bigstring  ,
short  ,
byte  ,
bigstring 
 

Definition at line 858 of file strings.c.

References stringlength, textnthword(), and texttostring().

Here is the call graph for this function:

boolean nthword bigstring  ,
short  ,
byte  ,
bigstring 
 

Definition at line 844 of file strings.c.

References stringlength, textnthword(), and texttostring().

Referenced by arraytofrontiervalvisit(), hashreporterror(), isxmlmatch(), langfastaddresstotable(), namenomad(), nthint(), parsepageaddress(), stringtofloat(), structtofrontiervalvisit(), teststringvalue(), xmlgetname(), and xmlstructtofrontiervalue().

Here is the call graph for this function:

void numbertohexstring long  ,
bigstring 
 

Definition at line 2085 of file strings.c.

References bytestohexstring().

Referenced by stringfunctionvalue(), and xcmdcallback().

Here is the call graph for this function:

void ostypetostring OSType  ,
bigstring 
 

Definition at line 1961 of file strings.c.

References longsizeof, moveleft(), and setstringlength.

Referenced by coercetostring(), drawline(), eventthreadmain(), filefunctionvalue(), findapplication(), getappmenurecord(), getostypedisplaystring(), handlerecordableevent(), hashgetsizestring(), langipcbuildparamlist(), langipccomplexsend(), langipcconvertaelist(), langipcerrormessage(), langipcfindtraphandler(), langostypeparamerror(), namefunc(), osahandletrapverb(), parsepopcharconst(), pusheventparameter(), setdialogostype(), and shellsave().

Here is the call graph for this function:

void padwithzeros bigstring  ,
short 
 

Definition at line 1212 of file strings.c.

References insertchar(), lenbigstring, and stringlength.

Here is the call graph for this function:

boolean parsedialoghandle Handle  hsource,
Handle  h0,
Handle  h1,
Handle  h2,
Handle  h3
 

Definition at line 1555 of file strings.c.

References assert, ctparseparams, gethandlesize(), i, inserthandleinhandle(), nil, and pullfromhandle().

Referenced by adddaynamesrow(), adddayrows(), glossarypatcherverb(), webserveraddtoerrorlog(), webserverbuilderrorpage(), and webservergetserverstring().

Here is the call graph for this function:

void parsedialogstring const   bigstring,
ptrstring  ,
ptrstring  ,
ptrstring  ,
ptrstring  ,
bigstring 
 

Definition at line 1487 of file strings.c.

Referenced by addday(), alertdialog(), browserpredrag(), ccdrawabout(), ccdrawtextitem(), ccloadspecialfile(), ccrunurlscript(), ccsavespecialfile(), coerceInsltoTEXT(), confirmdialog(), datedayofweektostring(), datemonthtostring(), decompilevisit(), eventthreadmain(), getcommonstylesmenuitemtext(), getostypedisplaystring(), handlerecordableevent(), lang3paramerror(), langipcerrormessage(), langparamerrormessage(), langremotefunctioncall(), langzoomobject(), mrcalendargetmostrecentaddress(), mrcalendargetmostrecentdayverb(), mrcalendargetnextaddress(), mrcalendargetnextdayverb(), objtostring(), osacomponentverifyshutdown(), parsenumberstring(), rangetostring(), replacevariabledialog(), revertdialog(), runeditmenuscript(), runfilemenuscript(), runopenrecentmenuscript(), runurlscript(), scriptnewprocess(), scriptverifycompilation(), setTextEncodingConversionError(), shellinit(), shellinternalerrormessage(), shellrunwindowconfirmationscript(), tablekindrecalc(), tablesavesystemtable(), testtostring(), threewaydialog(), updateconfigsettings(), volumeinfoerror(), webservermethodnotallowed(), webserverprocessfirstline(), xmlvaltostring(), and yesnodialog().

void parsenumberstring short  ,
short  ,
long  ,
bigstring 
 

Definition at line 1684 of file strings.c.

References bigstring, getstringlist(), nil, numbertostring(), and parsedialogstring().

Referenced by hashgetvaluestring(), menuverbgetdisplaystring(), opverbgetsummitstring(), pictverbgetdisplaystring(), tableverbgetdisplaystring(), and wpverbgetdisplaystring().

Here is the call graph for this function:

void parseparamstring bigstring   ) 
 

Definition at line 1645 of file strings.c.

Referenced by kernelfunctionvalue(), oserror(), scriptgetwindowtitle(), and syserror().

short patternmatch bigstring  ,
bigstring 
 

Definition at line 1875 of file strings.c.

Referenced by autonamevisit(), clickersvisit(), filepopsuffixnumber(), hashreporterror(), indexpage(), isstalepageaddress(), parsepageaddress(), scriptdebugerrordebugger(), stringtolong(), subtractstrings(), and testtostring().

void poplastword bigstring  ,
byte 
 

Definition at line 828 of file strings.c.

References bigstring, lastword(), setstringlength, and stringlength.

Here is the call graph for this function:

short popleadingchars bigstring  ,
byte 
 

Definition at line 347 of file strings.c.

References deletestring(), i, and stringlength.

Referenced by findapplication(), getcommandkeystring(), hexstringtonumber(), nthint(), parsepopnumber(), and shelltgetmainmenu().

Here is the call graph for this function:

short poptrailingchars bigstring  ,
byte 
 

Definition at line 372 of file strings.c.

References isemptystring, setstringlength, and stringlength.

Referenced by fwsNetEventAddressToName(), indexpage(), pathtofilespec(), tablesavesystemtable(), and tableverbinmemory().

boolean poptrailingwhitespace bigstring   ) 
 

Definition at line 1030 of file strings.c.

Referenced by findapplication(), getnexttoken(), langipcfindtraphandler(), and osahandletrapverb().

boolean pullstringsuffix bigstring  ,
bigstring  ,
unsigned  char
 

Definition at line 2937 of file strings.c.

References copystring(), ct, emptystring, fl, insertchar(), setstringlength, and stringlength.

Referenced by winregdelete(), winreggetvalue(), winreggetvaluelength(), winreggetvaluetype(), and winregwrite().

Here is the call graph for this function:

boolean pushboolean boolean  ,
bigstring 
 

boolean pushchar byte  ,
bigstring 
 

Definition at line 385 of file strings.c.

Referenced by aboutsetthreadstring(), addvalue(), aliastostring(), assurelastchariscolon(), bigvaltostring(), browsercollisiondialog(), ccupdatestatistics(), colortostring(), decompilevisit(), directorytopath(), filefrompathverb(), fileparsevolname(), filespecaddvalue(), filespectopath(), findapplication(), floattostring(), fullpathsearch(), fwsNetEventGetStats(), getaddresspath(), getcardrect(), getcommandkeystring(), getidentifierstring(), getiso8601datetimestring(), getlimitedvaluestring(), getnexttoken(), getobjectmodeldisplaystring(), getostypeidentifier(), getsizestring(), getspecialfolderpath(), getstatsvisit(), getsystemversionstring(), gettcperrorstring(), getuntitledfilename(), handlerecordableevent(), hashreporterror(), initprocessthread(), langexternalbracketname(), langexternalquotename(), langgetextendedvolumeinfo(), langgetwithvaluename(), langscanner(), langsetuserflag(), langvaluetotextscrap(), listtostring(), medisplaycmdkeypopup(), mefindusedblocksvisit(), neterror(), oplangtextvisit(), opnavigationkey(), parsecallbackstring(), parsedialogstring(), parseparamstring(), parsepopcharconst(), parsepopescapesequence(), parsepopidentifier(), parsepopnumber(), parsepopstringconst(), pictverbpacktotext(), pointtostring(), pusheventparameter(), pushspace(), recttostring(), registerFileType(), rgbtostring(), scriptgetlevelname(), sendrecordedtextevent(), setcardpopupfrommenu(), setcardrect(), tablecopyroutine(), tablegetcellstring(), tablepacktotextvisit(), versionnumtostring(), xcmdcallback(), and xmlvaltostring().

boolean pushheapstring hdlstring  ,
bigstring 
 

Definition at line 1342 of file strings.c.

References fl, h, HLock, HUnlock, nil, and pushstring().

Here is the call graph for this function:

boolean pushint short  ,
bigstring 
 

Definition at line 426 of file strings.c.

Referenced by colortostring(), filepopsuffixnumber(), filepushsuffixnumber(), getsystemversionstring(), hashgetvaluestring(), oppushhandle(), opunshifthandle(), oserror(), pointtostring(), recttostring(), registerFileType(), rgbtostring(), scriptgetlevelname(), and versionnumtostring().

boolean pushlong long  ,
bigstring 
 

Definition at line 416 of file strings.c.

Referenced by browserchecklinelength(), componenterrormessage(), fwsNetEventGetStats(), getcolorpopupvalue(), getstatsvisit(), getuntitledfilename(), getuntitledtitle(), initprocessthread(), parsecallbackstring(), pushint(), runlangscript(), setcardrect(), and statsdisplay().

boolean pushspace bigstring   ) 
 

Definition at line 406 of file strings.c.

boolean pushstring bigstring  ,
bigstring 
 

Definition at line 271 of file strings.c.

Referenced by __getmessage(), aboutsetthreadstring(), addstrings(), appletdatetostring(), appscriptcomplete(), autonameobject(), bigvaltostring(), browserchecklinelength(), browsercollisiondialog(), bytestohexstring(), checkstyle(), claypostdrawline(), coerceInsltoTEXT(), compareforcopyvisit(), componenterrormessage(), daveNetMassager(), decompilespecialtable(), decompilevisit(), directorytopath(), ellipsize(), filegetpath(), filepushsuffixnumber(), filespectopath(), filesurefolder(), findapplication(), fullpathsearch(), getcommandkeystring(), getcurrenttimestring(), getidentifierstring(), getlimitedvaluestring(), getnewitemaddress(), getsizestring(), gettimestring(), getundomenuitem(), getvalueforscript(), handlerecordableevent(), helpercallback(), initenvironment(), InitializeApplication(), insertstring(), kstring(), langgetwithvaluename(), langinitconsttable(), langparamerrormessage(), langsetuserflag(), movefile(), namedobjecterror(), neterror(), openwindowsparamlinefiles(), parsedialogstring(), parseparamstring(), pathtofilespec(), ploticoncustom(), push2digitnum(), pusheventparameter(), pushheapstring(), pushlong(), pushostype(), pushspace(), pushtimeonstring(), registerFileType(), renamefile(), replaceexistingdialog(), revertfrontwindow(), runlangscript(), savedialog(), scriptgetlevelname(), serialstring(), setfsfile(), shelldefaultsetundostatus(), shellsetwindowchanges(), shellsetwindowtitle(), statsdisplay(), tablecopyroutine(), tablegetcellstring(), tablekindrecalc(), tablemakeuniquename(), tableruncursor(), timedatestring(), updateconfigsettings(), and verbmakefilespec().

boolean pushstringresource short  ,
short  ,
bigstring 
 

boolean replacestring bigstring  ,
short  ,
short  ,
bigstring 
 

Definition at line 2272 of file strings.c.

Referenced by replaceallinstring(), shellsaveas(), and tablesearchcellname().

boolean scanstring byte  ,
bigstring  ,
short
 

Definition at line 629 of file strings.c.

Referenced by coercetofilespec(), fileparsevolname(), getname(), pathtofilespec(), replaceallinstring(), stringfindchar(), stringreplaceall(), and stringtotime().

boolean setparseparams bigstring  ,
bigstring  ,
bigstring  ,
bigstring 
 

Definition at line 1610 of file strings.c.

References ctparseparams, disposehandle(), i, nil, and parseparams.

Referenced by kernelfunctionvalue(), oserror(), scriptgetwindowtitle(), setoserrorparam(), and shellinitmenus().

Here is the call graph for this function:

boolean streamdropnonalphas handlestream  ) 
 

Definition at line 610 of file strings.c.

References nil, and pullfromhandlestream().

Referenced by dropnonalphasverb().

Here is the call graph for this function:

boolean stringaddcommas bigstring   ) 
 

Definition at line 2289 of file strings.c.

References bigstring, commastring, getstringlist(), interfacelistnumber, midinsertstring(), and stringlength.

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean stringdeletechars bigstring  ,
char 
 

Definition at line 2317 of file strings.c.

References deletestring(), fl, i, and stringlength.

Referenced by hexstringtonumber(), nthint(), and stringtolong().

Here is the call graph for this function:

boolean stringfindchar byte  ,
bigstring 
 

Definition at line 660 of file strings.c.

Referenced by arraytofrontiervalvisit(), filespecaddvalue(), filespecsubtractvalue(), getipcaddressvalue(), langerrordrawtext(), structtofrontiervalvisit(), xmldecompile(), xmlgetname(), and xmlstructtofrontiervalue().

boolean stringfindreplace bigstring  ,
bigstring  ,
Handle  ,
boolean  ,
boolean 
 

Definition at line 567 of file strings.c.

References disposehandle(), fl, newtexthandle(), nil, and textfindreplace().

Referenced by neutermacros().

Here is the call graph for this function:

boolean stringinitverbs void   ) 
 

Definition at line 2370 of file stringverbs.c.

References idstringverbs, loadfunctionprocessor(), and stringfunctionvalue().

Here is the call graph for this function:

boolean stringlessthan bigstring  ,
bigstring 
 

Referenced by adjustwindowmenu(), and opsortlevel().

boolean stringreplaceall char  ,
char  ,
bigstring 
 

Definition at line 673 of file strings.c.

References scanstring().

Referenced by coercetofilespec(), and langerrordrawtext().

Here is the call graph for this function:

boolean stringtodir bigstring  ,
tydirection
 

Definition at line 2219 of file strings.c.

References alllower(), bigstring, copyheapstring(), ctdirections, dirstrings, equalstrings(), i, and indextodir().

Referenced by stringtodirection(), and stringtolong().

Here is the call graph for this function:

boolean stringtoostype bigstring  ,
OSType
 

Definition at line 1976 of file strings.c.

References fl, moveleft(), and stringlength.

Referenced by clickersvisit(), filedialogverb(), getdialogostype(), getmenubarid(), getspecialfolderpath(), handlerexpectsnames(), langipcbuildsubroutineevent(), langipcconvertoplist(), langipcgetparamvisit(), langipcpushrecordparams(), langstringtoostype(), notifyappvisit(), and sysfunctionvalue().

Here is the call graph for this function:

boolean subtractstrings bigstring  ,
bigstring  ,
bigstring 
 

Definition at line 1935 of file strings.c.

References copystring(), deletestring(), patternmatch(), and stringlength.

Referenced by filespecsubtractvalue(), hexstringtonumber(), and stringtopattern().

Here is the call graph for this function:

boolean textcommentdelete Handle   ) 
 

Definition at line 882 of file strings.c.

References BIGSTRING, disposehandle(), longinfinity, newtexthandle(), searchhandle(), sethandlecontents(), and sethandlesize().

Referenced by commentdeleteverb(), and rundirectiveverb().

Here is the call graph for this function:

long textcountwords ptrbyte  ,
long  ,
byte  ,
boolean 
 

Definition at line 801 of file strings.c.

References textnthword().

Referenced by countwords(), indexpage(), and stringfunctionvalue().

Here is the call graph for this function:

boolean textfindreplace Handle  ,
Handle  ,
Handle  ,
boolean  ,
boolean 
 

Definition at line 516 of file strings.c.

References closehandlestream(), handlestream::eof, gethandlesize(), lockhandle(), mergehandlestreamdata(), openhandlestream(), handlestream::pos, searchhandle(), searchhandleunicase(), and unlockhandle().

Referenced by fillintemplate(), replaceallinhandle(), stringfindreplace(), stringmultiplereplace(), and stringreplaceverb().

Here is the call graph for this function:

boolean textfirstword ptrbyte  ,
long  ,
byte  ,
bigstring 
 

Definition at line 713 of file strings.c.

References i.

Referenced by firstword(), htmlrundirective(), and oplangtextvisit().

boolean textlastword ptrbyte  ,
long  ,
byte  ,
bigstring 
 

Definition at line 690 of file strings.c.

References i.

Referenced by lastword(), and stringfunctionvalue().

boolean textnthword ptrbyte  ,
long  ,
long  ,
byte  ,
boolean  ,
long ,
long
 

Definition at line 736 of file strings.c.

Referenced by explodeversion(), getnexttoken(), glossarypatcherverb(), grabnthfield(), indexpage(), nthfield(), nthfieldhandle(), nthword(), textcountwords(), webserverparsecookies(), webserverprocessfirstline(), and xmlgetpathaddress().

long textpatternmatch byte ptext,
long  lentext,
bigstring  bsfind,
boolean  flunicase
 

Definition at line 1804 of file strings.c.

References checklower, i, and stringlength.

Referenced by findinhandlestream(), glossarypatcherverb(), handlecontains(), isoutlinetext(), stripmarkup(), textsearch(), webserverparseheaders(), webserverprocessfirstline(), and winregpullhkeyfromtext().

void timedatestring long  ,
bigstring 
 

Definition at line 1360 of file strings.c.

References bigstring, getstringlist(), interfacelistnumber, pushstring(), timedateseperatorstring, timetodatestring(), and timetotimestring().

Referenced by coercetostring(), mrcalendargetmostrecentaddress(), mrcalendargetmostrecentdayverb(), mrcalendargetnextaddress(), and mrcalendargetnextdayverb().

Here is the call graph for this function:

void uppertext ptrbyte  ,
long 
 

Definition at line 1104 of file strings.c.

Referenced by allupper(), and stringfunctionvalue().

boolean utf16toansi Handle  ,
Handle 
 

Definition at line 2736 of file strings.c.

References converttextencoding(), cs_iso88591, cs_utf16, error, gethandlesize(), NULL, pullfromhandle(), sethandlesize(), and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean utf8toansi Handle  ,
Handle 
 

Definition at line 2785 of file strings.c.

References converttextencoding(), cs_iso88591, cs_utf16, cs_utf8, disposehandle(), gethandlesize(), newemptyhandle(), NULL, pullfromhandle(), sethandlesize(), and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean utf8tomacroman Handle  ,
Handle 
 

Definition at line 3020 of file strings.c.

References converttextencoding(), cs_macintosh, cs_utf8, and setTextEncodingConversionError().

Referenced by stringfunctionvalue().

Here is the call graph for this function:

boolean whitespacechar byte   ) 
 

Definition at line 1024 of file strings.c.

Referenced by firstsentence(), poptrailingwhitespace(), and poptrailingwhitespacehandle().


Variable Documentation

unsigned char lowercasetable[256]
 

Definition at line 72 of file strings.c.

Referenced by initstrings().

byte zerostring[]
 

Definition at line 70 of file strings.c.

Referenced by assignemptytag(), ccagentselectvisit(), coercetobinary(), evaltree(), evaluatewith(), getfileverb(), getsearchparams(), langerrordialog(), langerrordrawtext(), langpushwithtable(), newshellwindowinfo(), processscheduler(), scriptdebugger(), setwinvalue(), statsupdate(), stringfunctionvalue(), tabledroppasteroutine(), tablefunctionvalue(), xcmdcallback(), and xmlcompile().


Generated on Tue Jun 13 13:33:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6