mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 01:00:00 +02:00
* allow making of a TValue out of a Wide- or UnicodeString
git-svn-id: trunk@36972 -
This commit is contained in:
parent
48c76cd536
commit
762211dd06
@ -548,6 +548,8 @@ begin
|
||||
result.FData.FTypeInfo:=ATypeInfo;
|
||||
case ATypeInfo^.Kind of
|
||||
tkSString : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Length(PShortString(ABuffer)^) + 1, ATypeInfo, True);
|
||||
tkWString,
|
||||
tkUString,
|
||||
tkAString : result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
tkDynArray : result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
|
||||
tkArray : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Result.TypeData^.ArrayData.Size, ATypeInfo, False);
|
||||
|
Loading…
Reference in New Issue
Block a user