src/ls-ascii-helper.h
author Benjamin Lindner <lindnerb@users.sourceforge.net>
Wed Mar 18 15:23:14 2009 +0100 (2009-03-18)
changeset 7685 34b75a47e712
permissions -rw-r--r--
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
     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)