Those functions were previouly used in my firewall log parser, and are particularly suited for use with http headers.