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

Method validate_filename

core/string/ustring.cpp:5202–5208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5200}
5201
5202String String::validate_filename() const {
5203 String name = strip_edges();
5204 for (const char *ch : invalid_filename_characters) {
5205 name = name.replace(ch, "_");
5206 }
5207 return name;
5208}
5209
5210bool String::is_valid_ip_address() const {
5211 if (find_char(':') >= 0) {

Callers 8

_parse_imagesMethod · 0.80
_fill_materialMethod · 0.80
_save_dir_callbackMethod · 0.80
_post_fix_nodeMethod · 0.80
_load_from_cacheMethod · 0.80
_save_to_cacheMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected