Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiStrScan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiStrScan(Str: PAnsiChar; Chr: AnsiChar): PAnsiChar;

C++

extern DELPHI_PACKAGE char * __fastcall AnsiStrScan(char * Str, char Chr)/* 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 a character in a string.

Call AnsiStrScan to obtain a pointer to the first occurrence of Chr in Str. If Chr does not occur in Str, AnsiStrScan returns nil (Delphi) or NULL (C++). The null terminator is considered to be part of the string.

Unlike the StrScan function, AnsiStrScan works with multi-byte character systems (MBCS).

See Also

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