Annotation of parser3/src/types/pa_vstring.C, revision 1.22.2.3.2.5
1.1 paf 1: /** @file
1.5 paf 2: Parser: @b string class.
1.1 paf 3:
1.22.2.1 paf 4: Copyright(c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
1.16 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.20 paf 6: */
1.1 paf 7:
1.22.2.3.2.5! paf 8: static const char* IDENT_VSTRING_C="$Date: 2003/03/24 12:50:27 $";
1.1 paf 9:
10: #include "pa_vstring.h"
11: #include "pa_vfile.h"
12:
1.22.2.3.2.5! paf 13: VFile* VString::as_vfile(String::Language lang, const Request_charsets* charsets) {
1.22.2.3.2.4 paf 14: VFile& result=*new VFile;
1.22.2.3.2.5! paf 15: const char* cstr=fstring->cstr(lang, 0, charsets);
1.22.2.3.2.4 paf 16: result.set(false/*not tainted*/, cstr, strlen(cstr));
17: return &result;
1.8 parser 18: }
E-mail: