The Conroy & Conroy Subroutine Library (2021.3 edition)
Pos
What: integer function
File:
Layer: 1
Format: result = Pos( substring, string )
Platforms: C++, C#, Javascript, Pascal, Python
This returns the position of substring within string. If not found, the result is
one less than the lowest string index. In Pascal, this is only defined
if the version of Pascal being used does not provide the function.