Module dicom_encoding::text
source · Expand description
This module contains reusable components for encoding and decoding text in DICOM data structures, including support for character repertoires.
The Character Repertoires supported by DICOM are:
- ISO 8859
- JIS X 0201-1976 Code for Information Interchange
- JIS X 0208-1990 Code for the Japanese Graphic Character set for information interchange
- JIS X 0212-1990 Code of the supplementary Japanese Graphic Character set for information interchange
- KS X 1001 (registered as ISO-IR 149) for Korean Language
- TIS 620-2533 (1990) Thai Characters Code for Information Interchange
- ISO 10646-1, 10646-2, and their associated supplements and extensions for Unicode character set
- GB 18030
- GB2312
At the moment, text encoding support is limited.
Please see SpecificCharacterSet for a complete enumeration
of all supported text encodings.
Structs
Data type representing the default character set.
Data type for the
GB18030
character set encoding.
Data type for the
ISO_IR 100
character set encoding.
Data type for the
ISO_IR 101
character set encoding.
Data type for the
ISO_IR 109
character set encoding.
Data type for the
ISO_IR 110
character set encoding.
Data type for the
ISO_IR 144
character set encoding.
Data type for the
ISO_IR 192
character set encoding.
Enums
An error type for text decoding issues.
An error type for text encoding issues.
An enum type for all currently supported character sets.
The result of a text validation procedure (please see
validate_iso_8859).Traits
A holder of encoding and decoding mechanisms for text in DICOM content,
which according to the standard, depends on the specific character set.
Functions
Check whether the given byte slice contains only valid characters for a
Code String value representation.
Check whether the given byte slice contains only valid characters for a
Date value representation.
Check whether the given byte slice contains only valid characters for a
Date Time value representation.
Check whether the given byte slice contains valid text from the default character repertoire.
Check whether the given byte slice contains only valid characters for a
Time value representation.
Type Definitions
DynamicTextCodecDeprecated
Type alias for a type erased text codec.