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