Module convert_bytes

Module convert_bytes 

Source
Expand description

In-memory document conversions between DcMstring and supported document formats.

Structs§

DcConversionOptions
Options controlling conversion to DcMstring.
DcConversionResult
Result of a format conversion including the parsed DcMstring, detected format, and accumulated diagnostic log.
DcExportOptions
Options controlling conversion from DcMstring to other document formats.
DcExportResult
Result of an export conversion from DcMstring to output format bytes.

Enums§

DcNormalizationMode
Policy for normalizing Document Characters and Unicode during conversion.
FormatSpec
Specification for input format: explicit format or automatic detection.

Functions§

convert_bytes_to_dcmstring
Converts in-memory bytes with an optional filename hint to a DcMstring.
convert_cscjournal_to_dcmstring
Converts any in-memory cscjournal bytes (legacy or v4+) to a DcMstring document.
convert_dcmstring_to_bytes
Converts a DcMstring document to serialized bytes in the specified output format.
convert_dcmstring_to_file
Exports a DcMstring to a file on disk (or ‘-’ for stdout).
convert_file_to_dcmstring
Converts a file on disk (or ‘-’ for stdin) to a DcMstring.
format_supported_input_formats_table
Formats the categorized list of supported input document formats for error and help messages.
format_supported_output_formats_table
Formats the categorized list of supported output document formats for error and help messages.
format_supported_transformations_table
Formats the categorized list of supported document transformations for error and help messages.