String case: Difference between revisions
→{{header|GDScript}}: Fix up some mistakes
(→{{header|GDScript}}: Fix up some mistakes) |
|||
Line 1,712:
=={{header|GDScript}}==
{{works with|Godot|4.0.
<syntaxhighlight lang="gdscript">
Line 1,725:
# Note: These will also add/remove underscores.
print("to_camel_case: ", string.to_camel_case())
print("
print("to_snake_case: ", string.to_snake_case())
return true # Exit
</syntaxhighlight>
{{out}}
<pre>
ALPHABETA
alphabeta
to_camel_case: alphaBeta
to_pascal_case: AlphaBeta
to_snake_case: alpha_beta
</pre>
=={{header|GML}}==
|