--- parser3/src/main/pa_string.C 2001/05/21 16:38:46 1.89 +++ parser3/src/main/pa_string.C 2001/05/23 08:57:39 1.91 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.C,v 1.89 2001/05/21 16:38:46 parser Exp $ + $Id: pa_string.C,v 1.91 2001/05/23 08:57:39 parser Exp $ */ #include "pa_config_includes.h" @@ -186,7 +186,7 @@ int String::cmp(int& partial, const Stri size_t pos=0; bool a_break=size()==0; - bool b_break=size()==0; + bool b_break=src.size()==0; if(!(a_break || b_break)) while(true) { if(pos+a_row->item.size > this_offset) { if(lang!=UL_UNSPECIFIED && a_row->item.lang!=lang) @@ -637,7 +637,7 @@ break2: return result; } -double String::as_double() { +double String::as_double() const { double result; const char *cstr=this->cstr(); char *error_pos=0; @@ -654,7 +654,7 @@ double String::as_double() { return result; } -int String::as_int() { +int String::as_int() const { int result; const char *cstr=this->cstr(); char *error_pos=0;