package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

shakuhachi-0.4.1.tar.gz
sha256=4a6e1b929cc60f9239f73bfc2200d1b5a884e45dc81ad1b0f268ed4eba8059e9
sha512=f5419b47be10ece8e257d98355aeeaa893a493c00589b8ce622706f9454bb1762be1c63d5d84844b284cac417a3eafb9f9064f902be9c4a862dc9688baaab38d

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.