package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=541a7ac078a520730a71edf4d2fe0f17cc98f0b9ad82060db62120a7d2519ae5
sha512=37b98cb52dab8293adb92f71e91394cf1c5d0d481d03893c320cc8aa550459a30dabdfdc0018f512d3a7a547f2899b493a20d86f450bc084b78e30b40234a911
doc/shakuhachi.libs/Skhclibs/Format/index.html
Module Skhclibs.FormatSource
Operations on formatting. This module offers functions for substituing keys inside format string.
val filename_f :
extension:string ->
SkhcConfig.Config.t ->
SkhcMetadata.Metadata.t ->
SkhcQuery.Format.t ->
stringfilename ~extension config metadata format substitutes keys inside format by mapping keys with information inside metadata. extension maps to the filename's extension. The returned strings is guaranted to not contain any '/', '\\' or 0x00 character.
val filename :
extension:string ->
SkhcConfig.Config.t ->
SkhcMetadata.Metadata.t ->
string ->
stringfilename ~extension config metadata format substitutes keys inside format by mapping keys with information inside metadata. extension maps to the filename's extension. The returned strings is guaranted to not contain any '/', '\\' or 0x00 character.
val music :
SkhcDb.MusicFile.t ->
SkhcDb.Album.t ->
(string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t ->
SkhcMetadata.Metadata.Values.t SkhcMetadata.Metadata.Properties.t ->
string ->
stringmusic music album roles properties format substitutes keys inside format by mapping keys with information inside music, album, roles and properties.
val music_f :
SkhcDb.MusicFile.t ->
SkhcDb.Album.t ->
(string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t ->
SkhcMetadata.Metadata.Values.t SkhcMetadata.Metadata.Properties.t ->
SkhcQuery.Format.t ->
stringmusic music album roles properties format substitutes keys inside format by mapping keys with information inside music, album, roles and properties.
val album :
safe:bool ->
extension:string option ->
SkhcDb.Album.t ->
SkhcDb.Album.Stats.t ->
(string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t ->
string ->
stringalbum ~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.
val 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 ->
stringalbum ~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.
val album_metadata :
safe:bool ->
extension:string option ->
SkhcMetadata.Metadata.t ->
string ->
stringalbum_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.
val album_metadata_f :
safe:bool ->
extension:string option ->
SkhcMetadata.Metadata.t ->
SkhcQuery.Format.t ->
stringalbum_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.
artist ~safe ~extension artist 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.
val artist_f :
safe:bool ->
extension:string option ->
SkhcDb.Artist.t ->
SkhcQuery.Format.t ->
stringartist ~safe ~extension artist 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.