X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=fb1f87fb248565e7647eb571759083d65cd66a4e;hb=bfbd90327a5e45d972546843b0d9e4185e16cb24;hp=40143310270811fa753301afa7bf6ac6663befc2;hpb=06c1c583239fdf5196260e6ef83a78669c1bd17f;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 40143310..fb1f87fb 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -52,9 +52,9 @@ void gdcmDebug::Exit(int a) { } //----------------------------------------------------------------------------- -gdcmVR * gdcmGlobal::VR = (gdcmVR*)0; -gdcmTS * gdcmGlobal::TS = (gdcmTS*)0; -gdcmDictSet * gdcmGlobal::Dicts = (gdcmDictSet*)0; +gdcmVR *gdcmGlobal::VR = (gdcmVR *)0; +gdcmTS *gdcmGlobal::TS = (gdcmTS *)0; +gdcmDictSet *gdcmGlobal::Dicts = (gdcmDictSet *)0; gdcmGlobal gdcmGlob; gdcmGlobal::gdcmGlobal(void) { @@ -71,15 +71,15 @@ gdcmGlobal::~gdcmGlobal() { delete Dicts; } -gdcmVR * gdcmGlobal::GetVR(void) { +gdcmVR *gdcmGlobal::GetVR(void) { return VR; } -gdcmTS * gdcmGlobal::GetTS(void) { +gdcmTS *gdcmGlobal::GetTS(void) { return TS; } -gdcmDictSet * gdcmGlobal::GetDicts(void) { +gdcmDictSet *gdcmGlobal::GetDicts(void) { return Dicts; } @@ -113,16 +113,16 @@ void Tokenize (const std::string& str, /////////////////////////////////////////////////////////////////////////// // to prevent a flashing screen when non-printable character -char * _cleanString(char *v) { +char *_cleanString(char *v) { char *d; int i, l; l = strlen(v); for (i=0,d=v; - i0) + if(!isprint(s[str.size()-1])) + if(s[str.size()-1]==0) + str[str.size()-1]=' '; + + return(str); +}