Name
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.

Designer compatibility
Unsupported

Inputs
s
input string
charindex
character index to convert to bytes
Results
idx
byte index of the specified character

Show TOC