Back to index

salome-geom  6.5.0
Functions
GEOM_DumpPython.cc File Reference
#include <Standard_Stream.hxx>
#include "GEOM_Gen_i.hh"
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_HSequenceOfAsciiString.hxx>
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
#include <vector>
#include <string>

Go to the source code of this file.

Functions

void RemoveTabulation (TCollection_AsciiString &theScript)

Function Documentation

void RemoveTabulation ( TCollection_AsciiString &  theScript)

Definition at line 43 of file GEOM_DumpPython.cc.

{
  std::string aString( theScript.ToCString() );
  std::string::size_type aPos = 0;
  while( aPos < aString.length() )
  {
    aPos = aString.find( "\n\t", aPos );
    if( aPos == std::string::npos )
      break;
    aString.replace( aPos, 2, "\n" );
    aPos++;
  }
  theScript = aString.c_str();
}