This class is used to store a single deferred-length character string. It was designed to work in an array implementation so that a jagged character array could be used in MODFLOW and stored in the memory manager.
More...
|
| procedure, pass(lhs) | assign_to_charstring (lhs, rhs) |
| procedure, pass(rhs) | assign_from_charstring (lhs, rhs) |
| procedure, pass(rhs) | character_eq_charstring (lhs, rhs) |
| procedure, pass(lhs) | charstring_eq_character (lhs, rhs) |
| procedure | charstring_eq_charstring (this, rhs) |
| procedure | write_unformatted (this, unit, iostat, iomsg) |
| procedure | strlen (this) |
| procedure | destroy (this) |
| generic | assignment (lhs, rhs) |
| generic | assignment (lhs, rhs) |
| generic | operator (lhs, rhs) |
| generic | operator (lhs, rhs) |
| generic | operator (this, rhs) |
The overloaded methods allow instances to behave like a regular string and work with intrinsic Fortran character strings. Ideas for the implementation were inspired by: https://gitlab.com/everythingfunctional/iso_varying_string
Definition at line 23 of file CharString.f90.
◆ assign_from_charstring()
| procedure, pass(rhs) characterstringmodule::characterstringtype::assign_from_charstring |
( |
character(len=*), intent(out) | lhs, |
|
|
class(characterstringtype), intent(in) | rhs ) |
◆ assign_to_charstring()
| procedure, pass(lhs) characterstringmodule::characterstringtype::assign_to_charstring |
( |
class(characterstringtype), intent(out) | lhs, |
|
|
character(len=*), intent(in) | rhs ) |
◆ assignment() [1/2]
| generic characterstringmodule::characterstringtype::assignment |
( |
class(characterstringtype), intent(out) | lhs, |
|
|
character(len=*), intent(in) | rhs ) |
◆ assignment() [2/2]
| generic characterstringmodule::characterstringtype::assignment |
( |
character(len=*), intent(out) | lhs, |
|
|
class(characterstringtype), intent(in) | rhs ) |
◆ character_eq_charstring()
| procedure, pass(rhs) characterstringmodule::characterstringtype::character_eq_charstring |
( |
character(len=*), intent(in) | lhs, |
|
|
class(characterstringtype), intent(in) | rhs ) |
◆ charstring_eq_character()
| procedure, pass(lhs) characterstringmodule::characterstringtype::charstring_eq_character |
( |
class(characterstringtype), intent(in) | lhs, |
|
|
character(len=*), intent(in) | rhs ) |
◆ charstring_eq_charstring()
◆ destroy()
| procedure characterstringmodule::characterstringtype::destroy |
( |
class(characterstringtype), intent(inout) | this | ) |
|
◆ operator() [1/3]
| generic characterstringmodule::characterstringtype::operator |
( |
character(len=*), intent(in) | lhs, |
|
|
class(characterstringtype), intent(in) | rhs ) |
◆ operator() [2/3]
| generic characterstringmodule::characterstringtype::operator |
( |
class(characterstringtype), intent(in) | lhs, |
|
|
character(len=*), intent(in) | rhs ) |
◆ operator() [3/3]
◆ strlen()
| procedure characterstringmodule::characterstringtype::strlen |
( |
class(characterstringtype), intent(in) | this | ) |
|
◆ write_unformatted()
| procedure characterstringmodule::characterstringtype::write_unformatted |
( |
class(characterstringtype), intent(in) | this, |
|
|
integer, intent(in) | unit, |
|
|
integer, intent(out) | iostat, |
|
|
character(len=*), intent(inout) | iomsg ) |
◆ charstring
| character(len=:), allocatable characterstringmodule::characterstringtype::charstring |
|
private |
Definition at line 25 of file CharString.f90.
25 character(len=:), allocatable :: charstring
The documentation for this type was generated from the following file: