* partial fix for Mantis : apply partial, adjusted patch by Imants Gulbis to implement TValue.ToString for enumerations, AnsiChar and WideChar

git-svn-id: trunk@43778 -
This commit is contained in:
svenbarth 2019-12-24 21:30:07 +00:00
parent 8ff14ed5d1
commit f782d3fe7a

View File

@ -2010,6 +2010,9 @@ begin
tkPointer : result := '(pointer @ ' + HexStr(FData.FAsPointer) + ')';
tkInterface : result := '(interface @ ' + HexStr(PPointer(FData.FValueData.GetReferenceToRawData)^) + ')';
tkInterfaceRaw : result := '(raw interface @ ' + HexStr(FData.FAsPointer) + ')';
tkEnumeration: Result := GetEnumName(TypeInfo, Integer(AsOrdinal));
tkChar: Result := AnsiChar(FData.FAsUByte);
tkWChar: Result := UTF8Encode(WideChar(FData.FAsUWord));
else
result := '';
end;