~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/packages/fcl-base/tests/testur.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{$mode objfpc}
 
2
program testur;
 
3
 
 
4
uses resolve;
 
5
 
 
6
var
 
7
  U : TURIParser;
 
8
 
 
9
Procedure DumpURI(U : TURIParser);
 
10
 
 
11
begin
 
12
  With U do
 
13
    begin
 
14
    Writeln('Protocol :',Protocol);
 
15
    Writeln('Username :',Username);
 
16
    Writeln('Password :',Password);
 
17
    Writeln('Host     :',Host    );
 
18
    Writeln('Port     :',Port    );
 
19
    Writeln('Path     :',Path    );
 
20
    Writeln('Document :',Document);
 
21
    Writeln('Params   :',Params  );
 
22
    Writeln('Bookmark :',Bookmark);
 
23
    Writeln('URI      :',URI);
 
24
    end;
 
25
end;
 
26
 
 
27
begin
 
28
  U:=TURIParser.Create(Nil);
 
29
  Try
 
30
    Writeln('Parsing : http://www.freepascal.org:80/bugs/db.php?ID=20');
 
31
    U.ParseURI('http://www.freepascal.org:80/bugs/db.php?ID=20');
 
32
    DumpURI(U);
 
33
    U.Active:=True;
 
34
    Writeln('Setting URI : http://www.lazarus.freepascal.org/main.php');
 
35
    U.URI:='http://www.lazarus.freepascal.org/main.php';
 
36
    DumpUri(U);
 
37
  finally
 
38
    U.Free;
 
39
  end;
 
40
end.