Diff for /parser3/src/classes/string.C between versions 1.67 and 1.69

version 1.67, 2001/07/26 12:25:37 version 1.69, 2001/08/02 09:58:33
Line 124  static void _lsplit(Request& r, const St Line 124  static void _lsplit(Request& r, const St
   
         Table& table=*new(pool) Table(pool, &string,           Table& table=*new(pool) Table(pool, &string, 
                 &columns, pieces.size());                  &columns, pieces.size());
         int size=pieces.quick_size();          Array_iter i(pieces);
         for(int i=0; i<size; i++) {          while(i.has_next()) {
                 Array& row=*new(pool) Array(pool);                  Array& row=*new(pool) Array(pool);
                 row+=pieces.quick_get(i);                  row+=i.next();
                 table+=&row;                  table+=&row;
         }          }
         r.write_no_lang(*new(pool) VTable(pool, &table));          r.write_no_lang(*new(pool) VTable(pool, &table));
Line 345  static void _sql(Request& r, const Strin Line 345  static void _sql(Request& r, const Strin
   
         const String *string=sql_result_string(r, method_name, params);          const String *string=sql_result_string(r, method_name, params);
         if(!string) {          if(!string) {
                 Value& default_code=params->as_junction(1, "default result must code");                  if(params->size()>1) {
                 Value& processed_code=r.process(default_code);                          Value& default_code=params->as_junction(1, "default result must code");
                 string=processed_code.get_string();                          Value& processed_code=r.process(default_code);
                 if(!string)                          string=processed_code.get_string();
                         string=empty_string;                          if(!string)
                                   string=empty_string;
                   } else
                           PTHROW(0, 0,
                                   &method_name,
                                   "produced no result, but no default specified");
         }          }
         VString& result=*new(pool) VString(*string);          VString& result=*new(pool) VString(*string);
         result.set_name(method_name);          result.set_name(method_name);

Removed from v.1.67  
changed lines
  Added in v.1.69


E-mail: