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

Method trim_suffix

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

Source from the content-addressed store, hash-verified

5060}
5061
5062String String::trim_suffix(const String& p_suffix) const
5063{
5064 String s = *this;
5065 if (s.ends_with(p_suffix))
5066 {
5067 return s.substr(0, s.length() - p_suffix.length());
5068 }
5069 return s;
5070}
5071
5072bool String::is_valid_int() const
5073{

Callers

nothing calls this directly

Calls 3

ends_withMethod · 0.45
substrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected