comparison src/ls-ascii-helper.h @ 11944:278afaecddd4 release-3-0-x

fix leaving stray '\r' in stream when reading from CRLF data file * * * fix CRLF issues with text-mode reading in windows when loading ascii data
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Wed, 18 Mar 2009 15:23:14 +0100
parents
children
comparison
equal deleted inserted replaced
11943:af4fa72ee250 11944:278afaecddd4
1 /*
2
3 Copyright (C) 2003, 2005, 2006, 2007 John W. Eaton
4
5 This file is part of Octave.
6
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20
21 */
22
23 #if !defined (octave_ls_ascii_helper_h)
24 #define octave_ls_ascii_helper_h 1
25
26 #include <iosfwd>
27 #include <string>
28
29 #include "oct-dlldefs.h"
30
31 extern OCTINTERP_API void
32 skip_until_newline( std::istream& is, bool keep_newline = false );
33
34 extern OCTINTERP_API void
35 skip_preceeding_newline( std::istream& is );
36
37 extern OCTINTERP_API std::string
38 read_until_newline( std::istream& is, bool keep_newline = false );
39
40 #endif // !defined (octave_ls_ascii_helper_h)