Annotation of parser3/src/types/pa_vstring.C, revision 1.10
1.1 paf 1: /** @file
1.5 paf 2: Parser: @b string class.
1.1 paf 3:
4: Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com)
5:
6: Author: Alexander Petrosyan <paf@design.ru>(http://design.ru/paf)
7: */
1.10 ! parser 8: static const char *RCSId="$Id: date.C,v 1.6 2001/09/04 10:50:19 parser Exp $";
1.1 paf 9:
10: #include "pa_vstring.h"
11: #include "pa_vfile.h"
12:
1.9 parser 13: VFile *VString::as_vfile(String::Untaint_lang lang,
14: bool origins_mode) {
1.1 paf 15: VFile& result=*NEW VFile(pool());
1.9 parser 16: fstring.set_origins_mode(origins_mode);
1.7 parser 17: const char *cstr=fstring.cstr(lang);
1.4 paf 18: result.set(false/*not tainted*/, cstr, strlen(cstr));
1.1 paf 19: return &result;
1.8 parser 20: }
E-mail: