libtld 1.4.22
Last update:
Fri, 17 July 2015, 11:00:01 am
Submission date:
Fri, 25 November 2011, 4:00:39 pm
Vote for this product
libtld description
This library extracts the top level domain name from any URI.
The libtld is a library used to extract the TLD from a URI. This allows you to extract the exact domain name, sub-domains, and all the TLD (top level, second level, third level, etc.) The problem with TLDs is that you cannot know where the domain starts. Some domains can use one top-level domain, others use two, etc. However, it may be useful to know where the domain is to have the exact list of sub-domains. For example, if you want to force www. at the start of the domain name if no other sub-domains are specified, then you need to know exactly how many TLD are defined in a URI. The libtld offers one function: tld(), which gives you a way to extract the TLD from any URI. The result is the offset where the TLD starts. This gives you enough information to extract everything else you need. Requirements: C compiler to use the library in your project. C++ compiler, Qt, and CMake to compile the library. What's new in this release: This minor update adds many of the new gTLDs that were added in the last 6 months. Comments (0)
FAQs (0)
History
Promote
Author
Analytics
Videos (0)
|