Show: Delphi C++
Display Preferences

System.AnsiStrings.StrPos

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrPos(const Str1, Str2: PAnsiChar): PAnsiChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrPos(const char * Str1, const char * Str2)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Returns a pointer to the first occurrence of STR2 in STR1.

StrPos returns a pointer to the first occurrence of Str2 in Str1. If Str2 does not occur in Str1, StrPos returns nil (Delphi) or NULL (C++).

Note: If the source string contains international characters, use AnsiStrPos instead.

See Also

Code Examples


Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance