libtld 1.2.0 发布,从URL中提取域名信息


libtld 是一个用来从 URI 中抽取 TLD(顶级域名) 信息的 C 库。你可以提取域名、子域名等信息

  • Added support for exceptions so we now properly support .uk for domains such as, but forbid it for all the sites that are not exceptions.
  • Updated the tests accordingly.
  • Added a test for the XML file to make sure it respects the DTD.
  • Fixed the offsets of the data table, since these are unsigned short, -1 is not the best value to use to represent an invalid value. Instead we use USHRT_MAX now.
  • Completed the .us entries.

  • 本文由 发表于 2020年1月31日08:16:26
  • 转载请务必保留本文链接: