Skip to content

Add SetToArray and ArrayToSet functions for more general RTTI set handling

Ondrej Pokorny requested to merge fpc-ondrej/source:typinfo_SetToArray into main

I need to convert a generic set to JSON array of string and back.

Unfortunately FPC offers only StringToSet and SetToString.

So I split the StringToSet and SetToString into ArrayToSet+StringToSet and SetToArray+SetToString to be able to convert sets with the RTTI to a generic structure and not only a string.

Merge request reports