Mercurial > hg > orthanc
diff OrthancFramework/Sources/Enumerations.cpp @ 5301:f26ed26a7793 am-experimental
merge
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 24 May 2023 08:56:41 +0200 |
parents | c04230962098 800261398381 |
children |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp Wed May 24 08:54:54 2023 +0200 +++ b/OrthancFramework/Sources/Enumerations.cpp Wed May 24 08:56:41 2023 +0200 @@ -31,6 +31,7 @@ #include <boost/thread/mutex.hpp> #include <string.h> #include <cassert> +#include <boost/algorithm/string/replace.hpp> namespace Orthanc { @@ -1940,6 +1941,11 @@ std::string s = Toolbox::StripSpaces(specificCharacterSet); Toolbox::ToUpperCase(s); + // handle common spelling mistakes + boost::replace_all(s, "ISO_IR_", "ISO_IR "); + boost::replace_all(s, "ISO_2022_IR_", "ISO 2022 IR "); + + // http://dicom.nema.org/medical/dicom/current/output/html/part03.html#sect_C.12.1.1.2 // https://github.com/dcm4che/dcm4che/blob/master/dcm4che-core/src/main/java/org/dcm4che3/data/SpecificCharacterSet.java if (s == "ISO_IR 6" ||