Function

GLib-2.0GLibstr_has_prefixSince 2.2

  • Looks whether the string str begins with prefix.

    Parameters

    • str: string

      a string to look in

    • prefix: string

      the prefix to look for

    Returns boolean

    true if str begins with prefix, false otherwise

    2.2