Some function in vim return a byte index instead of a character index (e.g. match()). If the matched string contains multibyte characters this byte index differs from the character index.
Does vim provide a way to calculate the character index from such a byte index?