| 4963 | } |
| 4964 | |
| 4965 | String String::xml_unescape() const |
| 4966 | { |
| 4967 | String str; |
| 4968 | int l = length(); |
| 4969 | int len = _xml_unescape(get_data(), l, nullptr); |
| 4970 | if (len == 0) |
| 4971 | { |
| 4972 | return String(); |
| 4973 | } |
| 4974 | str.resize(len + 1); |
| 4975 | _xml_unescape(get_data(), l, str.ptrw()); |
| 4976 | str[len] = 0; |
| 4977 | return str; |
| 4978 | } |
| 4979 | |
| 4980 | String String::pad_decimals(int p_digits) const |
| 4981 | { |