No it is already in 3.0.4. (Otherwise it would not compile). It may be that there was a bug which should be fixed in FPC 3.2.0.
Ok. i just see source and is there 3.0.4. Thank for say Thaddy
Anyway your code compiles and works with 3.2.0 and trunk 3.3.1-41807. I tested on Raspbian Jessie.
Many thank for try 3.2.0. I now usage more better solution and not use LastIndexOf
I also try 3.2.0 and write that work. I solve thread. Fix is 3.2.0 not use LastIndexOf fpc 3.0.4