14#include "AUI/Common/AString.h"
23 auto openTag = s.find(
'<') + 1;
24 auto closeTag = s.find(
'>');
25 auto name = s.substr(openTag, closeTag - openTag);
26 name = name.substr(name.rfind(
' ') + 1);
27 if (name.endsWith(
" &"))
28 name = name.substr(0, name.length() - 2);
30#elif AUI_COMPILER_CLANG
31 AString s = __PRETTY_FUNCTION__;
32 auto b = s.find(
"=") + 1;
33 auto e = s.find(
"&", b);
34 e = std::min(s.find(
"]", b), e);
35 auto result = s.substr(b, e - b);
36 result = result.trim();
39 AString s = __PRETTY_FUNCTION__;
40 auto b = s.find(
"with T = ") + 9;
41 return { s.begin() + b, s.end() - 1 };
45 static AString nameWithoutNamespace() {
47 auto p = s.rfind(
"::");
48 if (p != AString::NPOS) {
49 return {s.begin() + p + 2, s.end()};
54 static AString toString(
const T& t) {
55 return "<object of type " + name() +
">";
61 return "\"" + t +
"\"";
66 return AString::number(t);
Represents a Unicode character string.
Definition: AString.h:37