Module Mikmatch.Fixed

module Fixed: sig .. end

This module provides some functions which are useful for manipulating files with fields of fixed width.

val chop_spaces : string -> string

chop_spaces s returns a string where the leading and trailing spaces are removed.

val int : string -> int

int s reads an int from a string where leading and trailing spaces are allowed. Equivalent to Pervasives.int_of_string (chop_spaces s).

val float : string -> float

float s reads an float from a string where leading and trailing spaces are allowed. Equivalent to Pervasives.float_of_string (chop_spaces s).