{
  "id": "fn-string-index_of",
  "dataComponent": "string",
  "heading": {
    "title": "index_of",
    "badges": ["String", "PARTIAL"]
  },
  "synopsis": "Returns the character index of the first occurrence of a substring, or -1 if not found. Partial/placeholder usage supported.",
  "codeBlocks": [
    "extend(\"string\")\n\nsput( string:index_of(\"ll\", \"Hello, lol!\") )\n# => 2\n\n# Not found:\nsput( string:index_of(\"x\", \"abc\") )\n# => -1"
  ],
  "notes": [
    "Arguments: substring, string.",
    "Index is counted in Unicode characters.",
    "Partial and _ supported."
  ]
}
