GString

    A built-in type for strings.

    String.swift:13
    class GString

    This is the built-in string Variant type (and the one used by GDScript). Strings may contain any number of Unicode characters, and expose methods useful for manipulating and generating strings. Strings are reference-counted and use a copy-on-write approach (every modification to a string returns a new String), so passing them around is cheap in resources.

    Some string methods have corresponding variations. Variations suffixed with n (countn(what:from:to:), findn(what:from:), replacen(what:forwhat:), etc.) are case-insensitive (they make no distinction between uppercase and lowercase letters). Method variations prefixed with r (rfind(what:from:), rsplit(delimiter:allowEmpty:maxsplit:), etc.) are reversed, and start from the end of the string, instead of the beginning.

    Citizens in SwiftGodot

    Conformances

    Typealiases

    Type members

    Instance members

    Type features

    Instance features