src/Matrix/row_vector.cc
/**
 * trim_left - trim all whitespace from left side of a string
 * @in: string to be processed. This string is not modified; a
 * modified copy of the string is returned instead.
 */
trim all whitespace from left side of a string
@in: string to be processed. This string is not modified; a
modified copy of the string is returned instead.
trim all whitespace from left side of a string @in : string to be processed . This string is not modified ; a modified copy of the string is returned instead .
string row_vector::trim_left (const string& in)
{
  int n = 0;
  string::const_iterator p = in.begin();
  if (in.length() == 0) {
    string out = "";
    return out;
  }
  while (p != in.end()) {
    if (isspace (*p))
      n++;
    else
      break;
    p++;
  }
  string out (in, n, in.length());
  return out;
}
string row_vector :: trim_left ( const string & in ) { int n = 0 ; string :: const_iterator p = in . begin ( ) ; if ( in . length ( ) == 0 ) { string out = " " ; return out ; } while ( p != in . end ( ) ) { if ( isspace ( * p ) ) n ++ ; else break ; p ++ ; } string out ( in , n , in . length ( ) ) ; return out ; }
trim_left - trim all whitespace from left side of a string
 @in: string to be processed.
trim_left - trim all whitespace from left side of a string @in : string to be processed .