Diff for /parser3/src/main/pa_dictionary.C between versions 1.7 and 1.13

version 1.7, 2001/10/05 16:12:40 version 1.13, 2002/02/20 10:40:08
Line 1 Line 1
 /**     @file  /**     @file
         Parser: dictionary class  impl.          Parser: dictionary class  impl.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
   
         $Id$          $Id$
 */  */
Line 17  void Dictionary::add_first(Array::Item * Line 17  void Dictionary::add_first(Array::Item *
         const String& a=*row->get_string(0);          const String& a=*row->get_string(0);
         const String& b=*row->get_string(1);          const String& b=*row->get_string(1);
         // empty 'a' check          // empty 'a' check
         if(a.size()==0) {          if(a.is_empty()) {
                 Pool& pool=self.pool();                  Pool& pool=self.pool();
                 PTHROW(0, 0,                   throw Exception(0, 0, 
                         &a,                           &a, 
                         "dictionary table 'from' column elements must not be empty");                          "dictionary table 'from' column elements must not be empty");
         }          }
Line 33  void Dictionary::add_first(Array::Item * Line 33  void Dictionary::add_first(Array::Item *
   
         self.constructor_line++;          self.constructor_line++;
 }  }
   
 Dictionary::Dictionary(Table& atable, double amin_ratio) : Pooled(atable.pool()),   Dictionary::Dictionary(Table& atable, double amin_ratio) : Pooled(atable.pool()), 
         table(atable),           table(atable), 
         fmax_ratio(amin_ratio)  {          fmax_ratio(amin_ratio)  {

Removed from v.1.7  
changed lines
  Added in v.1.13


E-mail: