2 data-file.cc -- implement Data_file
4 source file of the Flower Library
6 (c) '95, '96, '97 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include "international.hh"
13 #include "data-file.hh"
16 Data_file::gobble_white()
20 while ((c=data_get()) == ' ' ||c == '\t')
29 {// should handle escape seq's
50 while ((c = data_get()) != '\"')
52 error (_ ("EOF in a string"));
67 Only class member who uses text_file::get
73 if (!rawmode && c == '#') // gobble comment
75 while (!eof_b () && (c = get()) != '\n')
83 /// read line, gobble '\n'
90 while (!eof_b () && (c = data_get()) != '\n')
95 /// gobble stuff before first entry on a line.
97 Data_file::gobble_leading_white()
111 Data_file::Data_file (String s)
114 //*mlog << "(" << s << flush;
119 Data_file::warning (String s)
121 message (_ ("warning: ") + s);
125 Data_file::error (String s)
138 s += to_str (data_get ());
144 Data_file::~Data_file ()