一个Delphi / FreePascal的lib或函数来模拟PHP的函数parse_url [英] A Delphi/FreePascal lib or function that emulates the PHP's function parse_url

查看:217
本文介绍了一个Delphi / FreePascal的lib或函数来模拟PHP的函数parse_url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Object Pascal中做一个sitemap生产者,需要一个很好的函数或者lib来模拟 parse_url 在PHP上的功能。

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?

推荐答案

Freepascal具有带有ParseURI功能的单元URIParser。以下示例中可以找到一个示例: Freepascal的来源。或旧示例,这更容易理解。

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.

这篇关于一个Delphi / FreePascal的lib或函数来模拟PHP的函数parse_url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆