Function

Gdk-4.0Gdkintern_mime_type

  • Canonicalizes the given mime type and interns the result.

    If string is not a valid mime type, null is returned instead. See RFC 2048 for the syntax if mime types.

    Parameters

    • string: string

      string of a potential mime type

    Returns string

    An interned string for the canonicalized mime type or null if the string wasn't a valid mime type