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

1.1       paf         1: /** @file
1.5       paf         2:        Parser: @b string class.
1.1       paf         3: 
1.36    ! moko        4:        Copyright (c) 2001-2017 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.36    ! moko       11: volatile const char * IDENT_PA_VSTRING_C="$Id: pa_vstring.C,v 1.35 2015/10/26 01:22:03 moko 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.33      moko       16:        /* we are using binary to avoid ^#0D to be altered */
1.34      moko       17:        result.set_binary_string(false/*not tainted*/, sbody.cstr() , sbody.length());
1.1       paf        18:        return &result;
1.8       parser     19: }

E-mail: