Servers/Filters/vtkGenericEnSightReader2.cxx
int vtkGenericEnSightReader2::ReadNextDataLine(char result[256])
{
  int isComment = 1;
  int value = 1;

  while( isComment && value )
    {
    value = this->ReadLine(result);
    if( *result && result[0] != '#' )
      {
      size_t len = strlen( result );
      unsigned int i = 0;
      while( i < len && (static_cast<unsigned int>(result[i]) <= 255) && isspace(result[i]) )
        {
        ++i;
        }
      // If there was only space characters this is a comment, thus skip it
      if( i != len )
        {
        // The line was not empty, not begining by '#' and not composed
        // of only white space, this is not a comment
        isComment = 0;
        }
      }
    }

  return value;
}
//----------------------------------------------------------------------------
// Internal function that skips blank lines and comment lines
// and reads the next line it finds (up to 256 characters).
// Returns 0 is there was an error.
Internal function that skips blank lines and comment lines
and reads the next line it finds (up to 256 characters).
Returns 0 is there was an error.
Internal function that skips blank lines and comment lines and reads the next line it finds ( up to 256 characters ) . Returns 0 is there was an error .
int vtkGenericEnSightReader2::ReadNextDataLine(char result[256])
{
  int isComment = 1;
  int value = 1;
  while( isComment && value )
    {
    value = this->ReadLine(result);
    if( *result && result[0] != '#' )
      {
      size_t len = strlen( result );
      unsigned int i = 0;
      while( i < len && (static_cast<unsigned int>(result[i]) <= 255) && isspace(result[i]) )
        {
        ++i;
        }
      if( i != len )
        {
        isComment = 0;
        }
      }
    }
  return value;
}
int vtkGenericEnSightReader2 :: ReadNextDataLine ( char result [ 256 ] ) { int isComment = 1 ; int value = 1 ; while ( isComment && value ) { value = this -> ReadLine ( result ) ; if ( * result && result [ 0 ] != ' ' ) { size_t len = strlen ( result ) ; unsigned int i = 0 ; while ( i < len && ( static_cast < unsigned int > ( result [ i ] ) <= 255 ) && isspace ( result [ i ] ) ) { ++ i ; } if ( i != len ) { isComment = 0 ; } } } return value ; }
Internal function that skips blank lines and comment lines
and reads the next line it finds (up to 256 characters).
Internal function that skips blank lines and comment lines and reads the next line it finds ( up to 256 characters ) .
// If there was only space characters this is a comment, thus skip it // The line was not empty, not begining by '#' and not composed // of only white space, this is not a comment