Annotation of parser3/src/types/pa_vstring.C, revision 1.2
1.1 paf 1: /** @file
2: Parser: string class.
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.2 ! paf 8: $Id: pa_vstring.C,v 1.1 2001/04/03 08:38:57 paf Exp $
1.1 paf 9: */
10:
11: #include "pa_vstring.h"
12: #include "pa_vfile.h"
13:
14: const VFile *VString::as_vfile() const {
15: VFile& result=*NEW VFile(pool());
1.2 ! paf 16: const char *cstr=fstring.cstr(String::UL_AS_IS);
! 17: result.set(false/*not tainted*/, cstr, fstring.size());
1.1 paf 18: return &result;
19: }
E-mail: