MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / xml_unescape

Method xml_unescape

modules/gui/gui/src/backend/text_server/ustring.cpp:4965–4978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4963}
4964
4965String 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
4980String String::pad_decimals(int p_digits) const
4981{

Callers

nothing calls this directly

Calls 6

_xml_unescapeFunction · 0.85
StringClass · 0.70
lengthFunction · 0.50
get_dataFunction · 0.50
resizeMethod · 0.45
ptrwMethod · 0.45

Tested by

no test coverage detected