Function

GLib-2.0GLibstrreverse

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

    Note that g_strreverse() doesn't work on UTF-8 strings containing multibyte characters. For that purpose, use GLib.utf8_strreverse.

    Parameters

    • string: string

      the string to reverse

    Returns string

    the string, reversed in place