Darwin Help

Back to Index

CaseSearchString

Function CaseSearchString - case sensitive exact string searching

Calling Sequence  CaseSearchString(pat,txt)
Parameters
NameTypeDescription

pat string 
txt string 
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.
Examples
> CaseSearchString('here', 'It is in here');
9
> CaseSearchString('it', 'It is in here');
-1
See also ApproxSearchString,   BestSearchString,   HammingSearchString,   SearchDelim,   SearchMultipleString,   SearchString