MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / rstrip

Method rstrip

modules/gui/gui/src/backend/text_server/ustring.cpp:4410–4429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4408}
4409
4410String String::rstrip(const String& p_chars) const
4411{
4412 int len = length();
4413 int end;
4414
4415 for (end = len - 1; end >= 0; end--)
4416 {
4417 if (p_chars.find_char(get(end)) == -1)
4418 {
4419 break;
4420 }
4421 }
4422
4423 if (end == len - 1)
4424 {
4425 return *this;
4426 }
4427
4428 return substr(0, end + 1);
4429}
4430
4431bool String::is_network_share_path() const
4432{

Callers 1

get_cmd_outputFunction · 0.80

Calls 4

substrFunction · 0.85
find_charMethod · 0.80
lengthFunction · 0.50
getFunction · 0.50

Tested by

no test coverage detected