インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド
Elemental Intrinsic Function (Generic): Returns the position of a character in the processor's character set.
result = ICHAR (c [, kind])
c |
(Input) Must be of type character of length 1. |
kind |
(Input; optional) Must be a scalar integer initialization expression. |
The result type is integer. If kind is present, the kind parameter of the result is that specified by kind; otherwise, the kind parameter of the result is that of default integer.
The result value is the position of c in the processor's character set. c is in the range zero to n - 1, where n is the number of characters in the character set.
For any characters C and D (capable of representation in the processor), C .LE. D is true only if ICHAR(C) .LE. ICHAR(D) is true, and C .EQ. D is true only if ICHAR(C) .EQ. ICHAR(D) is true.