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

Method lstrip

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

Source from the content-addressed store, hash-verified

4387}
4388
4389String String::lstrip(const String& p_chars) const
4390{
4391 int len = length();
4392 int beg;
4393
4394 for (beg = 0; beg < len; beg++)
4395 {
4396 if (p_chars.find_char(get(beg)) == -1)
4397 {
4398 break;
4399 }
4400 }
4401
4402 if (beg == 0)
4403 {
4404 return *this;
4405 }
4406
4407 return substr(beg, len - beg);
4408}
4409
4410String String::rstrip(const String& p_chars) const
4411{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected