Function rosidl_runtime_c_type_description_utils_repl_all_type_description_type_names_in_place

Function Documentation

rcutils_ret_t rosidl_runtime_c_type_description_utils_repl_all_type_description_type_names_in_place(rosidl_runtime_c__type_description__TypeDescription *type_description, const char *from, const char *to)

In-place replace substrings across all type names (and references to those names)

This means all IndividualTypeDescription type_names will get replaced, in the main description and referenced type descriptions, and also all references to those names (nested_type_name.)

NOTE(methylDragon): This method is pretty inefficient because it doesn’t do checking and will re-copy all names.