MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / adjust_scene_name_casing

Method adjust_scene_name_casing

editor/editor_node.cpp:3519–3534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3517}
3518
3519String EditorNode::adjust_scene_name_casing(const String &p_root_name) {
3520 switch (GLOBAL_GET("editor/naming/scene_name_casing").operator int()) {
3521 case SCENE_NAME_CASING_AUTO:
3522 // Use casing of the root node.
3523 break;
3524 case SCENE_NAME_CASING_PASCAL_CASE:
3525 return p_root_name.to_pascal_case();
3526 case SCENE_NAME_CASING_SNAKE_CASE:
3527 return p_root_name.to_snake_case();
3528 case SCENE_NAME_CASING_KEBAB_CASE:
3529 return p_root_name.to_kebab_case();
3530 case SCENE_NAME_CASING_CAMEL_CASE:
3531 return p_root_name.to_camel_case();
3532 }
3533 return p_root_name;
3534}
3535
3536String EditorNode::adjust_script_name_casing(const String &p_file_name, ScriptLanguage::ScriptNameCasing p_auto_casing) {
3537 int editor_casing = GLOBAL_GET("editor/naming/script_name_casing");

Callers

nothing calls this directly

Calls 4

to_pascal_caseMethod · 0.80
to_snake_caseMethod · 0.80
to_kebab_caseMethod · 0.80
to_camel_caseMethod · 0.80

Tested by

no test coverage detected