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

1.1       paf         1: /** @file
1.5       paf         2:        Parser: @b string class.
1.1       paf         3: 
1.22.2.1  paf         4:        Copyright(c) 2001-2003 ArtLebedev Group (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: 
1.22.2.2! paf         8: static const char* IDENT_VSTRING_C="$Date: 2003/01/31 12:34:45 $";
1.1       paf         9: 
1.22.2.2! paf        10: #include "pa_value_includes.h"
1.1       paf        11: #include "pa_vstring.h"
                     12: #include "pa_vfile.h"
                     13: 
1.22.2.2! paf        14: VFilePtr VString::as_vfile(Pool& pool, String::Untaint_lang lang, bool origins_mode) {
        !            15:        VFilePtr result(new VFile);
        !            16:        const char* cstr=origins_mode?fstring->cstr_debug_origins(pool):fstring->cstr(pool, lang);
        !            17:        result->set(pool, false/*not tainted*/, cstr, strlen(cstr));
        !            18:        return result;
1.8       parser     19: }

E-mail: