Skip to content

raylib.TextFindIndex

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Find first occurrence of search within text; returns its byte index, or -1 if not found

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