string_ Derived Type

type, public :: string_

Derived type for string object.


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: all

Type-Bound Procedures

procedure, public :: char => charString

It returns the string to array of character.

  • public function charString(this) result(ret)

    Arguments

    Type IntentOptional Attributes Name
    class(string_), intent(in) :: this

    Return Value character(len=:), allocatable

procedure, public :: str => charString

It initializes the string by an array of character.

  • public function charString(this) result(ret)

    Arguments

    Type IntentOptional Attributes Name
    class(string_), intent(in) :: this

    Return Value character(len=:), allocatable

procedure, public :: print => printString

It shows the string in the terminal.

  • public subroutine printString(this)

    Arguments

    Type IntentOptional Attributes Name
    class(string_), intent(in) :: this

procedure, public :: lower => lowerString

It converts the CAPITAL to the lowercase

  • public function lowerString(this) result(ret)

    Arguments

    Type IntentOptional Attributes Name
    class(string_), intent(inout) :: this

    Return Value type(string_)

procedure, public :: upper => upperString

It converts the lowercase to the CAPITAL

  • public function upperString(this) result(ret)

    Arguments

    Type IntentOptional Attributes Name
    class(string_), intent(inout) :: this

    Return Value type(string_)