Relation

class URI

A URI class used in semgen.

Parameters
  • uri_encoding: A string encoding of the URI.

Public Functions

URI()

Empty constructor.

URI(const std::string &uri)

Construct from string-encoded URI.

URI(const char *uri)

Construct from a string literal.

std::string toString() const

Convert to human-readable string.

std::string encode() const

Convert to encoded UTF-8 URI string (possibly different from human-readable string).

URI appendToFrag(const std::string &suffix) const

Append to the fragment part of the URI.

Return

The new URI.

Parameters
  • suffix: The string to append to the fragment.

URI withFrag(const std::string &suffix) const

Set the fragment part of the URI to the given string and return it as a new URI.

Return

The new URI.

Parameters
  • suffix: The string to append to the fragment.

bool operator==(const URI &other) const

Comparison operator.