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

Method erase

core/string/ustring.cpp:2915–2919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2913}
2914
2915String String::erase(int p_pos, int p_chars) const {
2916 ERR_FAIL_COND_V_MSG(p_pos < 0, "", vformat("Invalid starting position for `String.erase()`: %d. Starting position must be positive or zero.", p_pos));
2917 ERR_FAIL_COND_V_MSG(p_chars < 0, "", vformat("Invalid character count for `String.erase()`: %d. Character count must be positive or zero.", p_chars));
2918 return left(p_pos) + substr(p_pos + p_chars);
2919}
2920
2921template <class T>
2922static bool _contains_char(char32_t p_c, const T *p_chars, int p_chars_len) {

Callers 4

erase_messageMethod · 0.45
erase_messageMethod · 0.45
remove_domainMethod · 0.45
remove_translationMethod · 0.45

Calls 1

vformatFunction · 0.85

Tested by

no test coverage detected