lower_char Function

public elemental function lower_char(c)

c in lowercase (ASCII letters only; other bytes, including UTF-8, are unchanged).

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in) :: c

the character

Return Value character(len=1)


Called by

proc~~lower_char~~CalledByGraph proc~lower_char lower_char proc~lex_number lex_number proc~lex_number->proc~lower_char proc~lowercase lowercase proc~lowercase->proc~lower_char proc~same_token same_token proc~same_token->proc~lower_char proc~code_signature code_signature proc~code_signature->proc~lowercase proc~parse_source parse_source proc~code_signature->proc~parse_source proc~comment_kind comment_kind proc~comment_kind->proc~lowercase proc~dotop_end dotop_end proc~dotop_end->proc~lowercase proc~same_code same_code proc~same_code->proc~same_token proc~same_code->proc~code_signature proc~tokenize tokenize proc~same_code->proc~tokenize proc~tokenize->proc~lex_number proc~tokenize->proc~comment_kind proc~tokenize->proc~dotop_end proc~format_text format_text proc~format_text->proc~tokenize proc~convert_relational convert_relational proc~format_text->proc~convert_relational proc~format_pass format_pass proc~format_text->proc~format_pass proc~limit_diagnostics limit_diagnostics proc~format_text->proc~limit_diagnostics proc~long_code_lines long_code_lines proc~format_text->proc~long_code_lines proc~sort_use sort_use proc~format_text->proc~sort_use proc~split_long_lines split_long_lines proc~format_text->proc~split_long_lines proc~relayout relayout proc~format_text->proc~relayout proc~parse_source->proc~tokenize proc~convert_relational->proc~parse_source proc~format_pass->proc~parse_source proc~limit_diagnostics->proc~parse_source proc~long_code_lines->proc~parse_source proc~process_text process_text proc~process_text->proc~format_text proc~sort_use->proc~parse_source proc~split_long_lines->proc~parse_source proc~process_file process_file proc~process_file->proc~process_text proc~process_stdin process_stdin proc~process_stdin->proc~process_text proc~relayout->proc~format_pass proc~run run proc~run->proc~process_file proc~run->proc~process_stdin

Source Code

elemental character function lower_char(c)
    !! `c` in lowercase (ASCII letters only; other bytes, including UTF-8, are unchanged).
    character, intent(in) :: c   !! the character
    if (c >= 'A' .and. c <= 'Z') then
        lower_char = achar(iachar(c) + 32)
    else
        lower_char = c
    end if
end function lower_char