Diff for /parser3/src/main/pa_string.C between versions 1.178 and 1.179

version 1.178, 2003/09/26 06:53:27 version 1.179, 2003/09/26 09:06:21
Line 413  const String& String::replace(const Dict Line 413  const String& String::replace(const Dict
                 if(Table::element_type row=dict.first_that_begins(current)) {                  if(Table::element_type row=dict.first_that_begins(current)) {
                         // prematch                          // prematch
                         if(size_t prematch_length=current-prematch_begin) {                          if(size_t prematch_length=current-prematch_begin) {
                                 result.langs.append(result.body, langs, prematch_begin-old_cstr, current-old_cstr);                                  result.langs.append(result.body, langs, prematch_begin-old_cstr, prematch_length);
                                 result.body.append_strdup_know_length(prematch_begin, prematch_length);                                  result.body.append_strdup_know_length(prematch_begin, prematch_length);
                         }                          }
   
Line 433  const String& String::replace(const Dict Line 433  const String& String::replace(const Dict
   
         // postmatch          // postmatch
         if(size_t postmatch_length=current-prematch_begin) {          if(size_t postmatch_length=current-prematch_begin) {
                 result.langs.append(result.body, langs, prematch_begin-old_cstr, current-old_cstr);                  result.langs.append(result.body, langs, prematch_begin-old_cstr, postmatch_length);
                 result.body.append_strdup_know_length(prematch_begin, postmatch_length);                  result.body.append_strdup_know_length(prematch_begin, postmatch_length);
         }          }
   

Removed from v.1.178  
changed lines
  Added in v.1.179


E-mail: