[−][src]Module dicom_encoding::text
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, this library supports only IR-6 and IR-192.
Structs
DefaultCharacterSetCodec | Data type representing the default character set. |
Utf8CharacterSetCodec | Data type representing the UTF-8 character set. |
Enums
SpecificCharacterSet | An enum type for the the supported character sets. |
TextValidationOutcome | The result of a text validation procedure (please see |
Traits
TextCodec | A holder of encoding and decoding mechanisms for text in DICOM content, which according to the standard, depends on the specific character set. |
Functions
validate_cs | Check whether the given byte slice contains only valid characters for a Code String value representation. |
validate_da | Check whether the given byte slice contains only valid characters for a Date value representation. |
validate_dt | Check whether the given byte slice contains only valid characters for a Date Time value representation. |
validate_iso_8859 | Check whether the given byte slice contains valid text from the default character repertoire. |
validate_tm | Check whether the given byte slice contains only valid characters for a Time value representation. |
Type Definitions
DynamicTextCodec | Type alias for a type erased text codec. |