Function papergrid::util::split_at_pos
source · [−]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.