Re: [fpc-pascal] Heap trace on mac still not working?

2024-06-30 Thread Jer Haan via fpc-pascal
You also have to add -Xg, or ‘Use external debug symbols file’ in Laxarus Van: fpc-pascal namens Hairy Pixels via fpc-pascal Verzonden: vrijdag, juni 28, 2024 5:37 PM Aan: FPC-Pascal users discussions CC: Hairy Pixels Onderwerp: [fpc-pascal] Heap trace on mac

Re: [fpc-pascal] Parse unicode scalar

2023-07-03 Thread Jer Haan via fpc-pascal
Hi Ryan,I’ve created attached unit, which takes a code point and returns the utf8 char as a string. It’s based on the Wikipedia article on UTF8UTF-8 encodes code points in one to four bytes, depending on the value of the code point. The x characters are replaced by the bits of the code point:This t

Re: [fpc-pascal] IRC channel for FreePascal support ?

2023-04-13 Thread Jer Haan via fpc-pascal
I suggest to subscribe to the Lazarus/ Fpc forum. It’s very easy. You don’t have to ask questions if you don’t want, and you can still learn a lot from all questions and answers posted. And no one is horassing anyone… https://forum.lazarus.freepascal.org/index.php?action=forum Cheers J _

Re: [fpc-pascal] Adding file to string to the RTL

2020-10-06 Thread Jer Haan via fpc-pascal
I use this function to read a file into a string: function ReadFile(const FileName: TFileName): String; var InputFile: THandle; FileSize, BytesRead: Integer; Buffer: String=''; begin try InputFile := FileOpen(FileName, fmOpenRead); if InputFile = -1 then begin WriteLn