Translations:Extension:Scribunto/Lua reference manual/1714/en

See $1 for a similar function in which the offsets are characters rather than bytes.