Capy-Bearer Documentation

strpos

lib call

Capy

function strpos(haystack : string, needle : string, offset : s64 = 0) s64

Description

Use strpos to find text in a string. The result uses a zero-based position.

Return Values

First match position, or -1.

Example

Capy

print(strpos("bearer docs", "docs"), "\n")