dm_ascii_escape Function

public pure function dm_ascii_escape(str) result(res)

Escapes given character string by replacing ASCII control characters by an escape string. For instance, character ASCII_LF (new line) is turned into literal \n. Non-printable characters without common literal are replaced with \x plus ASCII character code in hexadecimal, from \x00 to \x1F.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Input string.

Return Value character(len=:), allocatable

Output string.


Called by

proc~~dm_ascii_escape~~CalledByGraph proc~dm_ascii_escape dm_ascii_escape proc~dm_api_status_from_string dm_api_status_from_string proc~dm_api_status_from_string->proc~dm_ascii_escape proc~dm_arg_parse dm_arg_parse proc~dm_arg_parse->proc~dm_ascii_escape proc~dm_error_out dm_error_out proc~dm_arg_parse->proc~dm_error_out proc~dm_error_out->proc~dm_ascii_escape proc~dm_test_dummy_request dm_test_dummy_request proc~dm_test_dummy_request->proc~dm_ascii_escape proc~dm_tty_read_request dm_tty_read_request proc~dm_tty_read_request->proc~dm_ascii_escape interface~dm_tty_read dm_tty_read proc~dm_tty_read_request->interface~dm_tty_read interface~dm_perror dm_perror interface~dm_perror->proc~dm_error_out interface~dm_test_dummy dm_test_dummy interface~dm_test_dummy->proc~dm_test_dummy_request proc~dm_test_dummy_observ dm_test_dummy_observ interface~dm_test_dummy->proc~dm_test_dummy_observ interface~dm_tty_read->proc~dm_tty_read_request proc~dm_arg_has dm_arg_has proc~dm_arg_has->proc~dm_arg_parse proc~dm_arg_read dm_arg_read proc~dm_arg_read->proc~dm_arg_parse proc~dm_arg_read->proc~dm_error_out proc~dm_arg_read->proc~dm_arg_has proc~dm_config_open dm_config_open proc~dm_config_open->proc~dm_error_out proc~dm_geocom_type_validated dm_geocom_type_validated proc~dm_geocom_type_validated->proc~dm_error_out proc~dm_test_dummy_observ->proc~dm_test_dummy_request