String :: firstPosition - Locate first occurence of character in string
The function returns the index position of the first occurrence of the character passed in iValue .
Comparison depends on the string coding type of the calling string. The value passed must meet the encoding of the string to be searched.
When the character has been found, the function returns the absolute position (in units) of the character. When the value could not be found, the function returns -1 .
Return value: Position in collection ( int32 )
The position of an element in a collection is beginning with 0 for the first element.
Implementation overview
- - internal feature (not documented)
String :: firstPosition ( iValue ) - - internal feature (not documented)
String :: firstPosition ( cString )
Implementation details
- to list
-
- internal feature (not documented)
int32 String  :: firstPosition ( odaba::String &cString )
- cString
- Constant string object
When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).
to list
- cString
- Constant string object