Diff for /parser3/src/classes/string.C between versions 1.24 and 1.25

version 1.24, 2001/04/03 08:23:06 version 1.25, 2001/04/03 09:58:07
Line 13 Line 13
 #include "pa_vdouble.h"  #include "pa_vdouble.h"
 #include "pa_vint.h"  #include "pa_vint.h"
 #include "pa_vtable.h"  #include "pa_vtable.h"
   #include "pa_vbool.h"
   
 // global var  // global var
   
Line 149  static void _match(Request& r, const Str Line 150  static void _match(Request& r, const Str
         r.fail_if_junction_(true, options, method_name, "options must not be junction");          r.fail_if_junction_(true, options, method_name, "options must not be junction");
   
         Temp_lang temp_lang(r, String::UL_PASS_APPENDED);          Temp_lang temp_lang(r, String::UL_PASS_APPENDED);
         Table& table=string.match(&method_name,           Table *table;
                 r.process(regexp).as_string(), options.as_string());          Value *result;
           if(string.match(&method_name, 
                   r.process(regexp).as_string(), options.as_string(),
                   &table)) {
                   // matched
                   if(table->columns()->size()==1) // just matched, no substrings
                           result=new(pool) VBool(pool, true);
                   else // table of match column+substring columns
                           result=new(pool) VTable(pool, table);
           } else // not matched
                   result=new(pool) VBool(pool, false);
   
         r.write_no_lang(*new(pool) VTable(pool, &table));          r.write_no_lang(*result);
 }  }
   
 // initialize  // initialize

Removed from v.1.24  
changed lines
  Added in v.1.25


E-mail: