Provide option TStringSplitOptions.ExcludeLastEmpty
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
In FPC, the TStringSplitOptions consists of the elements (None, ExcludeEmpty). In recent Delphi, however, there is a third option ExcludeLastEmpty.
The provided patch implements this new option also in FPC.
Additional information:
I added a test project which checks various cases of empty parts inside the test string passed to the Split() function. After application of the patch all tests are passed (like in Delphi).
Mantis conversion info:
- Mantis ID: 37898
- Fixed in version: 3.3.1
- Fixed in revision: 47069 (#be371d90)
- Target version: 3.2.2