You are not logged in.
Pages: 1
if IdemPChar(pointer(Ctxt.URL),'abc') then
.....
but always return false?
same response on windows both linux .
Last edited by songshuang (2018-08-09 18:35:43)
Offline
delphi7 , lazarus cross.....
Offline
if IdemPChar(pointer(Ctxt.URL),'abc') then
.....
but always return false?
same response on windows both linux .
function IdemPChar(p: PUTF8Char; up: PAnsiChar): boolean;
// if the beginning of p^ is same as up^ (ignore case - up^ must be already Upper)
var
lStr: string;
begin
lStr := 'ABC';
ShowMessage( BoolToStr( IdemPChar(Pointer(lStr), 'abc' ), True ) );
// False
ShowMessage( BoolToStr( IdemPChar(Pointer(lStr), 'ABC' ), True ) );
// True
ShowMessage( BoolToStr( IdemPChar(Pointer(lStr), 'Abc' ), True ) );
// False
ShowMessage( BoolToStr( IdemPChar(Pointer(lStr), PAnsiChar(UpperCase('Abc')) ), True ) );
// True
end;
Offline
i see.., thanks very much
Offline
others,
the amount of pascal user is A little pitiful!, i m shy to say i m older psacal hands!,but but...
the pascal is wonderful because have mORMOT!
mOrMot is great!.
Offline
Pages: 1