Companion

Properties

Link copied to clipboard

Path representing the children of a path ("./∗").

Link copied to clipboard

Special fragment string representing the end of a collection. Use "~-" within a string representation of a path to represent the fragment with id "-" literally.

Link copied to clipboard

Path representing the current path (".").

Link copied to clipboard

Path representing the current path and all of its descendants ("./∗∗").

Link copied to clipboard

Special fragment string representing the "current" path. Use "~." within a string representation of a path to represent the fragment with id "." literally.

Link copied to clipboard

Path representing the descendants of a path ("./∗/∗∗").

Link copied to clipboard
const val ESCAPE_CHARACTER: Char = '~'

Character used as part of an escape sequence in the string representation of paths. It may be used to escape the special fragments ".", "..", "*", and "**" with "~.", "~..", "~*", and "~**" respectively, as well as escape characters such as "/", "~", "{", "=", ";", and "}".

Link copied to clipboard

Path representing the parent path ("..").

Link copied to clipboard

Special fragment string representing the "parent" path. Use "~.." within a string representation of a path to represent the fragment with id ".." literally.

Link copied to clipboard

Special fragment string representing zero or more fragments. Use "~**" within a string representation of a path to represent the fragment with id "**" literally.

Link copied to clipboard
const val SEPARATOR_CHARACTER: Char = '/'

Character used to represent the root path in string form, as well as separate fragments, e.g. the path with id fragments x and y is represented in string form as "/x/y" whilst the one with no fragments (root) is represented as "/".

Link copied to clipboard

Special fragment string representing "any" fragment. Use "~*" within a string representation of a path to represent the fragment with id "*" literally.

Functions

Link copied to clipboard

Returns fragment in string notation (e.g. to be used in the string representation of a path). Id fragments may end up escaped when they would otherwise represent a different fragment.