package obus

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module OBus_pathSource

Manipulation of dbus object paths

Sourcetype element = string

A path component

Sourcetype t = element list

A complete path

Sourceval compare : t -> t -> int

Same as Stdlib.compare. It allows this module to be used as argument to the functors Set.Make and Map.Make.

Construction
Sourceval empty : t

Empty path

Sourceval after : t -> t -> t option

after prefix path if path = prefix @ p return Some p, and None if not

Sourceval of_string : string -> t

Create an object path from a string.

Sourceval to_string : t -> string

Return a string representation of an object path

Helpers
Sourceval escape : string -> element

Escape an arbitrary string into a valid element

Sourceval unescape : element -> string

Interpret escape sequence to get back the original string

Sourceval generate : unit -> t

generate () generate a new unique path

Validation
Sourceval validate_element : OBus_string.validator
OCaml

Innovation. Community. Security.