-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Andrew Lambert edited this page Apr 14, 2016
·
11 revisions
This project implements a set of REALstudio object classes which together allow for easy manipulation of URIs. Strictly speaking, only the URL subset of the URI specification is supported. Other subsets like URNs are not supported.
URI instances may be converted to and from Strings as well as directly compared to other URI instances for equivalence.
Each Property of the URI class represents a member of the actual URI being parsed; they may be manipulated independently of one another and in any order.
Assigning a string value to an instance of the URI class re-parses the entire URI using the assigned string. For example:
Dim t As URI = "http://www.example.com?hello=world" 't is now "http://www.example.com?hello=world"
t = "https://www.example.net" 't is now "https://www.example.net"
Manipulating the properties individually, however, does not re-parse the URI:
Dim t As URI = "http://www.example.net/foo/bar.bat?Frell=27#Main" 'Create a URI
t.Host = "www.example.com" 'Change the domain
ReDim t.Arguments(-1) 'Remove arguments
t.Scheme = "https" 'Change the protocol
't is now: "https://www.example.com/foo/bar.bat#Main"