Function that returns the position within a string where the substring to be searched starts.
Syntax |
i32 str_find (string strSrc, string strKey) |
---|---|
strSrc |
String in which to search |
strKey |
String to search in |
Result |
Returns the position of the character at which strKey starts |
Validity |
Rule, Task |
Note. |
If the substring starts at the first character returns 1. If substring does not exist returns 0. The search is case sensitive |
Example of use:
|