--- parser3/src/main/pa_string.C 2003/01/24 11:33:03 1.172.2.4 +++ parser3/src/main/pa_string.C 2003/01/24 14:36:11 1.172.2.5 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_STRING_C="$Date: 2003/01/24 11:33:03 $"; +static const char* IDENT_STRING_C="$Date: 2003/01/24 14:36:11 $"; #include "pcre.h" @@ -568,7 +568,7 @@ IFNDEF_NO_STRING_ORIGIN( // skip 'a' in 'joined_ptr' && reduce work size joined_ptr+=a->size(); joined_size-=a->size(); // write 'b' to 'dest' && skip 'b' in 'dest' - b->store_to(dest); dest+=b->size(); + b->store_to(dest, String::UL_AS_IS); dest+=b->size(); } else { // write a char to b && reduce work size *dest++=*joined_ptr++; joined_size--; @@ -586,7 +586,7 @@ StringPtr String::join_chains(Pool& pool StringPtr result(new String()); char *pooled_buf=new(pool) char[cstr_bufsize()]; - store_to(pooled_buf); + store_to(pooled_buf, String::UL_AS_IS); const char *current=pooled_buf; STRING_FOREACH_FRAGMENT( @@ -624,7 +624,7 @@ double String::as_double() const { throw Exception("number.format", ConstStringPtr(this), "invalid number too long a string (%u>%u)", size(), MAX_STRING-1); - char *eol=store_to(buf); *eol=0; + char *eol=store_to(buf, String::UL_AS_IS); *eol=0; const char *cstr=buf; while(*cstr && isspace(*cstr)) @@ -657,7 +657,7 @@ int String::as_int() const { throw Exception("number.format", ConstStringPtr(this), "invalid number too long a string (%u>%u)", size(), MAX_STRING-1); - char *eol=store_to(buf); *eol=0; + char *eol=store_to(buf, String::UL_AS_IS); *eol=0; const char *cstr=buf; while(*cstr && isspace(*cstr))