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/Node/index.html

Module Format.NodeSource

Operations on Format's Node

Sourcetype t =
  1. | Text of string
  2. | String of Field.String.Key.t
  3. | Bool of Field.Bool.Key.t
  4. | Int64 of Field.Int64.Key.t
  5. | Int of Field.Int.Key.t
  6. | Float of Field.Float.Key.t

type of a format node

Sourceval to_string : t -> string

to_string s outputs the node back to a string.

Sourceval to_text : t -> string

to_text s outputs the text value of Text, the empty string otherwise.

Sourceval equal : t -> t -> bool

equal lhs rhs tests whether lhs and rhs are equals.

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

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