mirror of https://gitlab.com/basile.b/dexed.git
add TStrings.strictText
This commit is contained in:
parent
f654811f37
commit
f3fadfffe0
|
@ -84,6 +84,11 @@ type
|
||||||
function normalizePath: string;
|
function normalizePath: string;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
TStringsHelper = class helper for TStrings
|
||||||
|
// Same as text but without the additional line terminator.
|
||||||
|
function strictText: string;
|
||||||
|
end;
|
||||||
|
|
||||||
(**
|
(**
|
||||||
* TProcess with assign() 'overriden'.
|
* TProcess with assign() 'overriden'.
|
||||||
*)
|
*)
|
||||||
|
@ -456,6 +461,12 @@ begin
|
||||||
exit(TrimFilename(self));
|
exit(TrimFilename(self));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TStringsHelper.strictText: string;
|
||||||
|
begin
|
||||||
|
result := self.Text;
|
||||||
|
setLength(result, result.length - self.LineBreak.length);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TProcessEx.Assign(value: TPersistent);
|
procedure TProcessEx.Assign(value: TPersistent);
|
||||||
var
|
var
|
||||||
src: TProcess;
|
src: TProcess;
|
||||||
|
|
Loading…
Reference in New Issue