Skip to content

raylib.TextFindIndex

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Find first text occurrence within a string REQUIRES: strstr()

Parameters

Parameter Default Value Note
text
search

Return value

Condition Return Value
(always) number

Notes

Example

// Find the byte index of "World" within a string
idx = raylib.TextFindIndex("Hello World", "World")
print idx  // 6

Clone this wiki locally