segment_t Derived Type

type, public :: segment_t

This derived-type represents a contiguous range of the Unicode character set as a min and max value, providing an effective way to represent ranges of characters when building automata where a range characters share the same transition destination.


Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: max = UTF8_CODE_MAX+2
integer(kind=int32), public :: min = UTF8_CODE_MAX+2

Type-Bound Procedures

procedure, public :: print => segment_for_print

  • private function segment_for_print(seg) result(res)

    Converts a segment to a printable string representation.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(segment_t), intent(in) :: seg

    Return Value character(len=:), allocatable

procedure, public :: validate => segment_is_valid

  • private pure elemental function segment_is_valid(self) result(res)

    Checks if a segment is valid.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(segment_t), intent(in) :: self

    Return Value logical