From 4c0eb17a9c234bfee73af408faa38e38f2e450d9 Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 21 Nov 2024 00:11:31 +0200 Subject: New raylib 5.5 functions. --- src/text.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/text.c') diff --git a/src/text.c b/src/text.c index 9b6fe95..2740bed 100644 --- a/src/text.c +++ b/src/text.c @@ -1242,3 +1242,33 @@ int ltextTextToPascal( lua_State* L ) { return 1; } + +/* +> text = RL.TextToSnake( string text ) + +Get Snake case notation version of provided string + +- Success return string +*/ +int ltextTextToSnake( lua_State* L ) { + const char* text = luaL_checkstring( L, 1 ); + + lua_pushstring( L, TextToSnake( text ) ); + + return 1; +} + +/* +> text = RL.TextToCamel( string text ) + +Get Camel case notation version of provided string + +- Success return string +*/ +int ltextTextToCamel( lua_State* L ) { + const char* text = luaL_checkstring( L, 1 ); + + lua_pushstring( L, TextToCamel( text ) ); + + return 1; +} -- cgit v1.2.3