diff options
author | Erich Eckner <git@eckner.net> | 2017-03-25 16:23:19 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-03-25 16:23:19 +0100 |
commit | 8c2e9fadc8ec9e9db98d219b6de966a39fd26b7d (patch) | |
tree | 8a71f4e3f82706c1b3d9ab194f04ca0a3f2f360d | |
parent | 4ad8b1023f4dd6a2d8132633c461a9e05cad0b2c (diff) | |
download | units-8c2e9fadc8ec9e9db98d219b6de966a39fd26b7d.tar.xz |
mystringlistunit: addWithLineBreaks neu
-rw-r--r-- | mystringlistunit.pas | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas index 7d63462..e3c54fe 100644 --- a/mystringlistunit.pas +++ b/mystringlistunit.pas @@ -41,6 +41,7 @@ type procedure subst(regex,ersatz: string); procedure dump(pro: tProtokollant; prefix: string); procedure nichtInSubRoutine(s: string); + procedure addWithLineBreaks(s: string); end; procedure _del(var s: string; p,c: longint); inline; // identisch zu delete(s,p,c) -- lediglich um delete innerhalb von tMyStringlist verfügbar zu haben @@ -611,6 +612,12 @@ begin srNoGo.add(s); end; +procedure tMyStringList.addWithLineBreaks(s: string); +begin + while s<>'' do + add(erstesArgument(s,#13,false)); +end; + // allgemeine Funktionen ******************************************************* procedure _del(var s: string; p,c: longint); |