Split a string str at each occurrence of the character c.
Split a string str at the first occurrence of the character c.
- raises Not_found
if the separator isn't found.
val handle_input : buffer:Stdlib.Buffer.t -> input:string -> string listGiven a buffer and a string input, append the input to the buffer, return all whole lines present in the buffer, and reinitialise the buffer to contain only the substring which follows all the whole lines.