StringClass Module



Contents


Variables

TypeVisibility AttributesNameInitial
integer(kind=int32), public, parameter:: ascii =selected_char_kind('ASCII')

Interfaces

public interface operator(+)

  • public function addstring(x, y) result(z)

    Arguments

    Type IntentOptional AttributesName
    type(string_), intent(in) :: x
    type(string_), intent(in) :: y

    Return Value type(string_)

  • public function addstringchar(x, y) result(z)

    Arguments

    Type IntentOptional AttributesName
    type(string_), intent(in) :: x
    character(len=*), intent(in) :: y

    Return Value type(string_)

  • public function addcharstring(y, x) result(z)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: y
    type(string_), intent(in) :: x

    Return Value type(string_)

public interface assignment(=)

  • public subroutine assignstring(x, y)

    Arguments

    Type IntentOptional AttributesName
    type(string_), intent(out) :: x
    character(len=*), intent(in) :: y

public interface print

  • public subroutine printString(this)

    Arguments

    Type IntentOptional AttributesName
    class(string_), intent(in) :: this
  • public subroutine printStringVec(this)

    Arguments

    Type IntentOptional AttributesName
    class(string_), intent(in) :: this(:)
  • public subroutine printStringArray(this)

    Arguments

    Type IntentOptional AttributesName
    class(string_), intent(in) :: this(:,:)

Derived Types

type, public :: string_

Components

TypeVisibility AttributesNameInitial
character(len=:), public, allocatable:: all

Type-Bound Procedures

procedure, public :: char => charString
procedure, public :: str => charString
procedure, public :: print => printString
procedure, public :: lower => lowerString
procedure, public :: upper => upperString

Functions

public function ascii_lowercaseString(this) result(ret)

Arguments

Type IntentOptional AttributesName
class(string_), intent(in) :: this

Return Value character(len=:), allocatable

public function charString(this) result(ret)

Arguments

Type IntentOptional AttributesName
class(string_), intent(in) :: this

Return Value character(len=:), allocatable

public function addstring(x, y) result(z)

Arguments

Type IntentOptional AttributesName
type(string_), intent(in) :: x
type(string_), intent(in) :: y

Return Value type(string_)

public function addstringchar(x, y) result(z)

Arguments

Type IntentOptional AttributesName
type(string_), intent(in) :: x
character(len=*), intent(in) :: y

Return Value type(string_)

public function addcharstring(y, x) result(z)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: y
type(string_), intent(in) :: x

Return Value type(string_)

public function lowerString(this) result(ret)

Arguments

Type IntentOptional AttributesName
class(string_), intent(inout) :: this

Return Value type(string_)

public function upperString(this) result(ret)

Arguments

Type IntentOptional AttributesName
class(string_), intent(inout) :: this

Return Value type(string_)


Subroutines

public subroutine assignstring(x, y)

Arguments

Type IntentOptional AttributesName
type(string_), intent(out) :: x
character(len=*), intent(in) :: y

public subroutine printString(this)

Arguments

Type IntentOptional AttributesName
class(string_), intent(in) :: this

public subroutine printStringVec(this)

Arguments

Type IntentOptional AttributesName
class(string_), intent(in) :: this(:)

public subroutine printStringArray(this)

Arguments

Type IntentOptional AttributesName
class(string_), intent(in) :: this(:,:)