16 Printf(
"\tERROR: %s => %s (should read: %s)", reference.
GetUri().Data(),
actual.GetUri().Data(), nominal.
GetUri().Data());
17 return (nominal ==
actual);
23 TUri base =
TUri(
"http://a/b/c/d;p?q");
77 for (
char i = 0; i < 127; i++) {
93 TString composed =
"http://user:pass@host.org/some/path/file.avi?key1=value1#anchor3";
95 uri.SetScheme(
"http");
96 uri.SetUserInfo(
"user:pass");
97 uri.SetHost(
"host.org");
98 uri.SetPath(
"/some/path/file.avi");
99 uri.SetQuery(
"key1=value1");
100 uri.SetFragment(
"anchor3");
109 Printf(
"---> F A I L E D F A I L E D F A I L E D\n");
123 valid &=
TUri(
"urn:oasis:names:specification:docbook:dtd:xml:4.1.2").
IsUri();
130 Printf(
"\n\nTUri test macro ...");
131 Printf(
"---> Validation");
133 Printf(
"---> Reference Resolution");
135 Printf(
"---> PCT Conversion");
137 Printf(
"---> Equivalence and Normalisation");
138 Answer(
TUri(
"example://a/b/c/%7Bfoo%7D") ==
TUri(
"eXAMPLE://a/./b/../b/%63/%7bfoo%7d"));
139 Printf(
"---> Composition");
bool Bool_t
Boolean (0=false, 1=true) (bool)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
This class represents a RFC 3986 compatible URI.
Bool_t IsUri() const
Returns kTRUE if instance qualifies as URI URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] ...
static const TString PctEncode(const TString &source)
Percent-encode and return the given string according to RFC 3986 in principle, this function cannot f...
const TString GetUri() const
Returns the whole URI - an implementation of chapter 5.3 component recomposition.
static TUri Transform(const TUri &reference, const TUri &base)
Transform a URI reference into its target URI using given a base URI.
static const TString PctDecode(const TString &source)
Percent-decode the given string according to chapter 2.1 we assume a valid pct-encoded string.