--- parser3/src/include/pa_common.h 2002/11/25 14:57:33 1.86 +++ parser3/src/include/pa_common.h 2003/01/21 15:51:09 1.89 @@ -1,19 +1,20 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char* IDENT_COMMON_H="$Date: 2002/11/25 14:57:33 $"; +static const char* IDENT_COMMON_H="$Date: 2003/01/21 15:51:09 $"; #include "pa_pool.h" #include "pa_string.h" class Hash; +class Value; // replace system s*nprintf with our versions #undef vsnprintf @@ -78,6 +79,14 @@ extern "C" double sign(double); inline double sign(double param) { return param > 0 ? 1 : ( param < 0 ? -1 : 0 ); } #endif +/** + $content-type[text/html] -> + content-type: text/html + $content-type[$value[text/html] charset[windows-1251]] -> + content-type: text/html; charset=windows-1251 +*/ +const String& attributed_meaning_to_string(Value& meaning, String::Untaint_lang lang, bool forced); + /// yields to OS for secs secs and usecs milliseconds int pa_sleep(unsigned long secs, unsigned long usecs);