codetools: identifier completion: added SetString for FPC 2.7.1+, from Ondrej

git-svn-id: trunk@50033 -
This commit is contained in:
mattias 2015-10-11 17:46:08 +00:00
parent 412b1ebab6
commit 2e77744a8c

View File

@ -1353,6 +1353,8 @@ begin
AddCompilerFunction('Seg','var X','LongInt');
AddCompilerProcedure('SetLength','var S:String;NewLength:Integer');
AddCompilerProcedure('SetLength','var A:Array;NewLength:Integer');
if Scanner.Values.IsDefined('FPC_HAS_CPSTRING') then
AddCompilerProcedure('SetString','out S:RawByteString;Buf:PAnsiChar;Len:SizeInt');
AddCompilerFunction('SizeOf','Identifier','Integer');
AddCompilerFunction('Slice','var A:Array;Count:Integer','Array');
AddCompilerProcedure('Str','const X[:Width[:Decimals]];var S:String');