Contains procedures related to characters and character arrays, such as converting integers to characters
convert seconds to hours, minutes, seconds
Given an integer 's' in seconds, convert to the format hh:mm:ss.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | s |
Given an integer in seconds, convert to the format hh:mm:ss. Input is a real, gets converted to int
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | s_re |
Writes the value i to a character as I0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | i |
Writes the value i to a character as I0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | i(:) |
Returns number of characters an integer will occupy
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
Takes an integer dJ and results the character representing half of it. dJ2char(2) -> "1" dJ2char(3) -> "3/2"
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | dJ |
Twice the angular momentum |
The output character representation
returns a lower case character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | chr |
returns an upper case character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | chr |
Returns the subscript version of the integer x
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | x |
Returns the superscript version of the integer x
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | x |
Add a trailing character trail to the character chr if it is not already the
last character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=:), | intent(inout), | allocatable | :: | chr | ||
| character(len=*), | intent(in) | :: | trail |
converts a character to lower case
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | chr |
converts a character to upper case
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | chr |