style_index Function

private elemental function style_index(style)

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: style

Return Value integer(kind=int32)


Called by

proc~~style_index~3~~CalledByGraph proc~style_index~3 style_index proc~colorize_ascii~3 colorize_ascii proc~colorize_ascii~3->proc~style_index~3 proc~colorize_default~3 colorize_default proc~colorize_default~3->proc~style_index~3 proc~colorize_ucs4~3 colorize_ucs4 proc~colorize_ucs4~3->proc~style_index~3 interface~colorize~3 colorize interface~colorize~3->proc~colorize_default~3 proc~colors_samples~3 colors_samples proc~colors_samples~3->interface~colorize~3 proc~styles_samples~3 styles_samples proc~styles_samples~3->interface~colorize~3

Contents

Source Code


Source Code

   elemental function style_index(style)
   !< Return the array-index corresponding to the queried style.
   character(len=*), intent(in) :: style       !< Style definition.
   integer(int32)               :: style_index !< Index into the styles array.
   integer(int32)               :: s           !< Counter.

   style_index = 0
   do s=1, size(STYLES, dim=2)
      if (trim(STYLES(1, s))==trim(adjustl(style))) then
         style_index = s
         exit
      endif
   enddo
   endfunction style_index