System.AnsiStrings.StrPos
Delphi
function StrPos(const Str1, Str2: PAnsiChar): PAnsiChar;
C++
extern DELPHI_PACKAGE char * __fastcall StrPos(const char * Str1, const char * Str2)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Renvoie un pointeur sur la première occurrence de STR2 dans STR1.
StrPos renvoie un pointeur sur la première occurrence de Str2 dans Str1. Si Str2 ne se produit pas dans Str1, StrPos renvoie nil (Delphi) ou NULL (C++).
Remarque : Si la chaîne source contient des caractères internationaux, utilisez plutôt AnsiStrPos.