You are not logged in.
Pages: 1
Unit: mormot.core.unicode, commit 7584
Function: function TrimLeft(const S: RawUtf8): RawUtf8;
There should be a +1 at the very end of the last line, otherwise one character too few will be returned.
if i = 1 then
result := S
else
FastSetString(result, @PByteArray(S)[i - 1], l - i + 1);
With best regards
Thomas
Offline
You are right.
Please try
https://github.com/synopse/mORMot2/commit/86d368a4
We added some missing regression tests for this function (and also TrimRight):
https://github.com/synopse/mORMot2/commit/f7d46f16
Offline
Pages: 1