Sign in Join
FPDoc Onlineexperiment

stripos function

In unit Strings

Return the position of a substring in a string, case insensitive.

Declaration

pascal
function stripos(str1: PAnsiChar; str2: PAnsiChar): PAnsiChar

Description

stripos returns the position of str2 in str1. It searches in a case-insensitive manner, and if it finds a match, it returns a pointer to the location of the match. If no match is found, Nil is returned.

Errors

No checks are done on the validity of the pointers, and the pointers are assumed to point to a properly null-terminated string. If either of these conditions are not met, a run-time error may follow.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.