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";
98 uri.
SetPath(
"/some/path/file.avi");
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");
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 SetScheme(const TString &scheme)
Set scheme component of URI:
Bool_t SetFragment(const TString &fragment)
Set fragment component of URI:
Bool_t SetPath(const TString &path)
Set path component of URI:
Bool_t SetUserInfo(const TString &userinfo)
Set userinfo component of 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.
Bool_t SetQuery(const TString &path)
Set query component of URI:
Bool_t SetHost(const TString &host)
Set host component of 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.