deps/PicklingTools170Release/Xm/ptools170/host/fanintab.cc
void barStripper(Tab& t, string s)
{
  // Start of string for Tab.
  string filename = "";

  // Extract all filenames from the command line.
  for (int i = 0; i < int(s.size()); ++i) {
    if (s[i] == '|') {
      if (filename.size() > 0) {
        t[t.entries()] = filename;
      }
      filename = "";
    }
    else if (s[i] != ' ') {
      filename += s[i];
    }
  }

  // Grab the last filename.
  if (filename.size() > 0) {
    t[t.entries()] = filename;
  }
}
//////////////////////////////////////////////////////////////////////////////
// FUNCTION: barStripper
//
// DESCRIPTION:
//   This function attempts to convert a '|' delimited string into a simple
//   Tab containing filenames.
//
//////////////////////////////////////////////////////////////////////////////
barStripper
DESCRIPTION:
This function attempts to convert a '|' delimited string into a simple
Tab containing filenames.
barStripper DESCRIPTION : This function attempts to convert a ' | ' delimited string into a simple Tab containing filenames .
void barStripper(Tab& t, string s)
{
  string filename = "";
  for (int i = 0; i < int(s.size()); ++i) {
    if (s[i] == '|') {
      if (filename.size() > 0) {
        t[t.entries()] = filename;
      }
      filename = "";
    }
    else if (s[i] != ' ') {
      filename += s[i];
    }
  }
  if (filename.size() > 0) {
    t[t.entries()] = filename;
  }
}
void barStripper ( Tab & t , string s ) { string filename = " " ; for ( int i = 0 ; i < int ( s . size ( ) ) ; ++ i ) { if ( s [ i ] == ' ' ) { if ( filename . size ( ) > 0 ) { t [ t . entries ( ) ] = filename ; } filename = " " ; } else if ( s [ i ] != ' ' ) { filename += s [ i ] ; } } if ( filename . size ( ) > 0 ) { t [ t . entries ( ) ] = filename ; } }
FUNCTION: barStripper
DESCRIPTION:
This function attempts to convert a '|' delimited string into a simple
Tab containing filenames.
FUNCTION : barStripper DESCRIPTION : This function attempts to convert a ' | ' delimited string into a simple Tab containing filenames .
// Start of string for Tab. // Extract all filenames from the command line. // Grab the last filename.