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

Method rstrip

core/string/ustring.cpp:4392–4407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4390}
4391
4392String String::rstrip(const String &p_chars) const {
4393 int len = length();
4394 int end;
4395
4396 for (end = len - 1; end >= 0; end--) {
4397 if (p_chars.find_char(get(end)) == -1) {
4398 break;
4399 }
4400 }
4401
4402 if (end == len - 1) {
4403 return *this;
4404 }
4405
4406 return substr(0, end + 1);
4407}
4408
4409bool String::is_network_share_path() const {
4410 return begins_with("//") || begins_with("\\\\");

Callers 13

get_safe_dir_nameMethod · 0.80
get_stdin_stringMethod · 0.80
_update_node_tooltipMethod · 0.80
_create_dir_toggledMethod · 0.80
process_gdscript_lineMethod · 0.80
get_custom_node_dataMethod · 0.80
_update_file_listMethod · 0.80
update_pluginsMethod · 0.80
file_format.pyFile · 0.80
get_stdin_stringMethod · 0.80
expand_pathMethod · 0.80
move_to_trashMethod · 0.80

Calls 2

find_charMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected