Skip to content

raylib.TextReplace

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Replace text string REQUIRES: strstr(), strncpy() NOTE: Limited text replace functionality, using static string

Parameters

Parameter Default Value Note
text
search
replacement

Return value

Condition Return Value
(always) number

Notes

Example

result = raylib.TextReplace("Hello World", "World", "MiniScript")
print result   // "Hello MiniScript"

Clone this wiki locally