getbyteindex -- convert from character to byte index (V7.0)
Synopsis
int idx = getbyteindex(const char *s, int charindex);
Function
Returns the byte index of the character specified in charindex. Character indices are
counted from 0. String s must be a valid UTF-8 string and charindex must point to
a valid character index.