Skip to main content

Module naming

Module naming 

Source

Functions§

escape_reserved
Escape Rust reserved words by prepending r#.
is_reserved
Check if a name is a Rust reserved word.
strip_bool_prefix
Strip the ‘b’ prefix from boolean property names (e.g., “bNetTemporary” -> “net_temporary”).
strip_struct_prefix
Strip the F prefix from struct names.
strip_ue_prefix
Strip the UE prefix from a class name (A for actors, U for objects). The JSON name field typically already has this stripped, but cpp_name doesn’t.
to_module_name
Convert a UE module/package name to a Rust module name.
to_snake_case
Convert a PascalCase or UPPER_CASE name to snake_case.