Pos - Converts Source to shortstring if SubStr is shortstring
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
There should be a new overloaded function
Function Pos(const SubStr: shortstring; Source: ansistring): SizeInt;
Currently Source will be converted to shortstring if SubStr is shortstring although Source is ansistring. The result is it will not match characters behind 255 bytes in the Source.
Additional information:
Reporter: Jakub Klos
EMail: jakub at icewarp dot com
Mantis conversion info:
- Mantis ID: 6092
- OS: All
- Fixed in version: 2.0.2