FortranLibSCAN(String, String, Boolean) Method |
SCAN(STRING, SET, BACK)
Scan a string for any one of the characters in a set of characters.
Argument Type and Attributes
STRING must be of type character.
SET 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 is present with the value .FALSE. and if
STRING contains at least one character that is in SET, the value of the result
is the position of the leftmost character of STRING that is in SET.
v Case (ii): If BACK is present with the value .TRUE. and if STRING contains
at least one character that is in SET, the value of the result is the position of
the rightmost character of STRING that is in SET.
v Case (iii): The value of the result is zero if no character of STRING is in SET
or if the length of STRING or SET is zero.
Examples
v Case (i): SCAN (’FORTRAN’, ’TR’) has the value 3.
v Case (ii): SCAN (’FORTRAN’, ’TR’, BACK = .TRUE.) has the value 5.
v Case (iii): SCAN (’FORTRAN’, ’BCD’) has the value 0.
Namespace: Altaxo.Calc.Ode.ObsoleteAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static int SCAN(
string s,
string set,
bool back
)
Parameters
- s String
[Missing <param name="s"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.SCAN(System.String,System.String,System.Boolean)"]
- set String
[Missing <param name="set"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.SCAN(System.String,System.String,System.Boolean)"]
- back Boolean
[Missing <param name="back"/> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.SCAN(System.String,System.String,System.Boolean)"]
Return Value
Int32[Missing <returns> documentation for "M:Altaxo.Calc.Ode.Obsolete.FortranLib.SCAN(System.String,System.String,System.Boolean)"]
Remarks
IBM XL Fortran for AIX
See Also