--- parser3/src/include/pa_common.h 2009/04/22 04:35:31 1.129 +++ parser3/src/include/pa_common.h 2009/05/26 10:44:41 1.131 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2009/04/22 04:35:31 $"; +static const char * const IDENT_COMMON_H="$Date: 2009/05/26 10:44:41 $"; #include "pa_string.h" #include "pa_hash.h" @@ -27,7 +27,7 @@ class Request; #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" class Value; -typedef Hash HashStringValue; +typedef HashString HashStringValue; // replace system s*nprintf with our versions #undef vsnprintf @@ -230,8 +230,7 @@ void back_slashes_to_slashes(char *s); bool StrStartFromNC(const char* str, const char* substr, bool equal=false); size_t strpos(const char *str, const char *substr); -Charset* detect_charset(const char* content_type); -Charset* detect_charset(Charset& source_charset, const String& content_type); +Charset* detect_charset(const char* content_type, bool already_uppercased=false); #define SECS_PER_DAY (60*60*24) int getMonthDays(int year, int month);