Diff for /parser3/src/classes/string.C between versions 1.129 and 1.130

version 1.129, 2003/11/20 16:34:23 version 1.130, 2003/11/20 17:07:44
Line 157  static int split_options(const String* o Line 157  static int split_options(const String* o
                 {"r", "R", SPLIT_RIGHT, SPLIT_LEFT},                  {"r", "R", SPLIT_RIGHT, SPLIT_LEFT},
                 {"h", "H", SPLIT_HORIZONTAL, SPLIT_VERTICAL},                  {"h", "H", SPLIT_HORIZONTAL, SPLIT_VERTICAL},
                 {"v", "V", SPLIT_VERTICAL, SPLIT_HORIZONTAL},                  {"v", "V", SPLIT_VERTICAL, SPLIT_HORIZONTAL},
                 {0}                  {0, 0, 0, 0}
     };      };
   
         int result=0;          int result=0;
Line 310  static void _match(Request& r, MethodPar Line 310  static void _match(Request& r, MethodPar
   
                 String result;                  String result;
                 VTable* vtable=new VTable;                  VTable* vtable=new VTable;
                 Replace_action_info info={0};                  Replace_action_info info={
                 info.request=&r;                          &r,
                 info.src=&src;                          &src,
                 info.dest=&result;                          &result,
                 info.vtable=vtable;                          vtable,
                 info.replacement_code=&replacement_code;                          &replacement_code
                   };
                 Temp_value_element temp_match_var(                  Temp_value_element temp_match_var(
                         *replacement_code.get_junction()->method_frame,                           *replacement_code.get_junction()->method_frame, 
                         match_var_name, vtable);                          match_var_name, vtable);
Line 400  const String* sql_result_string(Request& Line 401  const String* sql_result_string(Request&
         if(params.count()>1) {          if(params.count()>1) {
                 Value& voptions=params.as_no_junction(1, "options must be hash, not code");                  Value& voptions=params.as_no_junction(1, "options must be hash, not code");
                 if(!voptions.is_string())                  if(!voptions.is_string())
                         if(options=voptions.get_hash()) {                          if((options=voptions.get_hash())) {
                                 if(Value* vlimit=options->get(sql_limit_name))                                  if(Value* vlimit=options->get(sql_limit_name))
                                         limit=(ulong)r.process_to_value(*vlimit).as_double();                                          limit=(ulong)r.process_to_value(*vlimit).as_double();
                                 if(Value* voffset=options->get(sql_offset_name))                                  if(Value* voffset=options->get(sql_offset_name))
                                         offset=(ulong)r.process_to_value(*voffset).as_double();                                          offset=(ulong)r.process_to_value(*voffset).as_double();
                                 if(default_code=options->get(sql_default_name)) {                                  if((default_code=options->get(sql_default_name))) {
                                         if(Junction* default_junction=default_code->get_junction())                                          if(!default_code->get_junction())
                                                 ;//default_junction->change_context(statement.get_junction());  
                                         else  
                                                 throw Exception("parser.runtime",                                                  throw Exception("parser.runtime",
                                                         0,                                                          0,
                                                         "default option must be code");                                                          "default option must be code");

Removed from v.1.129  
changed lines
  Added in v.1.130


E-mail: