I'd like to have a Pos() adapted to be used specifying boundaries within the Source string, rather than have it perform the search in the entire data. F.e: NewPos(SubStr, SourceString, Offset, EndingOffset)
It should be a modification of the current ASM FastCode implementation in the latest Delphi XE3, so that it will be faster than a PurePascal implementation (and obviously also faster than using a simple Pos or PosEx). Also, it should work with Unicode strings.