| 5050 | } |
| 5051 | |
| 5052 | String String::trim_prefix(const String& p_prefix) const |
| 5053 | { |
| 5054 | String s = *this; |
| 5055 | if (s.begins_with(p_prefix)) |
| 5056 | { |
| 5057 | return s.substr(p_prefix.length(), s.length() - p_prefix.length()); |
| 5058 | } |
| 5059 | return s; |
| 5060 | } |
| 5061 | |
| 5062 | String String::trim_suffix(const String& p_suffix) const |
| 5063 | { |
nothing calls this directly
no test coverage detected