package metadata
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=5a0597eb24363728fb11983fdad2f338
sha512=7aa6a01579c38634eef9583dd192ddec3c621b2f1f19f9da1eee5e3dddaf5de925bf8177158f2734dd27b69be3309bd6a8d6b7888e5c698a843f7fe8bc0185c8
doc/metadata/Metadata/Make/index.html
Module Metadata.MakeSource
Generate metadata parsers given functions for converting charsets.
Parameters
module _ : CharEncoding.TSignature
Raised when the metadata is not valid.
Metadata are represented as association lists (name, value).
Bigarray representation of (large) tags.
type parser_handler = {label : string;length : int;read : unit -> string;read_ba : (unit -> bigarray) option;skip : unit -> unit;
}When used, a custom parser can override the default parsing mechanism. It is passed the metadata label (without normalization), the expected length of the data, a regular read function an an optional bigarray read function. The custom parser can call any of the read function to get the corresponding tag's value. After doing so, the tag is ignored by the regular parsing process.
Currently only supported for: ID3v2, MP4 and metadata_block_picture in FLAC metadata.
A custom parser, see parser_handler.
val recode :
?source:[ `ISO_8859_1 | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] ->
?target:[ `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] ->
string ->
stringConvert the charset encoding of a string.
Return the first application which does not raise invalid.
include module type of Any
Parse the metadata from a file.
Parse the metadata from a string containing the contents of a file.