Click or drag to resize

FortranLibINDEX(String, String, Boolean) Method

INDEX INDEX(STRING, SUBSTRING, BACK) Returns the starting position of a substring within a string. Argument Type and Attributes STRING must be of type character. SUBSTRING must be of type character with the same kind type parameter as STRING. BACK (optional) must be of type logical. Class Elemental function Result Type and Attributes Default integer. Result Value v Case (i): If BACK is absent or present with the value .FALSE., the result is the minimum positive value of I such that STRING (I : I + LEN (SUBSTRING) - 1) = SUBSTRING or zero if there is no such value. Zero is returned if LEN (STRING) .LT. LEN (SUBSTRING). One is returned if LEN (SUBSTRING) = 0. v Case (ii): If BACK is present with the value .TRUE., the result is the maximum value of I less than or equal to LEN (STRING) - LEN (SUBSTRING) + 1, such that STRING (I : I + LEN (SUBSTRING) - 1) = SUBSTRING or zero if there is no such value. Zero is returned if LEN (STRING) .LT. LEN (SUBSTRING) and LEN (STRING) + 1 is returned if LEN (SUBSTRING) = 0. Examples INDEX (’FORTRAN’, ’R’) has the value 3. INDEX (’FORTRAN’, ’R’, BACK = .TRUE.) has the value 5.

Namespace: Altaxo.Calc.Ode.Obsolete
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int INDEX(
	string s,
	string value,
	bool back
)

Parameters

s  String

[Missing <param name="s"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.INDEX(System.String,System.String,System.Boolean)"]

value  String

[Missing <param name="value"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.INDEX(System.String,System.String,System.Boolean)"]

back  Boolean

[Missing <param name="back"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.INDEX(System.String,System.String,System.Boolean)"]

Return Value

Int32

[Missing <returns> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.INDEX(System.String,System.String,System.Boolean)"]

Remarks
IBM XL Fortran for AIX
See Also