--- parser3/src/include/pa_string.h 2010/10/16 22:24:20 1.200 +++ parser3/src/include/pa_string.h 2012/04/12 22:44:46 1.202 @@ -1,14 +1,14 @@ /** @file Parser: string class decl. - Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STRING_H #define PA_STRING_H -static const char * const IDENT_STRING_H="$Date: 2010/10/16 22:24:20 $"; +#define IDENT_PA_STRING_H "$Id: pa_string.h,v 1.202 2012/04/12 22:44:46 moko Exp $" // includes #include "pa_types.h" @@ -554,6 +554,14 @@ public: const char* untaint_and_transcode_cstr(Language lang, const Request_charsets *charsets) const; + bool is_not_just_lang() const { + return langs.opt.is_not_just_lang !=0; + } + + Language just_lang() const { + return langs.opt.lang; + } + /// puts pieces to buf Cm serialize(size_t prolog_size) const; /// appends pieces from buf to self