--- parser3/src/include/pa_charsets.h 2003/01/28 11:38:49 1.8.2.3 +++ parser3/src/include/pa_charsets.h 2005/08/09 08:14:49 1.13 @@ -1,7 +1,7 @@ /** @file Parser: sql driver manager decl. - Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) @@ -11,24 +11,25 @@ #ifndef PA_CHARSETS_H #define PA_CHARSETS_H -static const char* IDENT_CHARSETS_H="$Date: 2003/01/28 11:38:49 $"; +static const char * const IDENT_CHARSETS_H="$Date: 2005/08/09 08:14:49 $"; #include "pa_hash.h" #include "pa_charset.h" -class Charsets: public Hash { - Pool charsets_pool; +/// convention: use UPPERCASE keys +class Charsets: public Hash { public: Charsets(); - CharsetPtr get(ConstStringPtr aname); + Charset& get(const String::Body ANAME); - void load_charset(ConstStringPtr arequest_name, ConstStringPtr arequest_file_spec); + void load_charset(Request_charsets& charsets, const String::Body ANAME, const String& afile_spec); }; -/// global +//@{ globals +extern Charset UTF8_charset; extern Charsets charsets; - +//@} #endif