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
Since 2.30
Copies a substring out of a UTF-8 encoded string. The substring will contain end_pos - start_pos characters.
end_pos
start_pos
Since GLib 2.72, -1 can be passed to end_pos to indicate the end of the string.
-1
a UTF-8 encoded string
a character offset within str
str
another character offset within str, or -1 to indicate the end of the string
a newly allocated copy of the requested substring. Free with GLib.free when no longer needed.
2.30
Copies a substring out of a UTF-8 encoded string. The substring will contain
end_pos-start_poscharacters.Since GLib 2.72,
-1can be passed toend_posto indicate the end of the string.