IDEIntf: TrimCustomOptions: trim start and end

git-svn-id: trunk@36318 -
This commit is contained in:
mattias 2012-03-25 15:42:34 +00:00
parent c6e0578538
commit 98e9e68885

View File

@ -2239,12 +2239,8 @@ begin
end;
function TBaseCompilerOptions.TrimCustomOptions(o: string): string;
var
i: Integer;
begin
Result:=Trim(o);
for i:=length(Result) downto 1 do
if Result[i] in [#0..#31,#127] then System.Delete(Result,i,1);
Result:=SpecialCharsToSpaces(o,true);
end;
function TBaseCompilerOptions.GetOptionsForCTDefines: string;