diff src/oct-stream.h @ 3483:1bb6e519a4a2

[project @ 2000-01-26 23:37:10 by jwe]
author jwe
date Wed, 26 Jan 2000 23:37:11 +0000
parents 14cfc9475fe4
children d14c483b3c12
line wrap: on
line diff
--- a/src/oct-stream.h	Wed Jan 26 07:25:57 2000 +0000
+++ b/src/oct-stream.h	Wed Jan 26 23:37:11 2000 +0000
@@ -41,9 +41,17 @@
 struct
 scanf_format_elt
 {
+  enum special_conversion
+    {
+      whitespace_conversion = 1,
+      literal_conversion = 2
+    };
+
   scanf_format_elt (const char *txt = 0, int w = 0, bool d = false,
-		    char typ = '\0', char mod = '\0')
-    : text (txt), width (w), discard (d), type (typ), modifier (mod) { }
+		    char typ = '\0', char mod = '\0',
+		    const string& ch_class = string ())
+    : text (txt), width (w), discard (d), type (typ), modifier (mod),
+      char_class (ch_class) { }
 
   ~scanf_format_elt (void) { delete text; }
 
@@ -52,6 +60,7 @@
   bool discard;
   char type;
   char modifier;
+  string char_class;
 };
 
 class
@@ -115,7 +124,7 @@
   ostrstream *buf;
 
   void add_elt_to_list (int width, bool discard, char type, char modifier,
-			int& num_elts);
+			int& num_elts, const string& char_class = string ());
 
   void process_conversion (const string& s, int& i, int n, int& width,
 			   bool& discard, char& type, char& modifier,