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

1.1       paf         1: /** @file
1.5       paf         2:        Parser: @b string class.
1.1       paf         3: 
1.28      moko        4:        Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)
1.16      paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.20      paf         6: */
1.1       paf         7: 
                      8: #include "pa_vstring.h"
                      9: #include "pa_vfile.h"
                     10: 
1.32    ! moko       11: volatile const char * IDENT_PA_VSTRING_C="$Id: pa_vstring.C,v 1.31 2012-06-15 06:13:11 misha Exp $" IDENT_PA_VSTRING_H;
1.28      moko       12: 
1.23      paf        13: VFile* VString::as_vfile(String::Language lang, const Request_charsets* charsets) {
                     14:        VFile& result=*new VFile;
1.27      misha      15:        String::Body sbody=fstring->cstr_to_string_body_untaint(lang, 0, charsets);
1.32    ! moko       16:        result.set(false/*not tainted*/, true/*text*/, (char *)sbody.cstr() /*not cstrm to minimize memory usage*/, sbody.length());
1.1       paf        17:        return &result;
1.8       parser     18: }

E-mail: