Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array.
Initializes a new instance of the string class
type(string) function string(character(:) chars)
| [in] | chars |
Examples
Remarks
Definition at line 39 of file String.f90.
Variables | |
| character(:), allocatable | chars |
| Variable length character array. | |
Private Member Functions | |
| procedure, pass, private | character_assign_string (lhs, rhs) |
| Assignment overloading. Assign a character array to a string. | |
| procedure, pass, private | string_assign_character (lhs, rhs) |
| Assignment overloading. Assign a string to a character array. | |
| generic, public assignment | ( | class(string), intent(inout) | lhs, |
| character(*), intent(in) | rhs ) |
Assignment overloading. Assign a character array to a string.
| [in,out] | lhs | string |
| [in] | rhs | character(*) |
Examples
Remarks
Definition at line 45 of file String.f90.
| generic, public assignment | ( | character(:), intent(inout), allocatable | lhs, |
| class(string), intent(in) | rhs ) |
Assignment overloading. Assign a string to a character array.
| [in,out] | lhs | character(*), allocatable |
| [in] | rhs | string |
Examples
Remarks
Definition at line 45 of file String.f90.
|
private |
Assignment overloading. Assign a character array to a string.
| [in,out] | lhs | string |
| [in] | rhs | character(*) |
Examples
Remarks
Definition at line 43 of file String.f90.
| procedure, pass, public len | ( | class(string), intent(in) | this | ) |
Length of the string entity.
| [in] | this | string |
Examples
Remarks
Definition at line 42 of file String.f90.
|
private |
Assignment overloading. Assign a string to a character array.
| [in,out] | lhs | character(*), allocatable |
| [in] | rhs | string |
Examples
Remarks
Definition at line 44 of file String.f90.