maybe Function

private pure function maybe(string) result(maybe_string)

Safely return the character sequences represented by the string

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: string

Return Value character(len=slen)


Called by

proc~~maybe~~CalledByGraph proc~maybe maybe proc~adjustl_string adjustl_string proc~adjustl_string->proc~maybe proc~adjustr_string adjustr_string proc~adjustr_string->proc~maybe proc~char_string char_string proc~char_string->proc~maybe proc~concat_char_string concat_char_string proc~concat_char_string->proc~maybe proc~concat_string_char concat_string_char proc~concat_string_char->proc~maybe proc~concat_string_string concat_string_string proc~concat_string_string->proc~maybe proc~gt_char_string gt_char_string proc~gt_char_string->proc~maybe proc~gt_string_char gt_string_char proc~gt_string_char->proc~maybe proc~gt_string_string gt_string_string proc~gt_string_string->proc~maybe proc~index_char_string index_char_string proc~index_char_string->proc~maybe proc~index_string_char index_string_char proc~index_string_char->proc~maybe proc~index_string_string index_string_string proc~index_string_string->proc~maybe proc~lge_char_string lge_char_string proc~lge_char_string->proc~maybe proc~lge_string_char lge_string_char proc~lge_string_char->proc~maybe proc~lge_string_string lge_string_string proc~lge_string_string->proc~maybe proc~lgt_char_string lgt_char_string proc~lgt_char_string->proc~maybe proc~lgt_string_char lgt_string_char proc~lgt_string_char->proc~maybe proc~lgt_string_string lgt_string_string proc~lgt_string_string->proc~maybe proc~lle_char_string lle_char_string proc~lle_char_string->proc~maybe proc~lle_string_char lle_string_char proc~lle_string_char->proc~maybe proc~lle_string_string lle_string_string proc~lle_string_string->proc~maybe proc~llt_char_string llt_char_string proc~llt_char_string->proc~maybe proc~llt_string_char llt_string_char proc~llt_string_char->proc~maybe proc~llt_string_string llt_string_string proc~llt_string_string->proc~maybe proc~repeat_string repeat_string proc~repeat_string->proc~maybe proc~reverse_string reverse_string proc~reverse_string->proc~maybe proc~scan_char_string scan_char_string proc~scan_char_string->proc~maybe proc~scan_string_char scan_string_char proc~scan_string_char->proc~maybe proc~scan_string_string scan_string_string proc~scan_string_string->proc~maybe proc~to_lower_string to_lower_string proc~to_lower_string->proc~maybe proc~to_sentence_string to_sentence_string proc~to_sentence_string->proc~maybe proc~to_title_string to_title_string proc~to_title_string->proc~maybe proc~to_upper_string to_upper_string proc~to_upper_string->proc~maybe proc~trim_string trim_string proc~trim_string->proc~maybe proc~verify_char_string verify_char_string proc~verify_char_string->proc~maybe proc~verify_string_char verify_string_char proc~verify_string_char->proc~maybe proc~verify_string_string verify_string_string proc~verify_string_string->proc~maybe proc~write_formatted write_formatted proc~write_formatted->proc~maybe proc~write_unformatted write_unformatted proc~write_unformatted->proc~maybe interface~adjustl adjustl interface~adjustl->proc~adjustl_string interface~adjustr adjustr interface~adjustr->proc~adjustr_string interface~char char interface~char->proc~char_string interface~index index interface~index->proc~index_char_string interface~index->proc~index_string_char interface~index->proc~index_string_string interface~lge lge interface~lge->proc~lge_char_string interface~lge->proc~lge_string_char interface~lge->proc~lge_string_string interface~lgt lgt interface~lgt->proc~lgt_char_string interface~lgt->proc~lgt_string_char interface~lgt->proc~lgt_string_string interface~lle lle interface~lle->proc~lle_char_string interface~lle->proc~lle_string_char interface~lle->proc~lle_string_string interface~llt llt interface~llt->proc~llt_char_string interface~llt->proc~llt_string_char interface~llt->proc~llt_string_string interface~operator(SLASHSLASH) operator(//) interface~operator(SLASHSLASH)->proc~concat_char_string interface~operator(SLASHSLASH)->proc~concat_string_char interface~operator(SLASHSLASH)->proc~concat_string_string interface~operator(gt) operator(>) interface~operator(gt)->proc~gt_char_string interface~operator(gt)->proc~gt_string_char interface~operator(gt)->proc~gt_string_string interface~repeat repeat interface~repeat->proc~repeat_string interface~reverse~2 reverse interface~reverse~2->proc~reverse_string interface~scan scan interface~scan->proc~scan_char_string interface~scan->proc~scan_string_char interface~scan->proc~scan_string_string interface~to_lower~2 to_lower interface~to_lower~2->proc~to_lower_string interface~to_sentence~2 to_sentence interface~to_sentence~2->proc~to_sentence_string interface~to_title~2 to_title interface~to_title~2->proc~to_title_string interface~to_upper~2 to_upper interface~to_upper~2->proc~to_upper_string interface~trim trim interface~trim->proc~trim_string interface~verify verify interface~verify->proc~verify_char_string interface~verify->proc~verify_string_char interface~verify->proc~verify_string_string interface~write (formatted) write (formatted) interface~write (formatted)->proc~write_formatted interface~write (unformatted) write (unformatted) interface~write (unformatted)->proc~write_unformatted

Source Code

pure function maybe(string) result(maybe_string)
   type(string_type), intent(in) :: string
   character(len=slen(string)) :: maybe_string
   if (allocated(string%raw)) then
      maybe_string = string%raw
   else
      maybe_string = ''
   end if
end function maybe