Module utils

Source

Functionsยง

do_expand_tabs
Replace tabs by spaces in the input line. Correctly handle multi-bytes characters. This assumes that line does not contain any line breaks (if it does, the result is undefined).
do_write_line
Write a single line to an output stream, expanding tabs to space if necessary. This assumes that line does not contain any line breaks (if it does and tabs are to be expanded to spaces, the result is undefined).
get_modification_time
Retrieves the modification time of the input file specified by file path If an error occurs, it returns the current system time