Show: Object Pascal C++
Display Preferences

System.SysUtils.StrScan

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function StrScan(const Str: PAnsiChar; Chr: AnsiChar): PAnsiChar;
function StrScan(const Str: PWideChar; Chr: WideChar): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrScan _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str, char Chr)/* overload */;

Properties

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

Description

Warning: Ansi version of StrScan is deprecated. Please use AnsiStrings unit.

Returns a pointer to the first occurrence of a specified character in a string.

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

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

See Also

Code Examples


Personal tools
Translations