Search code examples
delphiparsingfreepascalurl-parsing

A Delphi/FreePascal lib or function that emulates the PHP's function parse_url


I'm doing a sitemap producer in Object Pascal and need a good function or lib to emulate the parse_url function on PHP.

Does anyone know of any good ones?


Solution

  • Freepascal has the unit URIParser with the ParseURI function. An example how to use it can be found in one of the example in Freepascal's source. Or an old example which is somewhat easier to understand.