SELECTED_CHAR_KIND intrinsic function
Standard: F77 F90 F95 F2003 F2008

NAME : scalar Character with default kind;

Result : scalar Integer with default kind.

The SELECTED_CHAR_KIND intrinsic function returns the kind number for the Character type that provides the named character set. Standard character set names are 'DEFAULT' (for default Character), 'ASCII' (for ISO 646 characters) and 'ISO_10646' (for the 32-bit encoding of ISO/IEC 10646 characters). The ISO/IEC 10646 character set is also known as Unicode.

The NAG Fortran Compiler additionally recognises 'JIS_0213' (for JIS X 0213 characters) and 'UCS_2' (for the 16-bit encoding of ISO/IEC 10646 characters); it also accepts 'JIS_0208' and 'SHIFT_JIS' as synonyms for 'JIS_0213', and 'UCS_4' as a synonym for 'ISO_10646'.

If the name is not recognised, or the character set is not supported, the value −1 is returned.

Component definition statement, CHARACTER type, SELECTED_INT_KIND intrinsic function, SELECTED_REAL_KIND intrinsic function, Type declaration statement