| Calling Sequence
| SearchString(pat,txt)
|
| Parameters
| | Name | Type | Description |
|
| pat
| string | a pattern that is sought |
| txt
| string | a 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 |