Update RingRayLib - raylib.c - Add Function : int TextFindIndex(const char *text, const char *find)
@@ -4494,6 +4494,24 @@ RING_FUNC(ring_TextAppend)
RING_API_ACCEPTINTVALUE(3) ;
}
+
+RING_FUNC(ring_TextFindIndex)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(TextFindIndex(RING_API_GETSTRING(1),RING_API_GETSTRING(2)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -4751,4 +4769,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("textjoin",ring_TextJoin);
ring_vm_funcregister("textsplit",ring_TextSplit);
ring_vm_funcregister("textappend",ring_TextAppend);
+ ring_vm_funcregister("textfindindex",ring_TextFindIndex);
}
