Annotation of parser3/src/types/pa_vstring.C, revision 1.4

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.4     ! paf         8:        $Id: pa_vstring.C,v 1.3 2001/04/11 08:13:43 paf Exp $
1.1       paf         9: */
                     10: 
                     11: #include "pa_vstring.h"
                     12: #include "pa_vfile.h"
                     13: 
1.3       paf        14: const VFile *VString::as_vfile(String::Untaint_lang lang) const {
1.1       paf        15:        VFile& result=*NEW VFile(pool());
1.3       paf        16:        const char *cstr=fstring.cstr(lang);
1.4     ! paf        17:        result.set(false/*not tainted*/, cstr, strlen(cstr));
1.1       paf        18:        return &result;
                     19: }

E-mail: