Returns a pointer to first occurrence of a character in a string.
function AnsiStrScan(Str: PChar; Chr: Char): PChar;
const char * AnsiStrScan(const char * Str, Char Chr);
SysUtils
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).
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|