--- parser3/src/classes/image.C 2001/10/19 15:20:40 1.58 +++ parser3/src/classes/image.C 2001/12/17 14:02:44 1.63 @@ -1,10 +1,11 @@ +123 /** @file Parser: @b image parser class. Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: image.C,v 1.58 2001/10/19 15:20:40 parser Exp $ + $Id: image.C,v 1.63 2001/12/17 14:02:44 paf Exp $ */ /* @@ -203,7 +204,7 @@ void measure_jpeg(Pool& pool, const Stri void measure(Pool& pool, const String& file_name, Measure_reader& reader, int& width, int& height) { - if(const char *cext=strrchr(file_name.cstr(), '.')) { + if(const char *cext=strrchr(file_name.cstr(String::UL_FILE_SPEC), '.')) { cext++; if(strcasecmp(cext, "GIF")==0) measure_gif(pool, &file_name, reader, width, height); @@ -318,7 +319,7 @@ static void _html(Request& r, const Stri 0/*no name*/, false/*don't intercept string*/); if(vattribs.is_defined()) // allow 'void' - if(attribs=vattribs.get_hash()) { + if(attribs=vattribs.get_hash(&method_name)) { Attrib_info attrib_info={&tag, 0}; attribs->for_each(append_attrib_pair, &attrib_info); } else @@ -397,7 +398,7 @@ static void _gif(Request& r, const Strin VFile& vfile=*new(pool) VFile(pool); Value *content_type=new(pool) VString(*new(pool) String(pool, "image/gif")); vfile.set(false/*not tainted*/, - out.cstr(String::UL_AS_IS), out.size(), 0, content_type); + out.cstr(), out.size(), 0, content_type); r.write_no_lang(vfile); } @@ -618,7 +619,7 @@ public: /* ******************************** string ********************************** */ int string_width(const String& s){ - const char *cstr=s.cstr(String::UL_AS_IS); + const char *cstr=s.cstr(); int result=0; for(; *cstr; cstr++) result+=index_width(index_of(*cstr)); @@ -626,7 +627,7 @@ public: } void string_display(gdImage& image, int x, int y, const String& s){ - const char *cstr=s.cstr(String::UL_AS_IS); + const char *cstr=s.cstr(); if(cstr) for(; *cstr; cstr++) { int index=index_of(*cstr); index_display(image, x, y, index);