dc_string::index_ofs Interface Reference

Private Member Functions

integer function index_ofs (string, start, substr)
 

Detailed Description

Definition at line 124 of file dc_string.f90.

Constructor & Destructor Documentation

◆ index_ofs()

integer function dc_string::index_ofs::index_ofs ( character(len = *), intent(in)  string,
integer, intent(in)  start,
character(len = *), intent(in)  substr 
)
private

Definition at line 1243 of file dc_string.f90.

1243  !
1244  ! 文字列 string の start 文字目以降の文字列の中に substr
1245  ! の文字列が含まれている時、その開始文字位置を返します。
1246  ! 含まれない場合は 0 を返します。
1247  ! 返される開始文字位置は文字列 string の先頭から数えます。
1248  !
1249  character(len = *), intent(in):: string
1250  integer, intent(in):: start
1251  character(len = *), intent(in):: substr
1252  intrinsic index
1253  if (start < 1) then
1254  result = 0
1255  return
1256  endif
1257  result = index(string(start: ), substr)
1258  if (result == 0) return
1259  result = start + result - 1
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition: dc_types.f90:118

The documentation for this interface was generated from the following file: