From: eap Date: Fri, 6 May 2005 12:54:40 +0000 (+0000) Subject: Bug IPAL8747. insert 'a' at the head of a name starting with a digit X-Git-Tag: smh_merge_poly~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e65f294aaecf55f03f23dc5b6816d218577c54a;p=modules%2Fvisu.git Bug IPAL8747. insert 'a' at the head of a name starting with a digit Bug IPAL8742. Add comments into generated files of DumpPython --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 251d4665..d0cb7c2b 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -39,6 +39,7 @@ #include "VISU_StreamLines_i.hh" #include "VISU_Table_i.hh" +#include "SALOMEDSImpl_Study.hxx" #include "utilities.h" #include @@ -96,6 +97,9 @@ namespace VISU{ //replace_if(aName.begin(),aName.end(),not1(ptr_fun(isxdigit)),'_'); replace_if(aName.begin(),aName.end(),TReplacePredicate(),'_'); + if ( isdigit( aName[0] )) + aName.insert( 0, 1, 'a' ); + return aName; } @@ -1157,6 +1161,7 @@ namespace VISU{ #endif std::string aPrefix(PREFIX); + aStr<