package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

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

Module SkhcQuery.FormatSource

A library for extracting key from string.

  • since __unreleased_
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.