| 5060 | } |
| 5061 | |
| 5062 | String String::trim_suffix(const String& p_suffix) const |
| 5063 | { |
| 5064 | String s = *this; |
| 5065 | if (s.ends_with(p_suffix)) |
| 5066 | { |
| 5067 | return s.substr(0, s.length() - p_suffix.length()); |
| 5068 | } |
| 5069 | return s; |
| 5070 | } |
| 5071 | |
| 5072 | bool String::is_valid_int() const |
| 5073 | { |