Skip to main content

StrFind

This routine finds the pattern inside the string, and returns the indices.

Interface

INTERFACE
MODULE PURE SUBROUTINE strFind(chars, pattern, indices)
CHARACTER(*), INTENT(IN) :: chars
CHARACTER(*), INTENT(IN) :: pattern
INTEGER(I4B), ALLOCATABLE, INTENT(OUT) :: indices(:)
END SUBROUTINE strFind
END INTERFACE