SysUtils.StrPos

From Référence RAD Studio VCL
Jump to: navigation, search

Contents

Informations Delphi

De SysUtils.pas

	function StrPos(const Str1: PAnsiChar; const Str2: PAnsiChar): PAnsiChar; overload;
 
	function StrPos(const Str1: PWideChar; const Str2: PWideChar): PWideChar; overload;


Unité : SysUtils

Type : fonction

Visibilité : public

Informations C++

De SysUtils.hpp

	char * __fastcall StrPos(const char * Str1, const char * Str2);


Unité : SysUtils

Type : fonction

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.

Voir aussi

Exemples de code


Personal tools