X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fencoding.h;h=830a05c3c491f11cd24430441a9761d41b9644ae;hb=d1f2a9c0000f0ad038425900b001c16a56c72afa;hp=c64a84517ac7f5e22dfdef7d3631e41c0face36d;hpb=80d7f70dc340e8b1ab29d38284b8327d13757196;p=lyx.git diff --git a/src/encoding.h b/src/encoding.h index c64a84517a..830a05c3c4 100644 --- a/src/encoding.h +++ b/src/encoding.h @@ -1,21 +1,21 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== +/** + * \file encoding.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Lars Gullik Bjønnes + * \author Jean-Marc Lasgouttes * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. - * - * ====================================================== */ + * Full author contact details are available in file CREDITS. + */ #ifndef ENCODING_H #define ENCODING_H -#include "LString.h" -#include "lyxrc.h" - #include +#include + /// typedef unsigned short int Uchar; @@ -26,17 +26,17 @@ public: /// Encoding() {} /// - Encoding(string const & n, string const & l, Uchar const * e) + Encoding(std::string const & n, std::string const & l, Uchar const * e) : Name_(n), LatexName_(l) { for (int i = 0; i < 256; ++i) encoding_table[i] = e[i]; } /// - string const & Name() const { + std::string const & Name() const { return Name_; } /// - string const & LatexName() const { + std::string const & LatexName() const { return LatexName_; } /// @@ -45,9 +45,9 @@ public: } private: /// - string Name_; + std::string Name_; /// - string LatexName_; + std::string LatexName_; /// Uchar encoding_table[256]; }; @@ -57,13 +57,13 @@ extern Encoding symbol_encoding; class Encodings { public: /// - typedef std::map EncodingList; + typedef std::map EncodingList; /// Encodings(); /// - void read(string const & filename); + void read(std::string const & filename); /// - Encoding const * getEncoding(string const & encoding) const; + Encoding const * getEncoding(std::string const & encoding) const; /// Encoding const * symbol_encoding() { return &symbol_encoding_;