2 data-file.cc -- implement Data_file
4 source file of the Flower Library
6 (c) '95, '96, '97 Han-Wen Nienhuys <hanwen@stack.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
36 if (isspace (c
) || eof())
47 while ((c
= data_get()) != '\"')
49 error (_("EOF in a string"));
64 Only class member who uses text_file::get
67 Data_file::data_get() {
69 if (!rawmode
&& c
== '#') // gobble comment
71 while ((c
= get()) != '\n' && !eof ())
79 /// read line, gobble '\n'
80 String
Data_file::get_line()
85 while ((c
= data_get()) != '\n' && !eof ())
90 /// gobble stuff before first entry on a line.
92 Data_file::gobble_leading_white()