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.libs/Skhclibs/Format/index.html

Module Skhclibs.FormatSource

Operations on formatting. This module offers functions for substituing keys inside format string.

  • since 0.2.0
Sourceval filename_f : extension:string -> SkhcConfig.Config.t -> SkhcMetadata.Metadata.t -> SkhcQuery.Format.t -> string

filename ~extension config metadata format substitutes keys inside format by mapping keys with information inside metadata. extension maps to the filename's extension. Substituated values are guaranted to not contain any '/', '\\' or 0x00 character.

  • since 0.3.0
Sourceval filename : extension:string -> SkhcConfig.Config.t -> SkhcMetadata.Metadata.t -> string -> string

filename ~extension config metadata format substitutes keys inside format by mapping keys with information inside metadata. extension maps to the filename's extension. Substituated values are guaranted to not contain any '/', '\\' or 0x00 character.

music music album roles properties format substitutes keys inside format by mapping keys with information inside music, album, roles and properties.

music music album roles properties format substitutes keys inside format by mapping keys with information inside music, album, roles and properties.

  • since 0.3.0
Sourceval album : safe:bool -> extension:string option -> SkhcDb.Album.t -> SkhcDb.Album.Stats.t -> (string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t -> string -> string

album ~safe ~extension album stats roles format substitutes keys inside format by mapping keys with information inside album, stats and roles. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by an underscore for substituated values.

Sourceval album_f : safe:bool -> extension:string option -> SkhcDb.Album.t -> SkhcDb.Album.Stats.t -> (string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t -> SkhcQuery.Format.t -> string

album ~safe ~extension album stats roles format substitutes keys inside format by mapping keys with information inside album, stats and roles. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by an underscore for substituated values.

  • since 0.3.0
Sourceval album_metadata : safe:bool -> extension:string option -> SkhcMetadata.Metadata.t -> string -> string

album_metadata ~safe ~extension ~title metadata format substitutes keys inside format by mapping keys with information inside metadata. album_metadata is similar to album except that Int, Float and Bool.flag fields are not populated. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by an underscore for substituated values.

Sourceval album_metadata_f : safe:bool -> extension:string option -> SkhcMetadata.Metadata.t -> SkhcQuery.Format.t -> string

album_metadata ~safe ~extension ~title metadata format substitutes keys inside format by mapping keys with information inside metadata. album_metadata is similar to album except that Int, Float and Bool.flag fields are not populated. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by an underscore for substituated values.

  • since 0.3.0
Sourceval artist : safe:bool -> extension:string option -> SkhcDb.Artist.t -> string SkhcDb.Ids.Map.t -> SkhcDb.Artist.Stats.t -> string -> string

artist ~safe ~extension artist albums stats format substitutes keys inside format by mapping keys with information inside artist. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by underscore for substituated values.

  • before 0.4.0,

    no albums and stats arguments.

Sourceval artist_f : safe:bool -> extension:string option -> SkhcDb.Artist.t -> string SkhcDb.Ids.Map.t -> SkhcDb.Artist.Stats.t -> SkhcQuery.Format.t -> string

artist ~safe ~extension artist albums stats format substitutes keys inside format by mapping keys with information inside artist. If extension is Some, the key SkhcQuery.Keys.extension is mapped to extension. safe indicates whether '/', '\\' or 0x00 character should by replaced by underscore for substituated values.

  • since 0.3.0
  • before 0.4.0,

    no albums and stats arguments.