Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiPos

From XE2 API Documentation
Jump to: navigation, search

Delphi

function AnsiPos(const Substr, S: AnsiString): Integer;

C++

extern PACKAGE int __fastcall AnsiPos(const System::AnsiString Substr, const System::AnsiString S)/* overload */;

Properties

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

Description

Get index value of first character in substring that occurs in string.

AnsiPos returns the index value of the first character in a specified substring that occurs in a given string. It operates similarly to the System.Pos function, but supports multi-byte character strings (MBCS) AnsiStrings.

See Also

Personal tools
Previous Versions
Translations