Function dc_get_mapping_to_format

Source
pub fn dc_get_mapping_to_format(dc: u32, format: &str) -> Result<String>
Expand description

Look up a Dc (document character) mapping into a specific output format.

Equivalent of dcGetMappingToFormat(intDc, strFormat) in the original. Uses dataset path “mappings/to/{format}” and retrieves field 1 (second column) of the row number equal to the Dc value.

Returns an empty string if lookup fails (mimicking loosely the JS behavior), but logs an error via Result if the underlying dataset access errors.