Diff for /parser3/src/classes/string.C between versions 1.89 and 1.92

version 1.89, 2001/11/09 11:59:13 version 1.92, 2001/12/15 21:28:18
Line 84  static void _double(Request& r, const St Line 84  static void _double(Request& r, const St
   
         Temp_lang temp_lang(r, String::UL_PASS_APPENDED);          Temp_lang temp_lang(r, String::UL_PASS_APPENDED);
         char *buf=format(pool, r.self->as_double(),           char *buf=format(pool, r.self->as_double(), 
                 r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED));                  r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED, r.connection));
   
         String result(pool);          String result(pool);
         result.APPEND_CLEAN(buf, 0,           result.APPEND_CLEAN(buf, 0, 
Line 245  static void _match(Request& r, const Str Line 245  static void _match(Request& r, const Str
         Table *table;          Table *table;
         if(params->size()<3) { // search          if(params->size()<3) { // search
                 bool was_global;                  bool was_global;
                 bool matched=src.match(r.pcre_tables(),                  bool matched=src.match(
                         &method_name,                           &method_name, 
                         regexp.as_string(), options,                          regexp.as_string(), options,
                         &table,                          &table,
Line 258  static void _match(Request& r, const Str Line 258  static void _match(Request& r, const Str
                 else                   else 
                         result=new(pool) VBool(pool, matched);                                            result=new(pool) VBool(pool, matched);                  
         } else { // replace          } else { // replace
                 Value& replacement_code=params->as_junction(2, "replacement code must be code");                  Value& replacement_code=params->as_junction(2, "replacement param must be code");
   
                 String& dest=*new(pool) String(pool);                  String& dest=*new(pool) String(pool);
                 Replace_action_info replace_action_info={                  Replace_action_info replace_action_info={
Line 267  static void _match(Request& r, const Str Line 267  static void _match(Request& r, const Str
                         &replacement_code,                          &replacement_code,
                         &src                          &src
                 };                  };
                 src.match(r.pcre_tables(),                  src.match(
                         &method_name,                           &method_name, 
                         r.process(regexp).as_string(), options,                          r.process(regexp).as_string(), options,
                         &table,                          &table,
Line 283  static void change_case(Request& r, cons Line 283  static void change_case(Request& r, cons
         Pool& pool=r.pool();          Pool& pool=r.pool();
         const String& src=*static_cast<VString *>(r.self)->get_string();          const String& src=*static_cast<VString *>(r.self)->get_string();
   
         r.write_assign_lang(*new(pool) VString(src.change_case(pool, r.pcre_tables(),          r.write_assign_lang(*new(pool) VString(src.change_case(pool, 
                 kind)));                  kind)));
 }  }
 static void _upper(Request& r, const String& method_name, MethodParams *params) {  static void _upper(Request& r, const String& method_name, MethodParams *params) {

Removed from v.1.89  
changed lines
  Added in v.1.92


E-mail: