Darwin Help

Back to Index

SearchString

Function SearchString - case insensitive exact string searching

Calling Sequence  SearchString(pat,txt)
Parameters
NameTypeDescription

pat stringa pattern that is sought
txt stringa text which is searched
Return Type  {-1,0,posint}
Synopsis This returns the offset before the character where pat matches with txt. If pat does not match txt, -1 is returned. This function is case insensitive.
Examples
> SearchString('HerE', 'It is in hERe');
9
> SearchString('where', 'wear am i');
-1
See also ApproxSearchString,   BestSearchString,   CaseSearchString,   HammingSearchString,   SearchDelim,   SearchMultipleString