check_utf8_sequence Subroutine

public subroutine check_utf8_sequence(text, start_pos, is_valid, seq_len)

Check if UTF-8 sequence is valid and return its length

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
integer, intent(in) :: start_pos
logical, intent(out) :: is_valid
integer, intent(out) :: seq_len