string->find
Finds a substring.
Target
Signature
1string->find(find::string, offset::integer= ?, length::integer= ?, -case::boolean= ?)Finds a substring.
string->find is called with member syntax on a receiver value. string->find works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.
Parameters
find- Required value of type
string. Supplyfindpositionally unless the signature shows a keyword form. offset- Optional value of type
integer. Supplyoffsetpositionally unless the signature shows a keyword form. length- Optional value of type
integer. Supplylengthpositionally unless the signature shows a keyword form. -case- Optional value of type
boolean. Supply-caseby keyword, keeping the leading hyphen in the call.
Examples
Basic call
1'abcabc'->find('bc')The example shows the receiver and result shape. In templates, apply escaping at the final output boundary.