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

Method adjust_name_casing

scene/main/node.cpp:1520–1532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1518#endif
1519
1520String Node::adjust_name_casing(const String &p_name) {
1521 switch (GLOBAL_GET("editor/naming/node_name_casing").operator int()) {
1522 case NAME_CASING_PASCAL_CASE:
1523 return p_name.to_pascal_case();
1524 case NAME_CASING_CAMEL_CASE:
1525 return p_name.to_camel_case();
1526 case NAME_CASING_SNAKE_CASE:
1527 return p_name.to_snake_case();
1528 case NAME_CASING_KEBAB_CASE:
1529 return p_name.to_kebab_case();
1530 }
1531 return p_name;
1532}
1533
1534void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) {
1535 /* Make sure the name is unique */

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected