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.

At the moment the following character sets are supported:

Character Setdecoding supportencoding support
ISO-IR 6 (default)
ISO-IR 100 (ISO-8859-1): Right-hand part of the Latin alphabet no. 1, the Western Europe character set
ISO-IR 101 (ISO-8859-2): Right-hand part of the Latin alphabet no. 2, the Central/Eastern Europe character set
ISO-IR 109 (ISO-8859-3): Right-hand part of the Latin alphabet no. 3, the South Europe character set
ISO-IR 110 (ISO-8859-4): Right-hand part of the Latin alphabet no. 4, the North Europe character set
ISO-IR 144 (ISO-8859-5): The Latin/Cyrillic character set
ISO-IR 192: The Unicode character set based on the UTF-8 encoding
GB18030: The Simplified Chinese character set
JIS X 0201-1976: Code for Information Interchangexx
JIS X 0208-1990: Code for the Japanese Graphic Character set for information interchangexx
JIS X 0212-1990: Code of the supplementary Japanese Graphic Character set for information interchangexx
KS X 1001 (registered as ISO-IR 149) for Korean Languagexx
TIS 620-2533 (1990) Thai Characters Code for Information Interchangexx
GB2312: Simplified Chinese character setxx

These capabilities are available through SpecificCharacterSet.

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.