Module to convert int, real, or bool to string and concatenate int, real, bool, and string itself to string
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | MAX_STRING_LEN | = | 256 | |
integer, | private | :: | dec_ | = | 6 | ||
integer, | private | :: | exp_ | = | -1 | ||
character, | private | :: | form_ | = | 'F' | ||
logical, | private | :: | reset_flag | = | .FALSE. |
Convert integer to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
Convert real number to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r |
Convert boolean variable to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | b |
Join two string into one string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s1 | |||
character(len=*), | intent(in) | :: | s2 |
Join a string to a integer and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
integer, | intent(in) | :: | i |
Join a integer to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i | |||
character(len=*), | intent(in) | :: | s |
Join a string to a real number and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
real, | intent(in) | :: | r |
Join a real number to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r | |||
character(len=*), | intent(in) | :: | s |
Join a string to a boolean and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
logical, | intent(in) | :: | b |
Join a boolean to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | b | |||
character(len=*), | intent(in) | :: | s |
Return the "string length of an integer"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
Return the "string length of a real"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r |
Convert integer to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
Convert real number to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r |
Convert boolean variable to string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | b |
Join two string into one string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s1 | |||
character(len=*), | intent(in) | :: | s2 |
Join a string to a integer and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
integer, | intent(in) | :: | i |
Join a integer to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i | |||
character(len=*), | intent(in) | :: | s |
Join a string to a real number and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
real, | intent(in) | :: | r |
Join a real number to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r | |||
character(len=*), | intent(in) | :: | s |
Join a string to a boolean and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s | |||
logical, | intent(in) | :: | b |
Join a boolean to a string and gives result as a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | b | |||
character(len=*), | intent(in) | :: | s |
Return the "string length of an integer"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i |
Return the "string length of a real"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | r |
Change format specifier for reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | d | ||
integer, | intent(in), | optional | :: | e | ||
character, | intent(in), | optional | :: | f |
Display the contents of the string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=MAX_STRING_LEN), | intent(in) | :: | s |