📄 stdafx.h
字号:
#ifndef AXSIGLIB_STDAFX_H
#define AXSIGLIB_STDAFX_H
/*! \file
\brief AxSigLib - Short Elliptic Curve Digital Signature Algorithm et. al.
@(#) $Id$
Common includes for the library.
Copyright (C) 2001 Svante Seleborg/Axantum Software AB, All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
The author may be reached at mailto:axcrypt@axondata.se and http://axcrypt.sourceforge.net
---
*/
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN ///< Exclude rarely-used stuff from Windows headers
#include <windows.h>
#endif
#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <vector>
using namespace std;
/// \brief Small helper to do case-insensitive string comparison
/// \param sL A string
/// \param sR Another string
/// \return true if equal, false if not
inline bool StrEqualAllCase(std::string sL, std::string sR) {
std::transform(sL.begin(), sL.end(), sL.begin(), tolower);
std::transform(sR.begin(), sR.end(), sR.begin(), tolower);
return sL == sR;
}
typedef pair<string, string> stringpair; ///< A pair of strings - useful
typedef vector<string> stringvector; ///< A vector of strings - pretty useful too
typedef map<string, string> stringmap; ///< A map from string to string - too useful not to have...
typedef vector<stringpair> stringpairvector;///< A vector of stringpairs - slightly more unusual
typedef map<string, int> stringintmap; ///< A map from string to int.
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -