strreverse

fnstring strreverse(string string_)

Reverses all of the bytes in a string. For example, g_strreverse ("abcdef") will result in "fedcba".

Note that [glib.global.strreverse] doesn't work on UTF-8 strings containing multibyte characters. For that purpose, use funcGLib.utf8_strreverse.

Parameters

string_the string to reverse

Returns

the string, reversed in place