System.SysUtils.TextPos

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TextPos(Str, SubStr: PAnsiChar): PAnsiChar;
function TextPos(Str, SubStr: PWideChar): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall TextPos _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Str, char * SubStr)/* overload */;

Properties

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

Description

Warning: The ANSI version of TextPos is deprecated. Please use the AnsiStrings unit.

Returns a pointer to the first occurrence of a substring in a string. TextPos is case-insensitive.

TextPos returns a pointer to the first occurrence of SubStr in Str. If SubStr does not occur in Str, TextPos returns nil (Delphi) or NULL (C++).

Note: TextPos behaves as StrPos, except that it is case-insensitive.

See Also