comparison src/ls-oct-ascii.h @ 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 72c96de7a403
comparison
equal deleted inserted replaced
11585:1473d0cf86d2 11586:12df7854fa7c
40 #ifndef OCT_RBV 40 #ifndef OCT_RBV
41 #define OCT_RBV DBL_MAX / 100.0 41 #define OCT_RBV DBL_MAX / 100.0
42 #endif 42 #endif
43 43
44 extern OCTINTERP_API std::string 44 extern OCTINTERP_API std::string
45 extract_keyword (std::istream& is, const char *keyword, 45 extract_keyword (std::istream& is, const char *keyword,
46 const bool next_only = false); 46 const bool next_only = false);
47 47
48 extern OCTINTERP_API std::string 48 extern OCTINTERP_API std::string
49 read_ascii_data (std::istream& is, const std::string& filename, bool& global, 49 read_ascii_data (std::istream& is, const std::string& filename, bool& global,
50 octave_value& tc, octave_idx_type count); 50 octave_value& tc, octave_idx_type count);
68 // 68 //
69 // [%#][ \t]*keyword[ \t]*int-value.*\n 69 // [%#][ \t]*keyword[ \t]*int-value.*\n
70 70
71 template <class T> 71 template <class T>
72 bool 72 bool
73 extract_keyword (std::istream& is, const char *keyword, T& value, 73 extract_keyword (std::istream& is, const char *keyword, T& value,
74 const bool next_only = false) 74 const bool next_only = false)
75 { 75 {
76 bool status = false; 76 bool status = false;
77 value = T(); 77 value = T();
78 78
115 return status; 115 return status;
116 } 116 }
117 117
118 template <class T> 118 template <class T>
119 bool 119 bool
120 extract_keyword (std::istream& is, const std::string& kw, T& value, 120 extract_keyword (std::istream& is, const std::string& kw, T& value,
121 const bool next_only = false) 121 const bool next_only = false)
122 { 122 {
123 return extract_keyword (is, kw.c_str (), value, next_only); 123 return extract_keyword (is, kw.c_str (), value, next_only);
124 } 124 }
125 125