string_format_kind

Which formatting language a format string is written in.

Declaration

Syntax

string_format_kind
    = FormatFortran
    | FormatC
    | FormatPythonPercent
    | FormatPythonFString
    | FormatPythonFormat

Values

Value

Meaning

FormatFortran

Fortran edit descriptors, "(f8.3,i4)".

FormatC

C printf conversions, "%f: %d".

FormatPythonPercent

Python’s % operator, "%f: %d" % (a, b).

FormatPythonFString

an f-string, f"{a}: {b}".

FormatPythonFormat

str.format, "{}: {}".format(a, b).

Return values

None. An enumeration value is not evaluated.

Description

StringFormat carries this so that one node serves every frontend: the format string is interpreted according to the language it was written in.

See Also

StringFormat, Print, FileWrite