pub fn split_at_pos(s: &str, pos: usize) -> (usize, usize, usize)
Expand description

The function splits a string in the position and returns a exact number of bytes before the position and in case of a split in an unicode grapheme a width of a character which was tried to be splited in.

BE AWARE: pos is expected to be in bytes.