Mount Fuji Engine  0.8b
size_t MFString_GetCharacterOffset ( const char *  pString,
int  character 
)

Gets the character offset in bytes from the start of a string, with consideration to UTF8 multibyte encoding.

Parameters
pStringString to find the character offset.
characterCharacter index to find the offset of.
Returns
The character offset in bytes of the specified character index.
Remarks
Takes into account UTF8 multibyte encoding when calculating the character offset.
See Also
MFString_GetNumChars()