--- parser3/src/main/pa_string.C 2001/05/21 16:38:46 1.89 +++ parser3/src/main/pa_string.C 2001/06/28 07:44:17 1.93 @@ -4,9 +4,8 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: pa_string.C,v 1.89 2001/05/21 16:38:46 parser Exp $ */ +static const char *RCSId="$Id: pa_string.C,v 1.93 2001/06/28 07:44:17 parser Exp $"; #include "pa_config_includes.h" @@ -186,7 +185,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 +636,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 +653,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;