Api Scanner.

This commit is contained in:
jussi
2024-02-24 17:27:34 +02:00
parent 04d2a7df47
commit 9f1bec39f9
8 changed files with 210 additions and 3 deletions

View File

@@ -1197,3 +1197,19 @@ int ltextTextSplit( lua_State* L ) {
return 1;
}
/*
> index = RL.TextFindIndex( string text, string find )
Find first text occurrence within a string
- Success return int
*/
int ltextTextFindIndex( lua_State* L ) {
const char* text = luaL_checkstring( L, 1 );
const char* find = luaL_checkstring( L, 2 );
lua_pushinteger( L, TextFindIndex( text, find ) );
return 1;
}