selected_char_kind

Date:

02-06-2023

NAME

SELECTED_CHAR_KIND - returns the value of the kind type parameter used by the specified character type

SYNOPSIS

SELECTED_CHAR_KIND (name)

STANDARDS

Fortran 2008

DESCRIPTION

The SELECTED_CHAR_KIND intrinsic returns the value of the kind type parameter used for the specified character type. If the type is supported, the intrinsic returns the value of the kind type parameter for that type. If the type is not supported, the intrinsic returns -1. You could use this intrinsic, for example, to inquire if a certain character kind type parameter is supported.

The name argument specifies the character type as a string that you want to inquire about and ignores case and trailing blanks. Use one of the following strings for name to find the value of the kind type parameter of the indicated character type:

“DEFAULT”

Use for data of character type default.

“ASCII”

Use for data of character type ASCII.

“ISO_10646”

Use for data of character type ISO/IEC 18 10646-1:2000 UCS-4. Cray does not support ISO_10646 characters at this time.

NOTES

The SELECTED_CHAR_KIND intrinsic is a transformational function.

EXAMPLES

The SELECTED_CHAR_KIND intrinsic function generates the following results:

  • SELECTED_CHAR_KIND(“DEFAULT”) yields 1.

  • SELECTED_CHAR_KIND(“ASCII”) yields 1.

  • SELECTED_CHAR_KIND(“ISO_10646”) yields -1.

SEE ALSO

kind(3i)