comparison src/ls-oct-ascii.cc @ 11586:12df7854fa7c

strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:24:59 -0500
parents fd0a3ac60b0e
children 79aa00a94e9e
comparison
equal deleted inserted replaced
11585:1473d0cf86d2 11586:12df7854fa7c
89 while (is.get (c)) 89 while (is.get (c))
90 { 90 {
91 if (c == '%' || c == '#') 91 if (c == '%' || c == '#')
92 { 92 {
93 std::ostringstream buf; 93 std::ostringstream buf;
94 94
95 while (is.get (c) && (c == ' ' || c == '\t' || c == '%' || c == '#')) 95 while (is.get (c) && (c == ' ' || c == '\t' || c == '%' || c == '#'))
96 ; // Skip whitespace and comment characters. 96 ; // Skip whitespace and comment characters.
97 97
98 if (isalpha (c)) 98 if (isalpha (c))
99 buf << c; 99 buf << c;
298 } 298 }
299 299
300 // Save the data from TC along with the corresponding NAME, and global 300 // Save the data from TC along with the corresponding NAME, and global
301 // flag MARK_AS_GLOBAL on stream OS in the plain text format described 301 // flag MARK_AS_GLOBAL on stream OS in the plain text format described
302 // above for load_ascii_data. If NAME is empty, the name: line is not 302 // above for load_ascii_data. If NAME is empty, the name: line is not
303 // generated. PRECISION specifies the number of decimal digits to print. 303 // generated. PRECISION specifies the number of decimal digits to print.
304 // 304 //
305 // Assumes ranges and strings cannot contain Inf or NaN values. 305 // Assumes ranges and strings cannot contain Inf or NaN values.
306 // 306 //
307 // Returns 1 for success and 0 for failure. 307 // Returns 1 for success and 0 for failure.
308 308