Annotation of parser3/src/types/pa_vstring.C, revision 1.9
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.9 ! parser 8: $Id: pa_vstring.C,v 1.8 2001/05/21 17:40:13 parser Exp $
1.1 paf 9: */
10:
11: #include "pa_vstring.h"
12: #include "pa_vfile.h"
13:
1.9 ! parser 14: VFile *VString::as_vfile(String::Untaint_lang lang,
! 15: bool origins_mode) {
1.1 paf 16: VFile& result=*NEW VFile(pool());
1.9 ! parser 17: fstring.set_origins_mode(origins_mode);
1.7 parser 18: const char *cstr=fstring.cstr(lang);
1.4 paf 19: result.set(false/*not tainted*/, cstr, strlen(cstr));
1.1 paf 20: return &result;
1.8 parser 21: }
E-mail: