What libs have you used for that? How compatible are they with one another? Or did you write your own parsing routine?
I'm particularly interested in mutually-compatible implementations for Java, C++, Python, and JavaScript, which support:
- zero compression (
::
) - IPv4-mapped addresses (
::ffff:123.45.67.89
) - canonicalization (including to the short form, for human readability)
- CIDR-style netmasks (like
/64
at the end)