(PDB-708) generalize in-clause-* functions

Signed-off-by: Ken Barber <ken@bob.sh>