character_array_t Derived Type

type, public :: character_array_t

This derived-type contains single UTF-8 character and two flags. It will be used to parse character class patterns enclosed in square brackets. is_escaped is true when the character has preceding backslash. is_hyphenated is true when the character has following hyphen except for First character. seg_size is the number of segments the component represents, which is 1 for normal characters and greater than 1 for most shorthand escape sequences.


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: c
logical, public :: is_escaped = .false.
logical, public :: is_hyphenated = .false.
logical, public :: is_subtract = .false.
integer, public :: seg_size = 0