| 2913 | } |
| 2914 | |
| 2915 | String 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 | |
| 2921 | template <class T> |
| 2922 | static bool _contains_char(char32_t p_c, const T *p_chars, int p_chars_len) { |
no test coverage detected