TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Converts from a pointer to position within a string to an integer character offset.
Since 2.10, this function allows pos to be before str, and returns a negative offset in this case.
pos
str
a UTF-8 encoded string
a pointer to a position within str
the resulting character offset
Converts from a pointer to position within a string to an integer character offset.
Since 2.10, this function allows
posto be beforestr, and returns a negative offset in this case.