From 3e65f294aaecf55f03f23dc5b6816d218577c54a Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 6 May 2005 12:54:40 +0000 Subject: [PATCH] Bug IPAL8747. insert 'a' at the head of a name starting with a digit Bug IPAL8742. Add comments into generated files of DumpPython --- src/VISU_I/VISU_DumpPython.cc | 5 +++++ 1 file changed, 5 insertions(+) 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<