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

Method lstrip

core/string/ustring.cpp:4375–4390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4373}
4374
4375String String::lstrip(const String &p_chars) const {
4376 int len = length();
4377 int beg;
4378
4379 for (beg = 0; beg < len; beg++) {
4380 if (p_chars.find_char(get(beg)) == -1) {
4381 break;
4382 }
4383 }
4384
4385 if (beg == 0) {
4386 return *this;
4387 }
4388
4389 return substr(beg, len - beg);
4390}
4391
4392String String::rstrip(const String &p_chars) const {
4393 int len = length();

Callers 15

bbcode_to_textMethod · 0.80
bbcode_to_xmlMethod · 0.80
normalize_pathMethod · 0.80
get_file_uriMethod · 0.80
initializeMethod · 0.80
initializeFunction · 0.80
try_parseMethod · 0.80
parse_templateFunction · 0.80
process_gdscript_lineMethod · 0.80
_parse_templateMethod · 0.80
_error_clickedMethod · 0.80
get_custom_node_dataMethod · 0.80

Calls 2

find_charMethod · 0.80
getFunction · 0.50

Tested by 2

initializeFunction · 0.64
try_parseMethod · 0.64