You are not logged in.
Pages: 1
Hello,
It appears that there is a bug in the OnlyChar function (mormot.core.unicode.pas).
Instead of
for i := 0 to SizeOf(only) do
there should be
for i := 0 to SizeOf(only)-1 do
Otherwise, an exception occurs.
Sergey
Offline
You are right.
Please try https://github.com/synopse/mORMot2/commit/e569de3a
(which would also be slightly faster)
I have also included some explicit regression tests to OnlyChar() and TrimChar():
https://github.com/synopse/mORMot2/commit/21c4fbd8
Offline
Pages: 1