Skip to content

Release 1.5.14

Compare
Choose a tag to compare
@AlexisWilke AlexisWilke released this 14 Jun 23:27

libtld is a small library that goes through a list of TLD (Top Level Domain names) to verify that it is valid.

This is useful for systems that need to verify that a TLD is indeed valid. All the tables get compiled in (as C-like sorted table so we can binary search the data) which makes the search pretty much as fast as can be.

The base library is in C. There is also a C++ interface (a class to access TLDs and emails) which makes it a lot easier to deal with strings and lists of emails. This allows us to verify email addresses because some scammers do use strings that are totally invalid.

You may find it easier to use the PPA version (i.e. binary packages for Ubuntu): https://launchpad.net/~snapcpp/+archive/ubuntu/ppa/+packages