next up previous contents
Next: Graphic Functions Up: Searching Functions Previous: Case Sensitive Search string

Case Insensitive Search string

Calling Sequence:
SearchString(pat, text)
Parameters:
pat : string
text : string

Returns: { -1, 0, posint }

Synopsis: This returns the offset before the character where pat matches with text. If pat does not match text, -1 is returned.

Examples:

> SearchString('HerE', 'It is in hERe');  # case insensitive, found
> SearchString('where', 'wear am i');     # not found

See also: CaseSearchString




Gaston Gonnet
1998-09-15