-// return vr.find(key) != vr.end();
- static char *VRvalues =
- "AEASCSDADSFLFDISLOLTPNSHSLSSSTTMUIULUSUTOBOWOFATUNSQ";
-
- int nbVal=26;
- char *pt = VRvalues;
+ return vr.find(key) != vr.end();
+#ifdef USECOMPLETELYUNTESTEDCODE
+ // to avoid to search in a std::map of std::string,
+ // since each std::string is 2 characters longs, we check the array
+ // (29 char comparisons in the worst case!)
+
+ // "RT" is an undocumented VR, found in some Siemens images.
+ // We added it here to be able to read these images.
+ // Dict/gdcmVR.dic, Document has to be updated, too.
+ static const char VRvalues[] =
+ "AEASATCSDADSDTFLFDISLOLTOBOWOLOFPNSHSLSQSSSTTMUIULUNUSUTRT";
+
+ //int nbVal = strlen(VRvalues)/2; // save CPU time.
+ int nbVal = 29;
+
+ const char *pt = VRvalues;