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

Enums

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