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

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)
1.11    ! parser      5:        Author: Alexander Petrosyan <paf@design.ru>(http://design.ru/paf)
1.1       paf         6: 
1.11    ! parser      7:        $Id:  $
1.1       paf         8: */
                      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: