[fpc-devel] Generic helpers

2023-01-09 Thread Hairy Pixels via fpc-devel
Hey guys, I was thinking about how nice generic type helpers would be today and remembered I did a mostly functional branch over 6 months ago so I fixed it up and posted it on gitlab. There’s a nasty merge error with main I need to fix but you can test it anyways. For the helper type I support

Re: [fpc-devel] Unicode RTL for FPC

2023-01-09 Thread Adriaan van Os via fpc-devel
Michael Van Canneyt via fpc-devel wrote: Seems my warning to prevent heart attacks was on its place but maybe not entirely effective :-) Relax, no-one will force you to use UTF16. But there are people that do not have the luxury of choice, and we should be kind to them too. OK. It reminds

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny wrote: On 09.01.2023 09:08, Michael Van Canneyt wrote: On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free t

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Ondrej Pokorny via fpc-devel
On 09.01.2023 09:08, Michael Van Canneyt wrote: On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free to add it somewhere in fcl-net. Here it is:

Re: [fpc-devel] Function to find if IP address is local

2023-01-09 Thread Michael Van Canneyt via fpc-devel
On Mon, 9 Jan 2023, Ondrej Pokorny via fpc-devel wrote: Hello! Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? No, not to my knowledge. Feel free to add it somewhere in fcl-net. Michael. _

[fpc-devel] Function to find if IP address is local

2023-01-09 Thread Ondrej Pokorny via fpc-devel
Hello! Is there a routine in RTL to find out if a given IPv4 address is from the private address range (10.* etc)? Thanks Ondrej ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-deve