HPCC-9707 Correct indentation/move inline functions to main file

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>