Annotation of parser3/src/types/pa_vstring.C, revision 1.22.2.3.2.3
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.3.2.3! paf 8: static const char* IDENT_VSTRING_C="$Date: 2003/03/20 08:11:16 $";
1.1 paf 9:
10: #include "pa_vstring.h"
11: #include "pa_vfile.h"
12:
1.22.2.3.2.3! paf 13: VFile* VString::as_vfile(String::Language lang) {
! 14: VFile* result(new VFile);
1.22.2.3.2.2 paf 15: const char* cstr=origins_mode?fstring->cstr_debug_origins():fstring->cstr(lang);
16: result->set(false/*not tainted*/, cstr, strlen(cstr));
1.22.2.2 paf 17: return result;
1.8 parser 18: }
E-mail: