GeometryGym / GeometryGymIFC

C# classes to generate and parse OpenBIM IFC files
Other
282 stars 97 forks source link

Strings with an escaped backslash at the end are not decoded correctly #102

Open ArthNevaris opened 1 month ago

ArthNevaris commented 1 month ago

Hi,

I ran into the following bug.

When I use the function ParserSTEP.Decode to decode a string like Test \\, the result is Test \\ and not the expected string Test \. On the other hand, \\ Test will result in the correct \ Test. I suspect the error lies in the difference on how the last 4 characters of the string are handled in the decode function.