--- parser3/src/include/pa_charsets.h 2009/05/14 11:27:23 1.14 +++ parser3/src/include/pa_charsets.h 2016/07/29 20:24:16 1.18 @@ -1,7 +1,7 @@ /** @file Parser: sql driver manager decl. - Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) @@ -11,7 +11,7 @@ #ifndef PA_CHARSETS_H #define PA_CHARSETS_H -static const char * const IDENT_CHARSETS_H="$Date: 2009/05/14 11:27:23 $"; +#define IDENT_PA_CHARSETS_H "$Id: pa_charsets.h,v 1.18 2016/07/29 20:24:16 moko Exp $" #include "pa_hash.h" #include "pa_charset.h" @@ -22,9 +22,13 @@ public: Charsets(); - Charset& get(const String::Body ANAME); + Charset& get(String::Body ANAME); + Charset& get_direct(const char *ANAME); - void load_charset(Request_charsets& charsets, const String::Body ANAME, const String& afile_spec); + void load_charset(Request_charsets& charsets, String::Body ANAME, const String& afile_spec); + + // detects charset if it's not enforced, skips BOM signature if it complies charset + static Charset* checkBOM(char *&body,size_t &body_size, Charset* enforced_charset); }; //@{ globals