is_first_byte_of_character_array Subroutine

public pure subroutine is_first_byte_of_character_array(str, array, length)

This subroutine determines if each character in a given string is the first byte of a UTF-8 multibyte character. It takes a UTF-8 string and return a logical array indicating for each position if it is the first byte.

Arguments

Type IntentOptional Attributes Name
character(len=length), intent(in) :: str
logical, intent(inout), allocatable :: array(:)
integer(kind=int32), intent(in) :: length