This is a well-tested UTF-8 encoder / decoder with some distinctive features:
Structure of the location in the source code
Tool triat for srcpos, Calculate Loc / Pos
Derive for srcpos_get