ASCII encoding/decoding procedures and predefined ASCII characters.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=1), | public, | parameter | :: | ASCII_NUL | = | achar(0) |
Null. |
character(len=1), | public, | parameter | :: | ASCII_SOH | = | achar(1) |
Start of heading. |
character(len=1), | public, | parameter | :: | ASCII_STX | = | achar(2) |
Start of text. |
character(len=1), | public, | parameter | :: | ASCII_ETX | = | achar(3) |
End of text. |
character(len=1), | public, | parameter | :: | ASCII_EOT | = | achar(4) |
End of transmission. |
character(len=1), | public, | parameter | :: | ASCII_ENQ | = | achar(5) |
Enquiry. |
character(len=1), | public, | parameter | :: | ASCII_ACK | = | achar(6) |
Acknowledge. |
character(len=1), | public, | parameter | :: | ASCII_BEL | = | achar(7) |
Bell. |
character(len=1), | public, | parameter | :: | ASCII_BS | = | achar(8) |
Backspace. |
character(len=1), | public, | parameter | :: | ASCII_TAB | = | achar(9) |
Horizontal tab. |
character(len=1), | public, | parameter | :: | ASCII_LF | = | achar(10) |
NL line feed, new line. |
character(len=1), | public, | parameter | :: | ASCII_VT | = | achar(11) |
Vertical tab. |
character(len=1), | public, | parameter | :: | ASCII_FF | = | achar(12) |
NP form feed, new page. |
character(len=1), | public, | parameter | :: | ASCII_CR | = | achar(13) |
Carriage return. |
character(len=1), | public, | parameter | :: | ASCII_SO | = | achar(14) |
Shift out. |
character(len=1), | public, | parameter | :: | ASCII_SI | = | achar(15) |
Shift in. |
character(len=1), | public, | parameter | :: | ASCII_DLE | = | achar(16) |
Data link escape. |
character(len=1), | public, | parameter | :: | ASCII_DC1 | = | achar(17) |
Device control 1. |
character(len=1), | public, | parameter | :: | ASCII_DC2 | = | achar(18) |
Device control 2. |
character(len=1), | public, | parameter | :: | ASCII_DC3 | = | achar(19) |
Device control 3. |
character(len=1), | public, | parameter | :: | ASCII_DC4 | = | achar(20) |
Device control 4. |
character(len=1), | public, | parameter | :: | ASCII_NAK | = | achar(21) |
Negative acknowledge. |
character(len=1), | public, | parameter | :: | ASCII_SYN | = | achar(22) |
Synchronous idle. |
character(len=1), | public, | parameter | :: | ASCII_ETB | = | achar(23) |
End of trans. block. |
character(len=1), | public, | parameter | :: | ASCII_CAN | = | achar(24) |
Cancel. |
character(len=1), | public, | parameter | :: | ASCII_EM | = | achar(25) |
End of medium. |
character(len=1), | public, | parameter | :: | ASCII_SUB | = | achar(26) |
Substitute. |
character(len=1), | public, | parameter | :: | ASCII_ESC | = | achar(27) |
Escape. |
character(len=1), | public, | parameter | :: | ASCII_FS | = | achar(28) |
File separator. |
character(len=1), | public, | parameter | :: | ASCII_GS | = | achar(29) |
Group separator. |
character(len=1), | public, | parameter | :: | ASCII_RS | = | achar(30) |
Record separator. |
character(len=1), | public, | parameter | :: | ASCII_US | = | achar(31) |
Unit separator. |
character(len=*), | public, | parameter | :: | CR_LF | = | ASCII_CR//ASCII_LF |
Carriage return + line feed ( |
Escapes given character string by replacing ASCII control characters
by an escape string. For instance, character ASCII_LF
(new line)
is turned into literal \n
. Non-printable characters without common
literal are replaced with \x
plus ASCII character code in
hexadecimal, from \x00
to \x1F
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output string.
Returns whether character is alpha letter.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is alpha-numeric.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is space or tabular.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is control character.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is digit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is hex digit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is lower-case.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is an octal digit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is printable.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is upper-case.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns whether character is white space (either SPACE
, TAB
,
LF
, VT
, FF
, or CR
).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=1), | intent(in) | :: | a |
Character to check. |
Returns unescaped string of given string with escaped ASCII characters.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str |
Input string. |
Output string.