Companion

object Companion

Functions

Link copied to clipboard

Creates a RelativeUrl from a percent-decoded path.

Link copied to clipboard

According to the EPUB specification, the HREFs in the EPUB package must be valid URLs (so percent-encoded). Unfortunately, many EPUBs don't follow this rule, and use invalid HREFs such as my chapter.html or /dir/my chapter.html.

Link copied to clipboard

Creates an Url from a legacy HREF.

Link copied to clipboard
operator fun invoke(url: String): Url?

Creates a Url from its encoded string representation.