summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorjussi2024-11-21 00:11:31 +0200
committerjussi2024-11-21 00:11:31 +0200
commit4c0eb17a9c234bfee73af408faa38e38f2e450d9 (patch)
tree4aea4fe804a63ed13a1d092aada0ba5925dcf05f /src/text.c
parent479726a5e468a2f4d0f9337f082889082e535bfb (diff)
downloadreilua-enhanced-4c0eb17a9c234bfee73af408faa38e38f2e450d9.tar.gz
reilua-enhanced-4c0eb17a9c234bfee73af408faa38e38f2e450d9.tar.bz2
reilua-enhanced-4c0eb17a9c234bfee73af408faa38e38f2e450d9.zip
New raylib 5.5 functions.
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c30
1 files changed, 30 insertions, 0 deletions
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;
+}