Factor findPosH into an exported interface.

Add tests.
Export and document findPosV

Issue #1235