Function: parseSpecificCharacterSet()
parseSpecificCharacterSet(
bytes): readonlystring[]
Parse a (0008,0005) Specific Character Set value (a CS, possibly
multi-valued via ``) into its trimmed defined terms.
The first value may be empty (the ISO-2022 "G0 starts as ISO_IR 6" rule);
it is preserved as "" rather than dropped so resolveDecoderLabel
can apply the default-repertoire fallback.
Parameters
bytes
Buffer
Returns
readonly string[]
Example
import { parseSpecificCharacterSet } from "@cosyte/dicom";
// bytes for "ISO 2022 IR 6\\ISO 2022 IR 87"
const terms = parseSpecificCharacterSet(buf);