package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

shakuhachi-0.4.0.tar.gz
sha256=8bd4675792ec93d705e68d4e43dc04aa1124fcaf644ae3a1a3fda68464276f95
sha512=712efcbe13e6e9d3336f72c2c25d4b41225cdd245f21adeeadc8aa4ad31ca9c905077e0873a3d1165d7c09357c009c859c4a7cd9c2d0c9bffc27144525594e72

doc/shakuhachi.query/SkhcQuery/Format/index.html

Module SkhcQuery.FormatSource

A library for extracting key from string.

  • since 0.3.0
Sourcemodule Node : sig ... end

Operations on Format's Node

Sourcetype t

type of a format

Sourceval map : (Node.t -> Node.t) -> t -> t
Sourceval of_string : string -> t

of_string s parses the string s to build a format where keys as defined in Keys are mapped to Node.t.

Sourceval to_string : t -> string

to_string s outputs the format back to a string.

Sourceval to_text : t -> string

to_text s outputs the format back to a string but ignores all nodes except Node.t.Text.

Sourceval equal : t -> t -> bool

equal lhs rhs tests whether lhs and rhs are equals.

Sourceval substitute : (Node.t * string) list -> t -> t

substitute assoc format tries to substitute nodes in format by Node.t.Text if the node is found in assoc. Otherwise, the format node is unchanged.

Sourceval to_list : t -> Node.t list

to_list format turns format into a list of format nodes.

Sourceval of_list : Node.t list -> t

of_list nodes builds a format from a list of format node.