zorba::URIHelper

#include <zorba/util/uri.h>

A helper class to do uri conversions.

Public Static Functions

String

decodeFileURI(const String &uri)

Decodes a
file://
URI to a filesystem path in native form.

String

encodeFileURI(const String &filepath)

Encodes a native filesystem path to a
file://
URI.

Public Static Functions

decodeFileURI

String decodeFileURI(const String &uri)

Decodes a

file://
URI to a filesystem path in native form.

  • uri A
    file://
    URI.

    Returns

    The filesystem path.

encodeFileURI

String encodeFileURI(const String &filepath)

Encodes a native filesystem path to a

file://
URI.

  • filepath The filesystem path.

    Returns

    The encoded URI of the file.